Possible to view/hide panel buttons

Posted By: robertbruce

Possible to view/hide panel buttons - 04/27/13 19:49

Hello,

Just wanted to ask if anyone knows a way to make specific panel buttons visible or invisible.

example:

panel singleletter_t
{
layer = 30;
button = 340, 450, bmap1_bmp, bmap1_bmp, bmap1_bmp, clickedbutton1, null, null;
button = 340, 150, bmap2_bmp, bmap2_bmp, bmap2_bmp, clickedbutton2, null, null;
flags=visible;
}


thanks,

Rob
Posted By: 3run

Re: Possible to view/hide panel buttons - 04/27/13 19:58

Hi

As far as I know, you can only hide/show the panel itself (simply by singleletter_t.invisible = 1;).
If you want to do that separately with those two buttons, create a panel for each of the button.
Posted By: fogman

Re: Possible to view/hide panel buttons - 04/27/13 20:52

Dirty hack: Use pan_setbutton to move the button out of the view:
http://www.conitec.net/beta/pan_setbutton.htm

Use 10000 for var x and var y for example.
Posted By: 3run

Re: Possible to view/hide panel buttons - 04/27/13 21:18

Thats what I do with the created digits grin Completely forgot about it..
© 2024 lite-C Forums