I was using the HotS_UnitStatus/HeroUnitStatusFrameTemplatesomething custom status bar on some of my bosses. I didn't modify it and it worked out nicely until patch 3.0 went live. Now the name of the unis is missalligned (centered at the right end of the bar). I have tried duplicating the frame and fiddeled with the numbers for the labels positioning and such, but I couldn't get it to move. Anyone any ideas?
Check the style being applied to the element. The style controls alignment. It should look like
<Style val ="SomeStyleNameHere" />
OK, what do I change it to? I believe I have found what you are talking about:
<!-- Unit Name Templates --><Frametype="UnitStatusUnitName"name="UnitStatusUnitNameTemplate"><Frametype="Label"name="Label"><Anchorside="Top"relative="$parent"pos="Min"offset="0"/><Anchorside="Left"relative="$parent"pos="Min"offset="0"/><Anchorside="Bottom"relative="$parent"pos="Max"offset="0"/><Anchorside="Right"relative="$parent"pos="Max"offset="0"/><Styleval="HotS_UnitStatusNameLabel"/><RenderTypeval="HDR"/></Frame></Frame>
The odd thing is just, that it worked before patch 3.0.0 and I can't spot any difference.
edit
I found the style in the font styles, but is can't edit those and their values look actually correct. Is this some kind of anchor problem blizzard introduced into their own campaign?
I duplicated everything and made the neccessary adjustments. However, now my name is not showing up at all. I get the error:
UI: Frame [Label] not able to be hooked up in [UnitNameLabel].
Here is my code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Desc><!-- Wider Hero Health/Energy Bar --><Frametype="UnitStatusFrame"name="ARPHeroUnit"><Heightval="50"/><Widthval="450"/><OwnerRenderPriorityval="812"/><AllyRenderPriorityval="712"/><EnemyRenderPriorityval="612"/><Frametype="Frame"name="AttachPointFrame"><Anchorside="Top"relative="$parent"pos="Min"offset="0"/><Anchorside="Left"relative="$parent"pos="Min"offset="135"/><Heightval="0"/><Widthval="0"/></Frame><Frametype="UnitStatusUnitName"name="UnitNameLabel"template="Test/ARPName"><Anchorside="Top"relative="$parent"pos="Min"offset="0"/><Anchorside="Left"relative="$parent"pos="Min"offset="40"/><Anchorside="Right"relative="$parent"pos="Max"offset="0"/></Frame><Frametype="UnitStatusShieldedHealthBar"name="HealthBar"template="HotS_UnitStatus/UnitStatusSegmentedHealthBarTemplateWide"><Anchorside="Top"relative="$parent"pos="Min"offset="18"/><Anchorside="Left"relative="$parent"pos="Min"offset="39"/></Frame><Frametype="UnitStatusEnergyBar"name="EnergyBar"template="HotS_UnitStatus/UnitStatusSegmentedEnergyTemplateWide"><Anchorside="Top"relative="$parent/HealthBar"pos="Max"offset="-1"/><Anchorside="Left"relative="$parent/HealthBar"pos="Min"offset="0"/><CollapseLayoutval="true"/></Frame><Frametype="UnitStatusProgressBar"name="ProgressBar"template="HotS_UnitStatus/UnitStatusProgressBarTemplateWide"><Anchorside="Top"relative="$parent/EnergyBar"pos="Max"offset="-1"/><Anchorside="Left"relative="$parent/EnergyBar"pos="Min"offset="0"/><CollapseLayoutval="true"/></Frame><Frametype="UnitStatusDurationBar"name="DurationBar"template="HotS_UnitStatus/UnitStatusDurationBarTemplateWide"><Anchorside="Top"relative="$parent/ProgressBar"pos="Max"offset="-1"/><Anchorside="Left"relative="$parent/ProgressBar"pos="Min"offset="0"/><CollapseLayoutval="true"/></Frame></Frame><!-- Unit Name Templates --><Frametype="UnitStatusUnitName"name="ARPName"><Frametype="Label"name="Label"><Anchorside="Top"relative="$parent"pos="Min"offset="0"/><Anchorside="Left"relative="$parent"pos="Min"offset="0"/><Anchorside="Bottom"relative="$parent"pos="Max"offset="0"/><Anchorside="Right"relative="$parent"pos="Max"offset="0"/><Styleval="ARPheroname"/><RenderTypeval="HDR"/></Frame></Frame></Desc>
Change the left side anchor offset number in the label frame
<!--nameofplayer--><Frametype="UnitStatusUnitName"name="PlayerName"><Anchorside="Top"relative="$parent"pos="Min"offset="-20"/><Anchorside="Left"relative="$parent/AttachPointFrame"pos="Min"offset="-50"/><Heightval="60"/><Widthval="300"/><VisibleToAllyval="true"/><VisibleToOwnerval="true"/><VisibleToEnemyval="true"/><Frametype="Label"name="Label"><Anchorside="Top"relative="$parent"pos="Min"offset="0"/><Anchorside="Left"relative="$parent"pos="Min"offset="0"/>// Left anchor adjusts name position<Heightval="60"/><Widthval="300"/>
Change the left side anchor offset number in the label frame
<!--nameofplayer--><Frametype="UnitStatusUnitName"name="PlayerName"><Anchorside="Top"relative="$parent"pos="Min"offset="-20"/><Anchorside="Left"relative="$parent/AttachPointFrame"pos="Min"offset="-50"/><Heightval="60"/><Widthval="300"/><VisibleToAllyval="true"/><VisibleToOwnerval="true"/><VisibleToEnemyval="true"/><Frametype="Label"name="Label"><Anchorside="Top"relative="$parent"pos="Min"offset="0"/><Anchorside="Left"relative="$parent"pos="Min"offset="0"/>// Left anchor adjusts name position<Heightval="60"/><Widthval="300"/>
Sorry, that didn't fix the problem. The health bar is still offset to the right on Odins and the text where he wants to be. In addition I still have the problem of the label not showing if I duplicate a previous status bar.
Do you want the bar style to look exactly like the pic in your first post? I took a look at your map and got the name to move.
In part. I want it to be as not-bugged as it was before patch 3.0.0 which means that the text is alligned to the left of the bar (similar to your screenshot) and the health bar centered on top of the unit. Currently I can't get the name to move and the healthbar is where ever it likes, depending on unit type, e.g. works for most buildings, but not for the Odins. I interpret this as that they changed the anchor points or their algorithm on how to resolve these frame layouts without bothering if it would kill old content. The amount of interface bugs in the wol and hots campaign are also astounding. *end rant*
Can you copy/paste your code from the left-offset code here please so that I have a starting point? Thank you.
I don't know what status bar you're using or if there's some special requirement you're wanting for it that I can't see, but;
HotS_UnitStatus/HeroUnitStatusFrameTemplate
Looks identical and has the name centrally justified and works post 3.0. At least, it does for me!
I think the one in the picture is HotS_UnitStatus/HeroUnitStatusFrameTemplateWide. I have tried a couple other ones at random but with the same results. Either I haven't tried HotS_UnitStatus/HeroUnitStatusFrameTemplate yet or something else in my frames messes with that. Thanks for the tip, I'll try those.
Fucking shit doesn't work. What did Blizzard not break with their fucking patch? "HotS_UnitStatus/HeroUnitStatusFrameTemplate" is centered, but way too small. Also you can't edit those, so if you rename them and duplicate I have the old problems like before.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey Guys,
I was using the HotS_UnitStatus/HeroUnitStatusFrameTemplatesomething custom status bar on some of my bosses. I didn't modify it and it worked out nicely until patch 3.0 went live. Now the name of the unis is missalligned (centered at the right end of the bar). I have tried duplicating the frame and fiddeled with the numbers for the labels positioning and such, but I couldn't get it to move. Anyone any ideas?
Check the style being applied to the element. The style controls alignment. It should look like
<Style val ="SomeStyleNameHere" />
OK, what do I change it to? I believe I have found what you are talking about:
The odd thing is just, that it worked before patch 3.0.0 and I can't spot any difference.
I found the style in the font styles, but is can't edit those and their values look actually correct. Is this some kind of anchor problem blizzard introduced into their own campaign?
I duplicated everything and made the neccessary adjustments. However, now my name is not showing up at all. I get the error:
UI: Frame [Label] not able to be hooked up in [UnitNameLabel].
Here is my code:
Change the left side anchor offset number in the label frame
Sorry, that didn't fix the problem. The health bar is still offset to the right on Odins and the text where he wants to be. In addition I still have the problem of the label not showing if I duplicate a previous status bar.
Do you want the bar style to look exactly like the pic in your first post? I took a look at your map and got the name to move.
In part. I want it to be as not-bugged as it was before patch 3.0.0 which means that the text is alligned to the left of the bar (similar to your screenshot) and the health bar centered on top of the unit. Currently I can't get the name to move and the healthbar is where ever it likes, depending on unit type, e.g. works for most buildings, but not for the Odins. I interpret this as that they changed the anchor points or their algorithm on how to resolve these frame layouts without bothering if it would kill old content. The amount of interface bugs in the wol and hots campaign are also astounding. *end rant*
Can you copy/paste your code from the left-offset code here please so that I have a starting point? Thank you.
I don't know what status bar you're using or if there's some special requirement you're wanting for it that I can't see, but;
HotS_UnitStatus/HeroUnitStatusFrameTemplate
Looks identical and has the name centrally justified and works post 3.0. At least, it does for me!
I think the one in the picture is HotS_UnitStatus/HeroUnitStatusFrameTemplateWide. I have tried a couple other ones at random but with the same results. Either I haven't tried HotS_UnitStatus/HeroUnitStatusFrameTemplate yet or something else in my frames messes with that. Thanks for the tip, I'll try those.
Fucking shit doesn't work. What did Blizzard not break with their fucking patch? "HotS_UnitStatus/HeroUnitStatusFrameTemplate" is centered, but way too small. Also you can't edit those, so if you rename them and duplicate I have the old problems like before.