disable interface/Interface on/off?

Started by , Sun 02/05/2004 02:08:00

Previous topic - Next topic

strifegeek

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

TerranRich

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
Status: Trying to come up with some ideas...

..

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.

strifegeek

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

Scummbuddy

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.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

SMF spam blocked by CleanTalk