This here if I’m right
http://forums.graal.in/forums/showthread.php?p=7638#post7638
Right now I have this, it still doesn’t show correctly I figured if your doing
“showimg number+i”
That will make it show for multiple images.
So I have it just as
“showimg number,#W(this.whatever),x,y;”
But it’s not working out as thought and it’s annoying meh
I have this:
Suggestions for those who know what they are doing?
//Inventory Version 1 By Twiggy.
if(!isweapon){
toweapons Inventory;
}
//Q PRESSED
if (keypressed && keydown(9) && !this.on == 1){
this.sub = 1;
this.on = 1;
}else{
if (keypressed && keydown(9) && this.on == 1){
this.on = 0;
hideall();
}
}
//GUI CALLING IF Q WAS PRESSED
if (this.on == 1){
changeimgmode 10000,4;
showimg 10000,gui_inventory_evi_twiggy.png,screenwidth/2-85,screenheight/2-150;
changeimgvis 10000,4;
//Items
if (this.sub == 1){
showimg 10001,@Arial@c@Items,screenwidth/2-4,screenheight/2+97;
changeimgcolors 10001,1,1,1,1;
changeimgvis 10001,5;
changeimgzoom 10001,.5;
for(this.cat=0;this.cat<weaponscount;this.cat++;){
if (startswith(items_,#w(this.cat))){
showimg 10002+this.cat,#W(this.cat),screenwidth/2-145+this.cat*35-(int(this.cat/4)*35*4),screenheight/2-110+(int(this.cat/4)*35);
changeimgvis 10002+this.cat,5;
}
}
}
//Weapons
if (this.sub == 2){
showimg 10001,@Arial@c@Weapons,screenwidth/2-4,screenheight/2+97;
changeimgcolors 10001,1,1,1,1;
changeimgvis 10001,5;
changeimgzoom 10001,.5;
}
//Armours
if (this.sub == 3){
showimg 10001,@Arial@c@Armours,screenwidth/2-4,screenheight/2+97;
changeimgcolors 10001,1,1,1,1;
changeimgvis 10001,5;
changeimgzoom 10001,.5;
}
//Tools
if (this.sub == 4){
showimg 10001,@Arial@c@Tools,screenwidth/2-4,screenheight/2+97;
changeimgcolors 10001,1,1,1,1;
changeimgvis 10001,5;
changeimgzoom 10001,.5;
}
timeout = 0.05;
}
//GUI TELL TO's
function hideall(){
for (i=10000; i<10300; i++){
hideimg i;
}
}
if (this.on == 1 && this.sub <= 0){
this.sub = 1;
}
if (this.on == 1 && this.sub>4){
this.sub = 4;
}
//Debug
if (playerchats && strequals(#c,+)){
this.cat++;
}
if(playerchats && strequals(#c,-)){
this.cat--;
}
enablefeatures allfeatures-2-4-8-0x10-0x20-0x100-0x200-0x2000-0x4000-0x8000;
showstats 256+512+1024;