Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Snake on Fri 07/05/2004 02:55:23

Title: Where/What are the commands for enabling/disabling GUI buttons?
Post by: Snake on Fri 07/05/2004 02:55:23
I thought there were commands for that? For some reason I can't seem to find them...I could have sworn there were. There should be if there aren't :) ;)

I'm using ver2.56.413

Does the newer version have something like that? All I want to do is either turn particular buttons on/off or disable/enable them. I really don't want to use 9 global ints to check whether they're active or not, but if I've got to it's no problem. Just thought it would be easier to just shut the damned things off and on again ...with...ease? :)

Thanks in advance,


--Snake
Title: Re: Where/What are the commands for enabling/disabling GUI buttons?
Post by: TerranRich on Fri 07/05/2004 02:59:42
Hmm, I can't seem to find anything on this in the help file. Maybe you will have to use global-ints in order to detect it in the click script. Suggest this to CJ!
Title: Re: Where/What are the commands for enabling/disabling GUI buttons?
Post by: strazer on Fri 07/05/2004 03:15:36
Since v2.61 Beta 4:

QuoteAdded SetGUIObjectEnabled script function to explicitly disable a GUI button.
Title: Re: Where/What are the commands for enabling/disabling GUI buttons?
Post by: TerranRich on Fri 07/05/2004 03:25:48
Ah, funny, it's not in the manual. Damn that CJ! :P
Title: Re: Where/What are the commands for enabling/disabling GUI buttons?
Post by: strazer on Fri 07/05/2004 03:28:34
I run RC 1, it's in my manual. ???
Title: Re: Where/What are the commands for enabling/disabling GUI buttons?
Post by: TerranRich on Fri 07/05/2004 03:37:25
Whoops. I have an old version. Serves me right. /me slaps himself.
Title: Re: Where/What are the commands for enabling/disabling GUI buttons?
Post by: Snake on Sat 08/05/2004 04:48:26
Sweet, thanks strazer :D

Damn my 2.56ness...

//Snake goes to download new version...

Yeah, I scoured that damned manual for the longest time looking for such a command, thinking, "WTF?! I KNOW there must be one! How the hell can you NOT have SetGUIButtonOff/On(); or something of the sort by now?!?!"

:)
Thanks guys,


--Snake