Dialog interferes with GUIOff [solved]

Started by ThunderStorm, Sun 15/06/2003 18:20:05

Previous topic - Next topic

ThunderStorm

Hi there, I've got the following problem:

I have a verb coin gui with three buttons for look, talk and interact. When a button is pressed, the corresponding action is triggered by a code similar to this:

if (button ==1){ // Look
GUIOff(COIN);
ProcessClick(mouse.x, mouse.y, MODE_LOOK);
}


This works fine except for the TALK action, when a characters 'talk to character' script runs a dialog. The coin stays on screen until a dialog option has been clicked, then it vanishes. I have tried to put a GUIOff command right before the RunDialog command as well as running it from a run-script command - it always results in the same.

Is there a way to make the coin GUI disappear before the dialog options are displayed?

Pumaman

Something like this should work:

GUIOff(COIN);
Wait(1);
ProcessClick(mouse.x, mouse.y, MODE_TALK);

Good point though, the dialog system should really redraw the screen before displaying the options.

ThunderStorm

Good solutions can be that simple...

Thanks Chris, I will try that right now.

ThunderStorm

Yeah, now it works just as I expected.
Thanks again!

SMF spam blocked by CleanTalk