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:
parent
81dfd63610
commit
86db66cac1
@ -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 :
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user