Ive been looking for this answer the whole time, but cant override the current UI' hopefully somebody in the future might, So just keep this thread alive as long as possible :)
It's definitely possible, got it working (just barely) early today. I'll post my findings tomorrow. This is the second time I'll have shown up Master Wrath :D
It's not possible to add bars that automatically show the value via hidden magic. But the labels are possible as the unitpanel has these labels.
What you can do is to add bars in xml and then hook them to give them logic.
You can open "Temple Siege 2" in the editor in battle.net. I've coded pretty much that into its UI. It is using the original life, shield and energy labels, so these values update instantly when you select a unit and the bars are updated when the selection event fires. So, the bars will lag behind.
The limitation of the labels are that they are forcefully positioned below each other, you just can define where the shield label is (other labels are positioned below it) and if the unit has no shields where the wireframe is (other labels are positioned below it).
Thanks for doubting my XML Abilities. I've created a data driven unit health bar that can be manipulated as a dialog control and customized via layout file. This example is intended for having a single hero unit includes a green life bar with yellow shields. This could display the status of the selected units by setting gv_testUser to the selected unit via triggers. Adding an energy bar is relatively simple, but I haven't added as it's not needed for my current project. Play around with it for yourself.
It should be possible to add data life display numbers as well by splicing pieces out of the info panel with additional layout files, but I won't get into that.
Can this be useable through WoL? if HoTS then I pretty much doubt Demtrod uses WoL like mine. (PS im a great observant myself lol)
Edit: Nvm, Its pretty much useable every patch.
WoL or HoTS its the basics although he did create a great algorithm combination with the XML Part, Goodjob ^^
Not sure why but it always bothers me when someone posts someone else's work when they are fully capable of doing it themselves. It's nothing personal just something that always seems to bother me.
Some members do post other elses work for the sake of contribution, Im observant and I noticed that like a dozen times , I hope you wont be upset because I posted Grey's work in regards of the contribution he made, under my name in the assets section.
So specifically im giving grey the privilege to do so, (If he wants to post the map under his name)' Im just the guy whos trying to acquire and help at the same time.
Is it possible to create a Health and Energy bar for the currently selected unit, with layout files
As I've done here with triggers;
@Demtrod: Go
It's definitely possible but I have no idea how. Bumping to hopefully find the answer.
@PirateArcade | I make games | Ask me things on Discord
@Demtrod: Go
Ive been looking for this answer the whole time, but cant override the current UI' hopefully somebody in the future might, So just keep this thread alive as long as possible :)
I don't believe it's possible.
@MasterWrath: Go
Only through triggers and Heart of the Swarm or XML Experience right?
@Reul123: Go
It's definitely possible, got it working (just barely) early today. I'll post my findings tomorrow. This is the second time I'll have shown up Master Wrath :D
@PirateArcade | I make games | Ask me things on Discord
@greythepirate: Go
I doubt your good at XML, as Dota2 did theirs using XML either :) good heavens and thanks.
Wait I get it, Isnt it called. ugh' Hook up is it?
The answer is what you said... kind of.
It's not possible to add bars that automatically show the value via hidden magic. But the labels are possible as the unitpanel has these labels.
What you can do is to add bars in xml and then hook them to give them logic.
You can open "Temple Siege 2" in the editor in battle.net. I've coded pretty much that into its UI. It is using the original life, shield and energy labels, so these values update instantly when you select a unit and the bars are updated when the selection event fires. So, the bars will lag behind.
The limitation of the labels are that they are forcefully positioned below each other, you just can define where the shield label is (other labels are positioned below it) and if the unit has no shields where the wireframe is (other labels are positioned below it).
@Ahli634: Go
How do these labels behave when you select more than one unit? The info panel goes away of course when you select more than one. :)
@Reul123: Go
Thanks for doubting my XML Abilities. I've created a data driven unit health bar that can be manipulated as a dialog control and customized via layout file. This example is intended for having a single hero unit includes a green life bar with yellow shields. This could display the status of the selected units by setting gv_testUser to the selected unit via triggers. Adding an energy bar is relatively simple, but I haven't added as it's not needed for my current project. Play around with it for yourself.
XML Layout:
Trigger/Script:
It should be possible to add data life display numbers as well by splicing pieces out of the info panel with additional layout files, but I won't get into that.
@PirateArcade | I make games | Ask me things on Discord
@greythepirate: Go
Can this be useable through WoL? if HoTS then I pretty much doubt Demtrod uses WoL like mine. (PS im a great observant myself lol)
Edit: Nvm, Its pretty much useable every patch. WoL or HoTS its the basics although he did create a great algorithm combination with the XML Part, Goodjob ^^
I'm uploading your map in the Assets section.
@greythepirate: Go
This is amazing! Fantastic work, you just made my life ten times simpler.
@Reul123: Go
Not sure why but it always bothers me when someone posts someone else's work when they are fully capable of doing it themselves. It's nothing personal just something that always seems to bother me.
At least someone it posting it though....
@Reul123: Go
Thank Ahli, JademusSreg, and Arcane- I was able to piece this together from their examples and direction.
This are some remarkable things you can accomplish with SC2Layouts and a pretty big lack of tutorials and example assets.
@PirateArcade | I make games | Ask me things on Discord
@JacktheArcher: Go
Some members do post other elses work for the sake of contribution, Im observant and I noticed that like a dozen times , I hope you wont be upset because I posted Grey's work in regards of the contribution he made, under my name in the assets section.
So specifically im giving grey the privilege to do so, (If he wants to post the map under his name)' Im just the guy whos trying to acquire and help at the same time.
I'll be adding a robust and configurable Better Status bars library to my assets page when I have some time.
@PirateArcade | I make games | Ask me things on Discord