Super hotkey

This bundle is marked as pending. It has not been reviewed by a staff member yet.
Supported game versions: 1.26a, 1.27a

Features:
  • Setting up hotkeys for buttons on the command bar.
  • Alternative hotkeys for the build/learn/spellbook menu.
  • The ability's hotkey depends on its current position on the command panel.
  • Hotkey for switching autocast.
  • Hotkey for quick casting on a selected unit.
  • Hotkey for quick casting on a unit/point under the cursor.
  • Setting up hotkeys for inventory.
  • Hotkey for collapsing/expanding a multiboard.
  • Changing the position of buttons on the command bar.
  • Hiding buttons on the command bar.

Option nameHotkeyFor super mode onlyDescription
command_bar_hotkeysrow 1 = M G F A
row 2 = Y S D T
row 3 = Q W E R
Hotkeys for the command bar in normal mode.
submenu_hotkeysrow 1 = Q W E R
row 2 = A S D F
row 3 = Ctrl+Z Ctrl+X Ctrl+C Ctrl+V
Hotkeys for the command bar when the submenu is open (the building/lean/spellbook menu)
inventory_bar_hotkeysrow 1 = Z X
row 2 = C V
row 3 = B N
Hotkeys for items in inventory.
close_submenu_hotkeyEscapeClose the current submenu (build/learn/spellbook), if present.
any command bar button hotkey+Moves the button under the cursor to the slot corresponding to the hotkey.
hide_button_hotkeyDelete+Removes the button under the cursor.
reset_hidden_buttons_hotkeyCtrl + F11Clears the list of hidden buttons.
super_mode_toggle_hotkeyCtrl + F12Switches "super mode".
multiboard_toggle_hotkey~Collapses/expands the multiboard.

Actions:
The config also contains the "actions" option, which contains a list of actions that will be performed when using hotkeys for the orders/inventory panel, depending on the pressed modifiers. By default, when using the Alt modifier, autocast is switched, and holding Ctrl leads to the cast of the ability on the selected unit (selfcast).

This is what the "actions" field looks like in the standard config (you can learn more about the format below):
Code:
[
    ["", "PressButton"],
    ["ALT", "ToggleAutocast"],
    ["CONTROL", "CastOnSelf"]
],

If desired, you can enable the quickcast mode, in which, instead of entering the aiming mode, the ability will be immediately applied at the cursor position. To do this, change the default action type (the one with empty modifiers that comes first in the list) from "PressButton" to "CastOnCursor".

IndexNameValue typeDescription
0Extra modifiersStringIf, when using a hotkey for a command button, the specified modifier keys are also pressed, the corresponding action will be performed.
1ActionString
The name of the action to be performed upon activation. Possible actions:
NameDescription
PressButtonJust presses a button. If the ability has no target, it will be used, otherwise the targeting menu will open.
CastOnSelfUses the ability on the selected unit.
CastOnCursorUses the ability on a unit or point under the cursor.
ToggleAutocastToggles the auto-cast mode for the ability.

Installation:
Transfer files "super_hotkey.mix", "super_hotkey.key_codes.json" and "super_hotkey.json" to the game folder.

2024-06-08:
  • Fixed the inability to use an item in inventory on itself using a hotkey.
  • Fixed that hotkey for the command and inventory bars did not work when the Shift key was held down.
  • Fixed the inability to close submenus by pressing the Escape key. Now this hotkey is configured in the config.
  • Fixed a bug when using a hotkey for an empty inventory slot, the first button on the order panel was pressed.
  • Fixed that hotkeys were ignored during selection (when the left mouse button held down) and scrolling (with the mouse wheel held down).
  • Fixed that when changing the position of the buttons of autocast abilities, only the specific version (on/off) changed.
2024-06-21:
  • Added a hotkey for quick casting on a selected unit.
  • Added a hotkey for quick casting on a unit/point under the cursor.
2024-06-21 (2):
  • Removed the unfinished system for activating abilities by double pressing hotkeys.
  • Fixed a reintroduced bug with the inability to use an item in inventory on itself using a hotkey.

Sources:
The archive also contains a "sources" folder, which contains the source code for this mod.


Support the author
Contents

Super hotkey (Binary)

Top