mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:24:02 +00:00
Shift key when deleting a saved game do not need confirmation, addresses #3018
This was SVN commit r16245.
This commit is contained in:
@@ -290,6 +290,7 @@ rotate.ccw = LeftBracket ; Rotate building placement preview anticlockwise
|
||||
[hotkey.session.savedgames]
|
||||
delete = Delete ; Delete the selected saved game asking confirmation
|
||||
reallyDelete = "Shift+Delete" ; Delete the selected saved game without confirmation
|
||||
noConfirmation = Shift ; Do not ask confirmation when clicking on the delete button
|
||||
|
||||
[hotkey.session.queueunit] ; > UNIT TRAINING
|
||||
1 = "Z" ; add first unit type to queue
|
||||
|
||||
@@ -117,3 +117,4 @@ Left Drag: Rotate building using mouse (foundation will be placed on mouse relea
|
||||
[font="sans-bold-14"]When loading a saved game
|
||||
[font="sans-14"]Delete: delete the selected saved game, asking for confirmation
|
||||
Shift+Delete: delete the selected saved game without asking for confirmation
|
||||
Shift: do not ask confirmation when clicking on the delete button
|
||||
|
||||
@@ -28,7 +28,12 @@
|
||||
|
||||
<object name="deleteGameButton" type="button" size="33%+20 100%-60 66%-15 100%-32" style="StoneButton" hotkey="session.savedgames.delete">
|
||||
<translatableAttribute id="caption">Delete</translatableAttribute>
|
||||
<action on="Press">deleteGame();</action>
|
||||
<action on="Press">
|
||||
if (Engine.HotkeyIsPressed("session.savedgames.noConfirmation"))
|
||||
deleteGameWithoutConfirmation();
|
||||
else
|
||||
deleteGame();
|
||||
</action>
|
||||
</object>
|
||||
|
||||
<object hotkey="session.savedgames.reallyDelete">
|
||||
|
||||
Reference in New Issue
Block a user