Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-31-2009, 05:05 AM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
Question Gui Buttom Problem

I got the background gui to work
now I'm trying to get the button gui to work
can someone give me hand here i got a pic so u know what im talking about



Quote:
new GuiWindowCtrl("MyGUI_Window1") {
useownprofile = true;
profile.bitmap = "guiera_window.png";
clientrelative = true;
clientextent = "320,240";

canclose = false;
canmaximize = false;
canminimize = false;
canmove = true;
canresize = true;
closequery = false;
destroyonhide = false;
text = "Event Bot";
x = 538;
y = 155;

new GuiButtonCtrl("MyGUI_Button1") {
text = "Warp";
width = 80;
x = 215;
y = 143;
normalbitmap = "guiera_tab.png";
mouseoverbitmap = "guiera_tab.png";
pressedbitmap = "guiera_tab.png";
}
Reply With Quote
  #2  
Old 01-31-2009, 05:26 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
It would probably benefit you to build it using GuiBlue (for profiles), then replace that with the appropriate Era profiles later (assuming you plan to use this on Era?)

If not, you need to use
PHP Code:
new GuiButtonCtrl("Window_Button") {
  
useownprofile true;
  
  
profile.bitmap "guiera_button.png";

and then all your other variables.
__________________

Last edited by cbk1994; 01-31-2009 at 08:07 AM..
Reply With Quote
  #3  
Old 01-31-2009, 07:27 AM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
ya im working on my gui skills
to be honest
Reply With Quote
  #4  
Old 01-31-2009, 08:07 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Edited my original post, you need to use "profile.bitmap", not "bitmap". My bad, I mistyped it.
__________________
Reply With Quote
  #5  
Old 01-31-2009, 01:44 PM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
u did put profile.bitmap ??
Reply With Quote
  #6  
Old 01-31-2009, 02:23 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
You are using...

PHP Code:
new GuiButtonCtrl("MyGUI_Button1") {
  
text "Warp";
  
width 80;
  
215;
  
143;
  
normalbitmap "guiera_tab.png";
  
mouseoverbitmap "guiera_tab.png";
  
pressedbitmap "guiera_tab.png";

... and normal/mouseover/pressedbitmap are only for GuiBitmapButtonCtrl's. Instead, do this:

PHP Code:
new GuiButtonCtrl("MyGUI_Button1") {
  
useOwnProfile true;
  
profile.bitmap "guiera_tab.png";
  
text "Warp";
  
width 80;
  
215;
  
143;

__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #7  
Old 01-31-2009, 03:19 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
I suggest using guiera_button.png instead, since using guiera_tab.png will most likely **** with your button control.
Reply With Quote
  #8  
Old 01-31-2009, 08:49 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Rave_J View Post
u did put profile.bitmap ??
I edited the post.
__________________
Reply With Quote
Reply


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 07:16 AM.


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