OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bigcheese on 22 Jan 2004, 22:24:10
-
How would you detect if a dialog is open or not, in this situation?
Dlg = createdialog "nukeposdialog"
and the close buttons action = "closedialog 0"
Thanks in advance ...
-
Dlg = createdialog "nukeposdialog"
? !Dlg : hint "Error creating dialog" ; exit
You can also use the function 'dialog'. It will return true if a dialog is open (false if not).
If you want to wait until the dialog is close:
@ !dialog
Cheers
-
cheers alimag
ill give that a go
-
Hey !
CtrlVisible (http://www.ofpec.com/editors/comref.php?letter=C#ctrlVisible) is also very often used.
Just in case,
Ig.