Home   Help Search Login Register  

Author Topic: prevent dialog for being closed  (Read 615 times)

0 Members and 1 Guest are viewing this topic.

demon of evil

  • Guest
prevent dialog for being closed
« on: 26 Feb 2003, 14:34:26 »
normally, you can close a dialog with esc. how can you prevent from doing that?

thanks for those who help me

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:prevent dialog for being closed
« Reply #1 on: 26 Feb 2003, 17:52:52 »
disableuserinput true / disableuserinput false

The only thing is that when disabling the user input, it's impossible for him to do anything else either  :-X
Not all is lost.

demon of evil

  • Guest
Re:prevent dialog for being closed
« Reply #2 on: 27 Feb 2003, 12:28:52 »
sounds like a good one

vektorboson

  • Guest
Re:prevent dialog for being closed
« Reply #3 on: 27 Feb 2003, 12:44:26 »
better:

@!dialog || YOUR_VARIABLE
?YOUR_VARIABLE: exit
[] exec "CreateYourDialog.sqs"


YOUR_VARIABLE is the condition to end the dialog, "CreateYourDialog.sqs" is your script, where the dialog is created!

Don't forget to call the above script from the CreateYourDialog.sqs

demon of evil

  • Guest
Re:prevent dialog for being closed
« Reply #4 on: 27 Feb 2003, 12:49:23 »
yo vektorboson,

you already told me this 2 weeks ago, but u know,.... I'm not that advanced scripter. So could you please explain the above script a bit better.

question 1: where do I have to put this script
question 2: your_variable? I really dont get that

further, thanks.

plz explain this better..

cya

Fishion

  • Guest
Re:prevent dialog for being closed
« Reply #5 on: 27 Feb 2003, 13:54:27 »
I'm an advanced scripter too  ;)

Code: [Select]
@!dialog || YOUR_VARIABLE@ -  wait for varaible dialog == false
or that your close varaible (YOUR_VARIABLE) is set

Code: [Select]
?YOUR_VARIABLE: exitif your close variable is set, then exit,
otherwise:

Code: [Select]
[] exec "CreateYourDialog.sqs"open the dialogue again.

don't forget to jump at the beginning of the script again:

Code: [Select]
#diag_non_close
@!dialog || YOUR_VARIABLE
?YOUR_VARIABLE: exit
[] exec "CreateYourDialog.sqs"
goto "diag_non_close

cheers
-Fishion
« Last Edit: 27 Feb 2003, 13:57:37 by Fishion »

demon of evil

  • Guest
Re:prevent dialog for being closed
« Reply #6 on: 28 Feb 2003, 13:00:31 »
thanks