My problemis to change the label of the button slot as seen in this screenshot: http://puu.sh/2svwo/6c35e03afc
The hotkey I've set in SC2Layout works, but Numpad 1 which is the default Inventory hotkey client side, overrides my set hotkey. How can I change this label (I'm guessing there's a well hidden list of attributes I can assign to my button)?
Edit 2: Figured out how to set hotkeys for inventory items. It turns out the new UI area of the editor does not allow you to modify the gamestrings.txt and gamehotkeys.txt file. For anyone else interested, you need to use an MPQ editor and open up your <map name>.SC2Map file. Then browse to <map name>.SC2Map/enUS.SC2Data/LocalizedData and edit the GameHotkeys.txt file. Remember to exit the SC2 editor and game first so that you can edit the files.
For example, I added the following lines to GameHotkeys.txt:
The above lines specify hotkey aliases that I can now use in my custom UI files.
So now that I've saved the updated GameHotkeys.txt file, I re-open the editor, go to the UI section, find the button that I want to add the hotkey for (in this example I had first created an override file to change the UI layout of inventory container buttons), and add the appropriate <Shortcut> tag line:
The shortcut attribute is very useful, you don't actually need a UI reference to set a hotkey, just set it directly in the shortcut value: <Shortcut val="V"/>
My problemis to change the label of the button slot as seen in this screenshot: http://puu.sh/2svwo/6c35e03afc The hotkey I've set in SC2Layout works, but Numpad 1 which is the default Inventory hotkey client side, overrides my set hotkey. How can I change this label (I'm guessing there's a well hidden list of attributes I can assign to my button)?
Thanks for all and any help!
In response to kappyd23s from thread http://www.sc2mapster.com/forums/general/general-chat/40030-1-5-ui-stuff-demo-1-control-built-in-ui-stuff-with/ (Wasn't sure if I was to necro the thread or not)
The shortcut attribute is very useful, you don't actually need a UI reference to set a hotkey, just set it directly in the shortcut value: <Shortcut val="V"/>