Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GuiBitmapButtonCtrl Hide/Show (https://forums.graalonline.com/forums/showthread.php?t=134260448)

iSlayer 09-06-2010 08:46 AM

GuiBitmapButtonCtrl Hide/Show
 
Hello my fellow haters just wondering if there is a command for making a GuiBitmapButton hide/show as
PHP Code:

visible false

doesnt work

MrOmega 09-06-2010 09:02 AM

Not most efficient but try obj.alpha = 0;

Tigairius 09-06-2010 09:31 AM

You need to show more so we that the problem is exactly what you're talking about. Please at least show the whole button object.

Also, try using
PHP Code:

this.hide(); 


RobinX 09-06-2010 05:31 PM

visible() did not work for me either, I'm not sure if this has been deprecated? Button_Name.show() and Button_Name.hide() works fine.

cbk1994 09-06-2010 07:33 PM

visible = false; certainly works.

MrOmega 09-06-2010 10:02 PM

If you do, dothe alpha = 0 then you might want to do active = false as well

PHP Code:

alpha active 0


oo_jazz_oo 09-06-2010 10:02 PM

If your trying to hide the control from within it's script, then
PHP Code:

visible false

If your trying to make it hide from outside the script, which I suspect you are...
PHP Code:

Button_Name.visible false

Would be it. :P

MrOmega 09-06-2010 10:03 PM

If you do, dothe alpha = 0 then you might want to do active = false as well

PHP Code:

alpha active 0


cbk1994 09-06-2010 11:09 PM

You shouldn't be changing alpha and active state to show or hide the button, period.


All times are GMT +2. The time now is 01:18 AM.

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