@iMisu:
Thats pretty obvious.
My buttons used by triggers and I want to show/hide or enable/disable them anytime in the game.
Seems like I will have to make dialog...
Well, right now I'm using abilities for 'items' and I have a bag button on the first command card and the items, like a grenade, on the second command card. I have a trigger that hides disables the ability, grenade throw, when it reaches 0 charges. Both the bag and the item button go away if there are no items in the submenu.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want to hide buttons on specific unit (picked by trigger) and I want to able to hide even submenu buttons, is it even possible?
@Hookah604:
You dont have to put the button on the command card for the unit to use the ability.
@iMisu:
Thats pretty obvious.
My buttons used by triggers and I want to show/hide or enable/disable them anytime in the game.
Seems like I will have to make dialog...
There should be a trigger for that, disable ability for unit
Quote from Mienk:
yeah I tried that, but even if it would be working I dont think I could hide submenu button with it.
@Hookah604: Go
The button has a validator or requirement I think, you can use that if you don't find other way to do it.
For example, you can create a dummie behavior that deactivates the command button. Then put that behavior with triggers on the unit when you want.
@fr0d0b0ls0n:
hmm, thx, hope that will work out.
Well, right now I'm using abilities for 'items' and I have a bag button on the first command card and the items, like a grenade, on the second command card. I have a trigger that hides disables the ability, grenade throw, when it reaches 0 charges. Both the bag and the item button go away if there are no items in the submenu.