Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   bitmap button layers (https://forums.graalonline.com/forums/showthread.php?t=134260077)

xMane 08-05-2010 04:06 AM

bitmap button layers
 
How would I do layers for a bitmap button? I used layer=4; already. Got anything else?

fowlplay4 08-05-2010 04:17 AM

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.

xMane 08-05-2010 04:22 PM

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();?

Crow 08-05-2010 04:32 PM

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.

Jiroxys7 08-05-2010 04:32 PM

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)

xMane 08-05-2010 06:13 PM

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"))?


All times are GMT +2. The time now is 12:43 AM.

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