Ticket #4008: missingunitactionhotkeys.patch
File missingunitactionhotkeys.patch, 4.8 KB (added by , 8 years ago) |
---|
-
binaries/data/config/default.cfg
177 177 [hotkey.camera] 178 178 reset = "R" ; Reset camera rotation to default. 179 179 follow = "F" ; Follow the first unit in the selection 180 rallypointfocus = "Y" ; Focus the camera on the rally point of the selected building 180 181 zoom.in = Plus, Equals, NumPlus ; Zoom camera in (continuous control) 181 182 zoom.out = Minus, NumMinus ; Zoom camera out (continuous control) 182 183 zoom.wheel.in = WheelUp ; Zoom camera in (stepped control) … … 280 281 garrison = Ctrl ; Modifier to garrison when clicking on building 281 282 autorallypoint = Ctrl ; Modifier to set the rally point on the building itself 282 283 guard = "G" ; Modifier to escort/guard when clicking on unit/building 284 repair = Alt ; Modifier to repair when clicking on building/mechanical unit 285 unload = "U" ; Modifier to unload when building/mechanical unit is selected 283 286 queue = Shift ; Modifier to queue unit orders instead of replacing 284 287 batchtrain = Shift ; Modifier to train units in batches 285 288 massbarter = Shift ; Modifier to barter bunch of resources -
binaries/data/mods/public/gui/session/hotkeys/camera.xml
5 5 <action on="Press">setCameraFollow(g_Selection.getFirstSelected());</action> 6 6 </object> 7 7 8 <!-- Focus camera on building rally point --> 9 <object hotkey="camera.rallypointfocus"> 10 <action on="Press">performCommand(g_Selection.getFirstSelected(), "focus-rally");</action> 11 </object> 12 8 13 <!-- Camera jumping - press a hotkey to mark a position and another hotkey to jump back there --> 9 14 <object hotkey="camera.jump.1"> 10 15 <action on="Press">jumpCamera(1);</action> -
binaries/data/mods/public/gui/session/hotkeys/misc.xml
53 53 <action on="Press">performCommand(g_Selection.getFirstSelected(), "delete");</action> 54 54 </object> 55 55 56 <!-- Unload units from building/mechanical unit --> 57 <object hotkey="session.unload"> 58 <action on="Press">unloadAll();</action> 59 </object> 60 56 61 <!-- Stop the selected units --> 57 62 <object hotkey="session.stop"> 58 63 <action on="Press">stopUnits(g_Selection.toList());</action> -
binaries/data/mods/public/gui/session/unit_actions.js
782 782 data.targetClasses = targetClasses; 783 783 cursor = "action-attack-move"; 784 784 } 785 else if (Engine.HotkeyIsPressed("session.repair") && targetState.needsRepair && 786 playerCheck(entState, targetState, ["Ally"])) 787 { 788 data.command = "repair"; 789 data.target = targetState.id; 790 cursor = "action-repair"; 791 } 785 792 786 if (targetState.garrisonHolder && 793 if (targetState.garrisonHolder && !Engine.HotkeyIsPressed("session.repair") && 787 794 playerCheck(entState, targetState, ["Player", "MutualAlly"])) 788 795 { 789 796 data.command = "garrison"; … … 973 980 } 974 981 975 982 return { 976 "tooltip": translate("Unload All"), 983 "tooltip": colorizeHotkey("%(hotkey)s" + " ", "session.unload") + 984 translate("Unload All."), 977 985 "icon": "garrison-out.png", 978 986 "count": count, 979 987 }; … … 1103 1111 return false; 1104 1112 1105 1113 return { 1106 "tooltip": translate("Repair"), 1114 "tooltip": colorizeHotkey("%(hotkey)s" + " ", "session.repair") + 1115 translate("Order the selected units to repair a building or mechanical unit."), 1107 1116 "icon": "repair.png" 1108 1117 }; 1109 1118 }, … … 1121 1130 return false; 1122 1131 1123 1132 return { 1124 "tooltip": translate("Focus on Rally Point"), 1133 "tooltip": colorizeHotkey("%(hotkey)s" + " ", "camera.rallypointfocus") + 1134 translate("Focus on Rally Point."), 1125 1135 "icon": "focus-rally.png" 1126 1136 }; 1127 1137 }, … … 1275 1285 } 1276 1286 1277 1287 return { 1278 "tooltip": translate("Unload All"), 1288 "tooltip": colorizeHotkey("%(hotkey)s" + " ", "session.unload") + 1289 translate("Unload All."), 1279 1290 "icon": "garrison-out.png", 1280 1291 "count": count, 1281 1292 };