Ticket #3962: forcedelete_v2.patch

File forcedelete_v2.patch, 1.9 KB (added by Sandarac, 8 years ago)
  • config/default.cfg

     
    284284batchtrain = Shift           ; Modifier to train units in batches
    285285massbarter = Shift           ; Modifier to barter bunch of resources
    286286masstribute = Shift          ; Modifier to tribute bunch of resources
     287noConfirmation = Shift       ; Do not ask confirmation when deleting a building/unit
    287288fulltradeswap = Shift        ; Modifier to put the desired trade resource to 100%
    288289unloadtype = Shift           ; Modifier to unload all units of type
    289290deselectgroup = Ctrl         ; Modifier to deselect units when clicking group icon, instead of selecting
  • mods/public/gui/credits/texts/programming.json

     
    161161            {"name": "Rolf Sievers"},
    162162            {"nick": "s0600204", "name": "Matthew Norwood"},
    163163            {"nick": "SafaAlfulaij"},
     164            {"nick": "Sandarac"},
    164165            {"nick": "sanderd17", "name": "Sander Deryckere"},
    165166            {"nick": "sathyam", "name": "Sathyam Vellal"},
    166167            {"nick": "sbte", "name": "Sven Baars"},
  • mods/public/gui/session/unit_actions.js

     
    731731            if (!selection.length)
    732732                return;
    733733            if (!entState.resourceSupply || !entState.resourceSupply.killBeforeGather || g_DevSettings.controlAll)
    734                 openDeleteDialog(selection);
     734                if (Engine.HotkeyIsPressed("session.noConfirmation"))
     735                    Engine.PostNetworkCommand({ "type": "delete-entities", "entities": selection });
     736                else
     737                    openDeleteDialog(selection);
    735738        },
    736739    },
    737740    // Stop