View Single Post
  #1  
Old 06-16-2013, 09:28 AM
khortez khortez is offline
PrototypeX
khortez's Avatar
Join Date: Dec 2008
Posts: 91
khortez will become famous soon enough
making a custom GUI button - help

i need some help in making a custom button. so far the only way i have figured to work is using GuiBitmapButtonCtrl. if there is another way please tell me (like a different function or anything really). if not then does the image need to be a certain size or something? like if it needs to be 32x32. is it also possible to resize it? like i would using parth partx etc for other GUI images.

here is my current attempt. (it's halved)

PHP Code:
     new GuiBitmapButtonCtrl("Button_Test") {
          
extent = {
            
100100
          
};
          
position = {
            
1010
          
};
          
normalbitmap "c_inventorytest6-13-2013.png";
          
mouseoverbitmap "c_inventorytest6-13-2013.png";
          
pressedbitmap "c_inventorytest6-13-2013.png";
          
text "Press me!";
        } 
i'm just not sure if there is more that i can do and i just haven't found it yet..or if that's just about it. thanks for any help

Last edited by khortez; 06-17-2013 at 04:27 AM..
Reply With Quote