Wait until group is hidden

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
anonimus
Posts: 1
Joined: Fri Apr 03, 2020 2:23 am

Wait until group is hidden

Post by anonimus »

Hi there, I'm new at livecode and I have a question
I have made a 2 players game and a code that detects if they had chosen the same name (it might break the game) and answers them with a personalized answer box (is just a group of fields). So i was wondering if there was any way to make the code wait until the answer box is hidden.
Thanks and sorry for the bad english
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10428
Joined: Fri Feb 19, 2010 10:17 am

Re: Wait until group is hidden

Post by richmond62 »

Code: Select all

wait 3 seconds
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Wait until group is hidden

Post by Klaus »

Hi anonimus,

welcome to the forum!

Since the ASK and ANSWER dialogs are MODAL, this will happen automatically!

Code: Select all

...
dothis
dothat
answer "Hi there!"
donanotherthing
...
You will see the dialog and the next handler -> doanotherthing will only be executed AFTER
the user has clicked OK in the Answer dialog! :D
If that is what you mean.


Best

Klaus
Post Reply