Ticket #4008: 4008_back_to_work.patch

File 4008_back_to_work.patch, 2.6 KB (added by Imarok, 3 years ago)

Add a hotkey for back-to-work

  • binaries/data/config/default.cfg

     
    279279[hotkey.session]
    280280kill = Delete                ; Destroy selected units
    281281stop = "H"                   ; Stop the current action
     282backtowork = "Y"             ; The unit will go back to work
    282283unload = "U"                 ; Unload garrisoned units when a building/mechanical unit is selected
    283284attack = Ctrl                ; Modifier to attack instead of another action (eg capture)
    284285attackmove = Ctrl            ; Modifier to attackmove when clicking on a point
  • binaries/data/mods/public/gui/manual/intro.txt

     
    7070. (Period): Select idle worker (including citizen soldiers)
    7171Shift + .: add idle worker to selection (including citizen soldiers)
    7272H: Stop (halt) the currently selected units.
     73Y: The unit will go back to work
    7374U: Unload the garrisoned units of the selected buildings
    7475Ctrl + 1 (and so on up to Ctrl + 0): Create control group 1 (to 0) from the selected units/buildings
    75761 (and so on up to 0): Select the units/buildings in control group 1 (to 0)
  • binaries/data/mods/public/gui/session/hotkeys/misc.xml

     
    5454        <action on="Press">stopUnits(g_Selection.toList());</action>
    5555    </object>
    5656
     57    <object hotkey="session.backtowork">
     58        <action on="Press">backToWork();</action>
     59    </object>
     60
    5761    <!-- Find idle warrior - TODO: Potentially move this to own UI button? -->
    5862    <object hotkey="selection.idlewarrior">
    5963        <action on="Press">findIdleUnit(["Hero", "Champion", "CitizenSoldier", "Siege", "Warship", "Dog"]);</action>
  • binaries/data/mods/public/gui/session/unit_actions.js

     
    11541154                return false;
    11551155
    11561156            return {
    1157                 "tooltip": translate("Back to Work"),
     1157                "tooltip": colorizeHotkey("%(hotkey)s" + " ", "session.backtowork") +
     1158                           translate("Back to Work"),
    11581159                "icon": "production.png"
    11591160            };
    11601161        },