Allow players to instantly reset the readystate by rightclicking on the ready button, refs #4369, D49 / 5f8f7bae20.

This was SVN commit r21873.
This commit is contained in:
elexis 2018-08-23 17:57:43 +00:00
parent 81dfd63610
commit 86db66cac1
2 changed files with 11 additions and 8 deletions

View File

@ -1011,6 +1011,16 @@ var g_MiscControls = {
"startGame": {
"caption": () =>
g_IsController ? translate("Start Game!") : g_ReadyData[g_IsReady].caption,
"onPress": () => function() {
if (g_IsController)
launchGame();
else
toggleReady();
},
"onPressRight": () => function() {
if (!g_IsController && g_IsReady)
setReady(0, true);
},
"tooltip": (hoverIdx) =>
!g_IsController ?
g_ReadyData[g_IsReady].tooltip :

View File

@ -266,14 +266,7 @@
size="100%-164 100%-52 100%-24 100%-24"
tooltip_style="onscreenToolTip"
z="21"
>
<action on="Press">
if (g_IsController)
launchGame();
else
toggleReady();
</action>
</object>
/>
<!-- Cancel Button -->
<object