I'm just trying to move 1 of each 3 different heroes command card abilities to the main screen UI (as well as display the cooldowns).
Please expand on this. You want the ability buttons of three different heroes displayed on the screen at once? And some of the abilities are targeted?
I'd recommend inserting custom script when hooking up dialog items so you can define the variable one line (I've fuzzy results using DialogControlLastCreated()). Sample Code:
You can then treat the CommandButton05 as a normal dialog item (move it wherever you'd like, etc). You can find the layout path for any given UI frame in the UI Layout Module. Use Ctrl + Alt + F12 to navigate the UI in the UI debugger in game. Note that you must use a specific command button. 05 refers to the first button (column 1) of the 2nd row on the command card (the count begins at CommandButton00). This will act as whatever ability is in that slot for the selected unit.
Molesterr is suggesting complete emulation of the targeting mechanic with latency inducing triggers (mouse click events) and variables (Boolean of whether or not your dialog ability has been pressed)
The point is moot since you can now hook up command buttons as dialog items.
@Shortrizzle90: Go
Please expand on this. You want the ability buttons of three different heroes displayed on the screen at once? And some of the abilities are targeted?
I'd recommend inserting custom script when hooking up dialog items so you can define the variable one line (I've fuzzy results using DialogControlLastCreated()). Sample Code:
You can then treat the CommandButton05 as a normal dialog item (move it wherever you'd like, etc). You can find the layout path for any given UI frame in the UI Layout Module. Use Ctrl + Alt + F12 to navigate the UI in the UI debugger in game. Note that you must use a specific command button. 05 refers to the first button (column 1) of the 2nd row on the command card (the count begins at CommandButton00). This will act as whatever ability is in that slot for the selected unit.
@PirateArcade | I make games | Ask me things on Discord
Molesterr is suggesting complete emulation of the targeting mechanic with latency inducing triggers (mouse click events) and variables (Boolean of whether or not your dialog ability has been pressed)
The point is moot since you can now hook up command buttons as dialog items.
@PirateArcade | I make games | Ask me things on Discord