Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Gui Buttom Problem (https://forums.graalonline.com/forums/showthread.php?t=83956)

Rave_J 01-31-2009 05:05 AM

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

http://i60.photobucket.com/albums/h2...uiproblem1.gif

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";
}

cbk1994 01-31-2009 05:26 AM

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.

Rave_J 01-31-2009 07:27 AM

ya im working on my gui skills
to be honest

cbk1994 01-31-2009 08:07 AM

Edited my original post, you need to use "profile.bitmap", not "bitmap". My bad, I mistyped it.

Rave_J 01-31-2009 01:44 PM

u did put profile.bitmap ??

xXziroXx 01-31-2009 02:23 PM

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;



Crow 01-31-2009 03:19 PM

I suggest using guiera_button.png instead, since using guiera_tab.png will most likely **** with your button control.

cbk1994 01-31-2009 08:49 PM

Quote:

Originally Posted by Rave_J (Post 1461454)
u did put profile.bitmap ??

I edited the post.


All times are GMT +2. The time now is 04:02 AM.

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