It seems there are still many people asking the way to create a customized HP Bar, so I did a simple sample map here.
I have some network issue these days, so I may won't have many time to replay your comments, but I will do when it is possible.
This sample map is mainly for Ahli6348, who asked me about the custom hearth bar.
In this map I added a customized HP bar for marines without any trigger. It's all UI Layout and actor things. You can find the HP bar layout in UI editor.
When you finished your custom hearth bar in UI editor, you need to go to the actor editor and and your custom hearth bar to the unit's 'Custom Unit Status Frame' field, and check its 'Suppress Default Status Bar' flag.
Is it possible to have multiple custom bars on 1 unit?
say Energy,Health,Shield, and is it possible to create a custom bar for attributes?
say to keep track of how high the attribute is for gas or hunger systems?
Is it possible to have multiple custom bars on 1 unit?
say Energy,Health,Shield, and is it possible to create a custom bar for attributes?
say to keep track of how high the attribute is for gas or hunger systems?
Of course you can have multiple custom bars.Vitals like energy & health doesn't require triggers, but if you want to add a custom bar which would track other data like attributes, you will need to use trigger to set its value.
Well i guess all those near minimap buttons, moved clock, and at right corner buttons are part of HotS game UI and it really confused me too, thought to find the UI of those buttons in map file :) silly me.
One important thing to know is that each custom bar is shown ONLY when the original replaced bar is visible.
So for example if you customize the behavior duration bar you must be sure it's displayed on the unit at the moment or it won't be visible. You can force the visibility by trigger or the bar will probably be visible only when the user presses the ALT key.
So i have a bar showing up when its frame type is
StatusHealthBar
but i want to create my own so i name is something else like StatusExhaustionBar
so how would i set the current, minimum, and maximum value
I tried doing it like a regular dialog progress bar but it does not like it.
Also how did you find the frame named StatusHealthBar?
So i have my status bars almost working right but how do you make a statusbar use the energy and shield values.
for health it seems its just StatusHealthBar
How did you find this type?
I tried StatusEnergyBar and StatusShieldBar but they dont seem to work
Okay so after a long time of trial and error and then finally figuring out that to find the names of status bars you must open up the beta editor for HOTS and press ALT+CTRL+F12.
The names are
UnitStatusBar - for a generic one
UnitStatusHealthBar - for the health bar
UnitStatusEnergyBar - for the energy bar
UnitStatusShieldedHealthBar - for a combination of the health and shield bar
Here is a map with the following working hope it can be of some help for some one
edit:
I have no idea about the whole UI stuff, so what confuses me the most is how do I find out what properties the different Frame Types have? For the Health Bar you changed things like AllyColor, ReductionColor, IncreaseDuration, DecreaseDuration and so on, and it's not hard to find out what they do, but I want to know if there are more of these properties and how I can find out how the different Frame Types are set up.
Solved - I'm using the HotS ingame UI editor for that now (Thanks to Ahli), it's a bit clunky though so if anyone has a better solution tell me!
Okay so after a long time of trial and error and then finally figuring out that to find the names of status bars you must open up the beta editor for HOTS and press ALT+CTRL+F12.
So, where in the editor do you press ALT+CTRL+F12? In the UI editor and any of them?
@composure19d: Go
Sadly it does not seem like that there is one.
Would be awesome if they make a separate shield bar (just like life, just for shields) and add the possibility to make the shielded health bar to integrate the lost shield amount into the bar's percentage. Then you would have an awesome hero bar for an Archon hero.
There is a strange field with "addToTotal" or something like that, but I wasn't able to make much sense out of it. Maybe that one can do the latter and it is just bugged right now. At least it caused the shieldbar to extend across the whole screen with low shield values.
It seems there are still many people asking the way to create a customized HP Bar, so I did a simple sample map here.
I have some network issue these days, so I may won't have many time to replay your comments, but I will do when it is possible.
This sample map is mainly for Ahli6348, who asked me about the custom hearth bar.
In this map I added a customized HP bar for marines without any trigger. It's all UI Layout and actor things. You can find the HP bar layout in UI editor.
When you finished your custom hearth bar in UI editor, you need to go to the actor editor and and your custom hearth bar to the unit's 'Custom Unit Status Frame' field, and check its 'Suppress Default Status Bar' flag.
Looks nice!
This makes me want to save up and get HoTS...
Awesome, thanks. :D
You can do it in WoL, too.
Is it possible to have multiple custom bars on 1 unit?
say Energy,Health,Shield, and is it possible to create a custom bar for attributes?
say to keep track of how high the attribute is for gas or hunger systems?
Of course you can have multiple custom bars.Vitals like energy & health doesn't require triggers, but if you want to add a custom bar which would track other data like attributes, you will need to use trigger to set its value.
It's 1.5 things, you don't need hots.
@Doubleclick123: Go
Well i guess all those near minimap buttons, moved clock, and at right corner buttons are part of HotS game UI and it really confused me too, thought to find the UI of those buttons in map file :) silly me.
One important thing to know is that each custom bar is shown ONLY when the original replaced bar is visible. So for example if you customize the behavior duration bar you must be sure it's displayed on the unit at the moment or it won't be visible. You can force the visibility by trigger or the bar will probably be visible only when the user presses the ALT key.
'Suppress Default Status Bar'
So i have a bar showing up when its frame type is
StatusHealthBar
but i want to create my own so i name is something else like StatusExhaustionBar
so how would i set the current, minimum, and maximum value
I tried doing it like a regular dialog progress bar but it does not like it.
Also how did you find the frame named StatusHealthBar?
Looks great! Is there any way we could attach the unit's name on top of the bar too? And maybe the unit's icon if possible.
So i have my status bars almost working right but how do you make a statusbar use the energy and shield values.
for health it seems its just StatusHealthBar
How did you find this type?
I tried StatusEnergyBar and StatusShieldBar but they dont seem to work
Okay so after a long time of trial and error and then finally figuring out that to find the names of status bars you must open up the beta editor for HOTS and press ALT+CTRL+F12.
The names are
UnitStatusBar - for a generic one
UnitStatusHealthBar - for the health bar
UnitStatusEnergyBar - for the energy bar
UnitStatusShieldedHealthBar - for a combination of the health and shield bar
Here is a map with the following working hope it can be of some help for some one
Oh wow, how did I not see this thread yet?
Amazing!
edit:
I have no idea about the whole UI stuff, so what confuses me the most is how do I find out what properties the different Frame Types have? For the Health Bar you changed things like AllyColor, ReductionColor, IncreaseDuration, DecreaseDuration and so on, and it's not hard to find out what they do, but I want to know if there are more of these properties and how I can find out how the different Frame Types are set up.
Solved - I'm using the HotS ingame UI editor for that now (Thanks to Ahli), it's a bit clunky though so if anyone has a better solution tell me!
did anyone ever find the unit shield status bar, not the shielded health, but the shield bar. al though shielded health is interesting.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
So, where in the editor do you press ALT+CTRL+F12? In the UI editor and any of them?
Edit: Nevermind, I figured it out.
I tinkered with everything available a few weeks ago... Not everything is working... maybe you can get more things to work...
Enjoy:
https://www.dropbox.com/s/dgesg5usxnl33u9/StatusBarTests by Ahli.SC2Map?dl=0
Is there a bar for just the shields? I got everything working but I just cannot find out a shield one, only a health/shield combo. Any help?
@composure19d: Go Sadly it does not seem like that there is one.
Would be awesome if they make a separate shield bar (just like life, just for shields) and add the possibility to make the shielded health bar to integrate the lost shield amount into the bar's percentage. Then you would have an awesome hero bar for an Archon hero.
There is a strange field with "addToTotal" or something like that, but I wasn't able to make much sense out of it. Maybe that one can do the latter and it is just bugged right now. At least it caused the shieldbar to extend across the whole screen with low shield values.
Nothing happens when I press CTRL+ALT+F12?
EDIT: It's now under the UI module.
EDIT2: Is there still no way to display a shield bar?