Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-05-2010, 04:06 AM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
bitmap button layers

How would I do layers for a bitmap button? I used layer=4; already. Got anything else?
Reply With Quote
  #2  
Old 08-05-2010, 04:17 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
That's a GUI Object, they are already on 'layer 4' in the sense that they are drawn on the screen and not based on level coordinates.

If a GUI Object is being drawn over it, you can do: buttonObject.showtop(); and it should bring it to the front.
__________________
Quote:
Reply With Quote
  #3  
Old 08-05-2010, 04:22 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
i was acually using showtext(); and i want to make the text appear on top of the button...
so would it be bitmap_button.showbottom();?
Reply With Quote
  #4  
Old 08-05-2010, 04:32 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
You can't draw text over any GUI control using showimg() or showtext(). You should use a GuiShowImgCtrl. It acts just like a regular TShowImg object, but it's on the same "space" than other GUI controls.
Reply With Quote
  #5  
Old 08-05-2010, 04:32 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
If you're trying to make a button with text that changes based on the situation, you could always change the text to a variable and then have the variable set before the button code. (i.e. text = this.buttontext)
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
  #6  
Old 08-05-2010, 06:13 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
ohhh... also how do i make a image from a gui to those normal gui style things. also another question... how do i do it so its like if(rcchat.starts("/summon2"))?
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 05:11 AM.


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