I want to hide experience bar, but not for all units, leaving the "hero style" display of attributes and weapons for them. Triggers or data edit allowed. Is it possible?
I want to display unit`s weapon and armor in "hero style" - icon+value, not just icon like it displayed in unit. If i just can hide exp bar for units and show it for heroes. i can give dummy veterancy to units, but exp bar spoils my idea.
Name: "UIContainer/ConsoleUIContainer/InfoPanel/InfoPaneHero/ExperienceBar"
Type: Progress Bar
Then you set a dialog item variable to last created dialog item and you'll be able to manipulate the experience bar as though it were a normal dialog item.
But experience bar is still showing on non heroic units. Where is mistake? It is showing even if i just create trigger: "Any unit is selected->hide ExpBar", without any conditions.
It might not be an element that you can hide. Try moving it offscreen instead. Something like move to bottom with a y offset of -200. If that doesn't work, I don't know.
@Dzuke911: Go
It might not be an element that you can hide. Try moving it offscreen instead. Something like move to bottom with a y offset of -200. If that doesn't work, I don't know.
Thx, now it works almost fine.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want to hide experience bar, but not for all units, leaving the "hero style" display of attributes and weapons for them. Triggers or data edit allowed. Is it possible?
@Dzuke911: Go
A unit will only have an experience bar if you give it a veterancy behavior, so I'm somewhat confused by this question.
I want to display unit`s weapon and armor in "hero style" - icon+value, not just icon like it displayed in unit. If i just can hide exp bar for units and show it for heroes. i can give dummy veterancy to units, but exp bar spoils my idea.
@Dzuke911: Go
Try adding the hidden flag to your dummy veterancy behavior.
Veterancy with hidden flag does not change anything in the unit`s interface.
@Dzuke911: Go
In that case, I believe doing what you want would be way more complicated than it would be worth.
You'd have to hookup the experience bar and then use triggers to hide it whenever a unit of this category was selected, and show it otherwise.
Ok, i can do that, but how to hookup experience bar?
@Dzuke911: Go
Trigger Action - Hookup Standard Dialog Item.
Name: "UIContainer/ConsoleUIContainer/InfoPanel/InfoPaneHero/ExperienceBar" Type: Progress Bar
Then you set a dialog item variable to last created dialog item and you'll be able to manipulate the experience bar as though it were a normal dialog item.
I created two triggers:
ExpBar is global dialog item variable.
But experience bar is still showing on non heroic units. Where is mistake? It is showing even if i just create trigger: "Any unit is selected->hide ExpBar", without any conditions.
@Dzuke911: Go
It might not be an element that you can hide. Try moving it offscreen instead. Something like move to bottom with a y offset of -200. If that doesn't work, I don't know.
Thx, now it works almost fine.