View Single Post
  #9  
Old 09-08-2007, 10:18 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Hmm, then my guess is, you're not giving them a coordinate in the Inventory control? I'm not used to use the inventory itself as an gui control.. I just use an image and then a for() loop and place them on the image itself..

and I use another method for placing them (Thanks Contiga for that one )
PHP Code:
+ (offsetx*index§iconshorizontal);
+ (offsety*int(index/iconsvertical)); 
for example for 6x6 icons I do:
PHP Code:
this.ix inventory.x;
this.iy inventory.y;
for(
temp.036++) {
  new 
GuiBitmapButtonCtrl("button_" i) {
    
thiso.ix 13.5 + (33*(i§6));
    
thiso.iy 165 + (33*int(i/6));
          
    
this.image "bomb.png";
          
    
normalbitmap this.image;
    
mouseoverbitmap this.image;
    
pressedbitmap this.image;

    
width 32;
    
height 32;
          
    
thiso.catchevent(this"onMouseDown""onItemPressed");
  }

PS: In the scripts I had to write § instead of o/o (percent symbol), stupid bad request **** =/
Reply With Quote