vorple / inform7

Inform 7 extensions and templates
Other
9 stars 4 forks source link

Problem when adding text to an already opened modal window #5

Closed Natrium729 closed 6 years ago

Natrium729 commented 7 years ago

Consider the following code:

When play begins:
    show a modal window reading "Hello!";
    set output focus to the modal window;
    say "Goodbye!";
    set output focus to the main window;

The text "Goodbye" only appears if the player clicks in the modal window or press a key. If the player clicks outside the modal window, "Goodbye" appears but the modal window closes at the same time.

Worse, if you use the "show a modal window" without initial content, the player has to click or press a key twice. If the player clicks outside the window, the text will appear in the main window. This behavior can bee seen in the "Version Popup" example.

I believe this is caused by the "wait for any key" in the definitions of the phrases.