Only way to do that for a Build type ability would be using triggers to hookup the UI element and detect when it is given a right click and then change stuff using catalogs.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
On map initialization hook up GameUI/UIContainer/ConsoleUIContainer/CommandPanel/CommandButton0X (where X is the button number you want)and then save the last created dialog item as a variable.
Have a second trigger with a Dialog Item Is Used trigger for mouse entering the dialog item and a condition that makes sure the used dialog item is that from the variable and if the correct unit is selected (Selected Unit function). This trigger then primes a third trigger that uses a Mouse Clicked event.
You also need a trigger that disables the mouse clicked trigger when leaving the dialog item.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Sorry, i no understend how should i do Can you write me an instruction in the form of code? (full structure action) For example: Create Units With Defaunt Facing Actions: Unit - Create 1 Zergling for player 1 at spawnpoint using default facing (No Options) Or screanshote, map:
How to do as in the screenshot?
For Ability Type "Build", Right Click Cyclone button -> replace in Windows Mine button.
Send map pls
Sure it is a build and not a train type ability?
The unit probably has a smart cast ability that toggles a buff that requirements use to show the correct button.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Made by map Direct Strike for ability type "Warp Train"
I need for ability type "Build"
Only way to do that for a Build type ability would be using triggers to hookup the UI element and detect when it is given a right click and then change stuff using catalogs.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
In reply to DrSuperEvilGamepedia:
How to do it?
screenshot or map please
On map initialization hook up GameUI/UIContainer/ConsoleUIContainer/CommandPanel/CommandButton0X (where X is the button number you want)and then save the last created dialog item as a variable.
Have a second trigger with a Dialog Item Is Used trigger for mouse entering the dialog item and a condition that makes sure the used dialog item is that from the variable and if the correct unit is selected (Selected Unit function). This trigger then primes a third trigger that uses a Mouse Clicked event.
You also need a trigger that disables the mouse clicked trigger when leaving the dialog item.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
In reply to DrSuperEvilGamepedia:
What am doing wrong?
The Hookup Standard Dialog Item action automatically assumes the GameUI frame. You only need to full path if using Hookup Dialog Item.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
In reply to DrSuperEvilGamepedia:
Sorry, i no understend how should i do
Can you write me an instruction in the form of code?
(full structure action)
For example: Create Units With Defaunt Facing
Actions: Unit - Create 1 Zergling for player 1 at spawnpoint using default facing (No Options)
Or screanshote, map: