I want to create some in game command hotkeys like the F1 and F2 hotkeys that Select all army units, select idle worker, or select hero. However, I haven't been able to find any tutorials for how to do this.
I want to create my own, and possible edit or change the default ones that already exist in the game, (I.E. Select idle worker and select army units)
Where do you edit how hotkeys function and what they do in the Data editor?
- you can hardcode hotkeys with <shortcut val="X"/> in UI-editor. if you set it to F1, both things will happen, so it doesnt overwrite the other. you can't change ,the hotkey set through shortcut val="" , through sc2 settings.
- dialog - set hotkey function is akward and has only a predefined set of keys. not sure if it's really working.
- using <HotkeyUse val="X"/> is purely visual, means it shows the hotkey inside the tooltip. no other effect noticed.
- using ... val="@whatever" uses the right default hotkey but changing the hotkey in settings still doesnt work.
- hook a button (with trigger hook action) and setting hotkey doesnt work for me
Conclusion:
if you need a hotkey:
1. you have to use predefined ones, hook the buttons to a dialog item and use this in triggers (Dialog item used event)
2. or create UI-Buttons in UI-Editor using the shortcut attribute.
I want to create some in game command hotkeys like the F1 and F2 hotkeys that Select all army units, select idle worker, or select hero. However, I haven't been able to find any tutorials for how to do this.
I want to create my own, and possible edit or change the default ones that already exist in the game, (I.E. Select idle worker and select army units)
Where do you edit how hotkeys function and what they do in the Data editor?
i am pretty deep into hotkeys lately.
Summary:
- you can hardcode hotkeys with <shortcut val="X"/> in UI-editor. if you set it to F1, both things will happen, so it doesnt overwrite the other. you can't change ,the hotkey set through shortcut val="" , through sc2 settings.
- dialog - set hotkey function is akward and has only a predefined set of keys. not sure if it's really working.
- using <HotkeyUse val="X"/> is purely visual, means it shows the hotkey inside the tooltip. no other effect noticed.
- using ... val="@whatever" uses the right default hotkey but changing the hotkey in settings still doesnt work.
- hook a button (with trigger hook action) and setting hotkey doesnt work for me
Conclusion:
if you need a hotkey:
1. you have to use predefined ones, hook the buttons to a dialog item and use this in triggers (Dialog item used event)
2. or create UI-Buttons in UI-Editor using the shortcut attribute.
btw this question is anything but not data