Ticket #3962: forcedelete_v3.patch

File forcedelete_v3.patch, 3.3 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
     
    292293
    293294[hotkey.session.savedgames]
    294295delete = Delete               ; Delete the selected saved game asking confirmation
    295 noConfirmation = Shift        ; Do not ask confirmation when deleting a game
     296noconfirmation = Shift        ; Do not ask confirmation when deleting a game
    296297
    297298[hotkey.session.queueunit]   ; > UNIT TRAINING
    2982991 = "Z"            ; add first unit type to queue
  • 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/replaymenu/replay_actions.js

     
    133133    if (!Engine.GetGUIObjectByName("deleteReplayButton").enabled)
    134134        return;
    135135
    136     if (Engine.HotkeyIsPressed("session.savedgames.noConfirmation"))
     136    if (Engine.HotkeyIsPressed("session.savedgames.noconfirmation"))
    137137        deleteReplayWithoutConfirmation();
    138138    else
    139139        deleteReplay();
  • mods/public/gui/savedgames/load.xml

     
    3131            <action on="Press">
    3232                if (!this.enabled)
    3333                    return;
    34                 if (Engine.HotkeyIsPressed("session.savedgames.noConfirmation"))
     34                if (Engine.HotkeyIsPressed("session.savedgames.noconfirmation"))
    3535                    deleteGameWithoutConfirmation();
    3636                else
    3737                    deleteGame();
  • mods/public/gui/session/unit_actions.js

     
    10221022            let selection = g_Selection.toList();
    10231023            if (!selection.length)
    10241024                return;
    1025 
    1026             openDeleteDialog(selection);
     1025            if (Engine.HotkeyIsPressed("session.noconfirmation"))
     1026                Engine.PostNetworkCommand({
     1027                    "type": "delete-entities",
     1028                    "entities": selection
     1029                });
     1030            else
     1031                openDeleteDialog(selection);
    10271032        },
    10281033    },
    10291034    "stop": {