How to hide GUI during a dialog (using the pinned scumm template)?

Started by swaz, Thu 16/08/2007 01:40:32

Previous topic - Next topic

swaz

Hi all, sorry about making this forum full of mine threads :D
I'm using the Scumm template pinned in this section, downloadable at: http://ssh.me.uk/MI2forags271.zip
I simply cannot hide the gui during a dialog.
I tried to do something like this:
Code: ags
gMaingui.Visible=false;
gAction.Visible=false;
dGuy.Start();
gMaingui.Visible=true;
gAction.Visible=true;

But it didn't work..
Suggestions?

nihilyst

That's because the dialog scripts starts, when the current function ends. In your example, the GUI turns off, then on again, and after that the dialog starts.

You could possibly go into the General Settings and set "When interface disabled:" to "GUIs turn off".

cheers
nihilyst

swaz


strazer

The Dialog.Start function is a delayed function, meaning it gets executed at the end of the script, not immediately. Hence, with your code you will have the GUI turned back on when the dialog is actually started.

What you can do is putting everything you want to happen after the dialog (i.e. turning the GUI back on) into a second, separate "Run script" action for the same event.

SMF spam blocked by CleanTalk