Ticket #3962: forcedelete.patch
File forcedelete.patch, 2.0 KB (added by , 8 years ago) |
---|
-
config/default.cfg
284 284 batchtrain = Shift ; Modifier to train units in batches 285 285 massbarter = Shift ; Modifier to barter bunch of resources 286 286 masstribute = Shift ; Modifier to tribute bunch of resources 287 massdelete = Shift ; Do not ask confirmation when deleting a building 287 288 fulltradeswap = Shift ; Modifier to put the desired trade resource to 100% 288 289 unloadtype = Shift ; Modifier to unload all units of type 289 290 deselectgroup = Ctrl ; Modifier to deselect units when clicking group icon, instead of selecting -
mods/public/gui/session/menu.js
164 164 closeOpenDialogs(); 165 165 166 166 let deleteSelectedEntities = function (selectionArg) 167 167 168 { 168 169 Engine.PostNetworkCommand({ "type": "delete-entities", "entities": selectionArg }); 169 170 }; … … 178 179 ); 179 180 } 180 181 182 function deleteWithoutConfirmation(selection) 183 { 184 closeOpenDialogs(); 185 186 Engine.PostNetworkCommand({ "type": "delete-entities", "entities": selection }); 187 } 188 181 189 function openSave() 182 190 { 183 191 closeOpenDialogs(); -
mods/public/gui/session/unit_actions.js
731 731 if (!selection.length) 732 732 return; 733 733 if (!entState.resourceSupply || !entState.resourceSupply.killBeforeGather || g_DevSettings.controlAll) 734 openDeleteDialog(selection); 734 if (Engine.HotkeyIsPressed("session.massdelete")) 735 deleteWithoutConfirmation(selection); 736 else 737 openDeleteDialog(selection); 735 738 }, 736 739 }, 737 740 // Stop