Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 02/05/2004 02:08:00

Title: disable interface/Interface on/off?
Post by: on Sun 02/05/2004 02:08:00
i am trying to make a cutscence and during this cutscene i want the users interface to be disabled
i read the tutorial and it said to use the command DisableInterface () though when i tried that it wouldn't let me save the room
when i was typing the command over and over again i accidently typed interface insted of disable interface and it showed that little drop down box and it was showing InterfaceOff InterfaceOn
I think my tutorial may be incorrect because i'm using AGS 2.6 and i think the tutorial was made before then
Please help me out, thx
Title: Re:disable interface/Interface on/off?
Post by: TerranRich on Sun 02/05/2004 04:12:03
Umm...what is it exactly that you need help with? You seem to have solved the problem already. Also, use GUIOn and GUIOff. Those are the most recent commands. You must have a VERY outdated tutorial. Look on the main web site for some recent ones. www.adventuregamestudio.co.uk
Title: Re:disable interface/Interface on/off?
Post by: .. on Sun 02/05/2004 11:31:54
Yeh, InterfaceOff and InterfaceOn are now GuiOff and GuiOn ...

If you wanted to disable the guis apart from the save load ones just use GuiOff(int GUI); for all the Guis you need disabled.
Title: Re: disable interface/Interface on/off?
Post by: on Sun 02/05/2004 17:10:00
i tied the GUIOn() GUIOff() but it gave me an error message when i tied to save my room
"There was an error compiling your script. The problem was:
In:'Main script'
Error (line2):Parse error: unexpected 'InterfaceOff' "
all i have on line two is GUIOff (8);
Title: Re: disable interface/Interface on/off?
Post by: Scummbuddy on Sun 02/05/2004 17:34:30
its probably a braces fault. check your braces.... the { and }'s. if you can't find the problem, feel free to upload the surrounding code where the problem is occuring, like the whole functions code.