Fixes Esc key opening options dialog in match setup, introduced by a964e83c79
This was SVN commit r16966.
This commit is contained in:
1 parent
8a8a3b8377
commit
9451cf38f7
2 files changed
+5
-5
No files matched your search
@@ -1786,10 +1786,10 @@ function addChatMessage(msg)
|
||||
Engine.GetGUIObjectByName("chatText").caption = g_ChatMessages.join("\n");
|
||||
}
|
||||
|
||||
function toggleMoreOptions()
|
||||
function showMoreOptions(show)
|
||||
{
|
||||
Engine.GetGUIObjectByName("moreOptionsFade").hidden = !Engine.GetGUIObjectByName("moreOptionsFade").hidden;
|
||||
Engine.GetGUIObjectByName("moreOptions").hidden = !Engine.GetGUIObjectByName("moreOptions").hidden;
|
||||
Engine.GetGUIObjectByName("moreOptionsFade").hidden = !show;
|
||||
Engine.GetGUIObjectByName("moreOptions").hidden = !show;
|
||||
}
|
||||
|
||||
function toggleReady()
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
>
|
||||
<translatableAttribute id="caption">More Options</translatableAttribute>
|
||||
<translatableAttribute id="tooltip">See more game options</translatableAttribute>
|
||||
<action on="Press">toggleMoreOptions();</action>
|
||||
<action on="Press">showMoreOptions(true);</action>
|
||||
</object>
|
||||
|
||||
<!-- End Options -->
|
||||
@@ -406,7 +406,7 @@
|
||||
>
|
||||
<translatableAttribute id="caption">OK</translatableAttribute>
|
||||
<translatableAttribute id="tooltip">Close more game options window</translatableAttribute>
|
||||
<action on="Press">toggleMoreOptions();</action>
|
||||
<action on="Press">showMoreOptions(false);</action>
|
||||
</object>
|
||||
<!-- End More Options -->
|
||||
</object>
|
||||
|
||||
Reference in new issue
Block a user