Lets players change hotkeys for their abilities thru a Dialog Box. Uses banks to carry setup over if they play map again. Isn't that just awesome?
Uses catalogs to change hotkeys of buttons.
Don't want to copy-paste stuff from asset page for details, so basic idea:
Just call the function with units ID (+- some stuff) and you can edit them by selecting one of buttons and mashing keyboard button afterward. Afterwards hit accept and your unit should have new hotkeys ready to use (There's also dropdown list of 4 grid setups).
Only uncomfortable stuff is that you need some specified lines inside Hotkeys.txt of your map, but adding them with mpq editor is pretty easy.
Also, when calling Dialog Box for the first time (or when you don't load bank/have nothing to load) you can't display hotkeys then coz blizz is sweet and there's no text -> string conversion.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
http://www.sc2mapster.com/assets/customizable-hotkeys/
Lets players change hotkeys for their abilities thru a Dialog Box. Uses banks to carry setup over if they play map again. Isn't that just awesome?
Uses catalogs to change hotkeys of buttons.
Don't want to copy-paste stuff from asset page for details, so basic idea:
Just call the function with units ID (+- some stuff) and you can edit them by selecting one of buttons and mashing keyboard button afterward. Afterwards hit accept and your unit should have new hotkeys ready to use (There's also dropdown list of 4 grid setups).
Only uncomfortable stuff is that you need some specified lines inside Hotkeys.txt of your map, but adding them with mpq editor is pretty easy.
Also, when calling Dialog Box for the first time (or when you don't load bank/have nothing to load) you can't display hotkeys then coz blizz is sweet and there's no text -> string conversion.