Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.