Search the Community
Showing results for tags 'escape menu'.
Found 1 result
-
Hello, Scripting question here. I've done several Googling sessions and haven't found anything. In a mission framework I am creating, I have added a button to the escape menu using the onPauseScript setting in my description.ext to run this code to add a button: _menu = _this select 0; _adminButton = _menu ctrlCreate ["RscButton",9998]; // Move it to the position _adminButton ctrlSetPosition [0,0]; // Set the text _adminButton ctrlSetText "Console"; // Add the event handler to execute the console script. TODO: Close the escape menu before opening _adminButton ctrlAddEventHandler ["buttonClick", {_menu closeDisplay 0; player spawn wmc_fnc_openConsole}]; This works, as far as it creates the dialog, but it leaves the escape menu open, which in turn causes problems with VCOM's menu, plus it's just annoying. I have tried several things in place of "_menu closeDisplay 0;" including closeDialog. I don't know if I'm doing it right, but I haven't been able to find much documentation on this. Is there a way to close the escape menu through scripting, or even just simulate the key press of the ESC key to close it? Thanks, Nightwolf
- 5 replies
-
- menu
- escape menu
-
(and 1 more)
Tagged with: