Obviously, when you try to use an ability of a selected unit when the UI is hidden, the hotkey doesn't register with that ability (which seems stupid). I've been trying to create a dialog which would hold these ability buttons like a command card but I really don't know how to do it and I really don't want the UI involved.
This is what I need to know:
A) Can I make the UI transparent? This would make it there and able to use the hotkeys while not showing up.
B) How do I apply hotkeys for spells into a dialog box? What kinds of dialog items do I use?
C) I've tried to do this with solely triggers (which I totally wanted to avoid) where "Any player uses X key..."
I've searched Google and I've tried putting a few ideas together for two or three hours. I have no idea how to do it.
Thanks ahead of time!
A: Yes you can make the UI Transparent/Hide it, by using:"UI - Show/Hide UI Frame". You can also use it to hide individual parts of the UI as well as the background UI u want to hide. Just hide the Console Panel.
B: You have to make a separate trigger that registers the keyboardinput of the player. Like if player pushes:"1" his hero will use this variable(with an ability in it). To show Numbers on the dialog buttons you have to make labels on each dialog button. It is possible to do this but I don't recommend it. You can make an dialog and put it on the Command Panel(the panel with the abilities) and create Image Dialog Items on top of the Command panel ability buttons which represent the icon of the ability(with the Command panel ui still visible). This will work regardless if it's on top of the ui.
C: Create a Trigger and give it an Event called:"Key Pressed" which registers a keypress and which one. After that create an Action called:"General - Switch" and change the Value to the Function:"Key Pressed". Then add Cases(Click on Cases in the Switch and press CTRL + W) and change the Value to which key you want to listen to. You can add multiple Cases for all the key's you need.
Obviously, when you try to use an ability of a selected unit when the UI is hidden, the hotkey doesn't register with that ability (which seems stupid). I've been trying to create a dialog which would hold these ability buttons like a command card but I really don't know how to do it and I really don't want the UI involved.
This is what I need to know: A) Can I make the UI transparent? This would make it there and able to use the hotkeys while not showing up. B) How do I apply hotkeys for spells into a dialog box? What kinds of dialog items do I use? C) I've tried to do this with solely triggers (which I totally wanted to avoid) where "Any player uses X key..."
I've searched Google and I've tried putting a few ideas together for two or three hours. I have no idea how to do it. Thanks ahead of time!
Edit: Mistype.
A: Yes you can make the UI Transparent/Hide it, by using:"UI - Show/Hide UI Frame". You can also use it to hide individual parts of the UI as well as the background UI u want to hide. Just hide the Console Panel.
B: You have to make a separate trigger that registers the keyboardinput of the player. Like if player pushes:"1" his hero will use this variable(with an ability in it). To show Numbers on the dialog buttons you have to make labels on each dialog button. It is possible to do this but I don't recommend it. You can make an dialog and put it on the Command Panel(the panel with the abilities) and create Image Dialog Items on top of the Command panel ability buttons which represent the icon of the ability(with the Command panel ui still visible). This will work regardless if it's on top of the ui.
C: Create a Trigger and give it an Event called:"Key Pressed" which registers a keypress and which one. After that create an Action called:"General - Switch" and change the Value to the Function:"Key Pressed". Then add Cases(Click on Cases in the Switch and press CTRL + W) and change the Value to which key you want to listen to. You can add multiple Cases for all the key's you need.
Thank you tons! I guess I never thought to look at the UI Frames option! Thanks again!
Ur welcome =]