Ticket #3018: saved.diff
File saved.diff, 2.1 KB (added by , 9 years ago) |
---|
-
binaries/data/config/default.cfg
287 287 rotate.cw = RightBracket ; Rotate building placement preview clockwise 288 288 rotate.ccw = LeftBracket ; Rotate building placement preview anticlockwise 289 289 290 [hotkey.session.savedgames] 291 delete = Delete ; Delete the selected saved game without confirmation 292 290 293 [hotkey.session.queueunit] ; > UNIT TRAINING 291 294 1 = "Z" ; add first unit type to queue 292 295 2 = "X" ; add second unit type to queue -
binaries/data/mods/public/gui/savedgames/load.js
110 110 messageBox(500, 200, sprintf(translate("\"%(label)s\""), { label: gameLabel }) + "\n" + translate("Saved game will be permanently deleted, are you sure?"), translate("DELETE"), 0, btCaptions, btCode); 111 111 } 112 112 113 function deleteGameWithoutConfirmation() 114 { 115 var gameSelection = Engine.GetGUIObjectByName("gameSelection"); 116 var gameID = gameSelection.list_data[gameSelection.selected]; 117 reallyDeleteGame(gameID); 118 } 119 113 120 function reallyDeleteGame(gameID) 114 121 { 115 122 if (!Engine.DeleteSavedGame(gameID)) -
binaries/data/mods/public/gui/savedgames/load.xml
31 31 <action on="Press">deleteGame();</action> 32 32 </object> 33 33 34 <object hotkey="session.savedgames.delete"> 35 <action on="Press">deleteGameWithoutConfirmation();</action> 36 </object> 37 34 38 <object name="loadGameButton" type="button" style="StoneButton" size="66%-5 100%-60 100%-25 100%-32"> 35 39 <translatableAttribute id="caption">Load</translatableAttribute> 36 40 <action on="Press">loadGame();</action>