Hello.
I'm trying to hide (by moving away from screen) LifeLabel and change EnergyLabel's relative anchor. Nothing works. I have a bunch of other properties in file, InfoPanel frame works great (i successfully modified other children nodes). Trying to change random values and see what happens for a few hours. What did i wrong?
From your code snippit all I can see is that you are creating a frame with the name "LifeLabel" as a child of Infopanel. Because the existing frame with the name "LifeLabel" is a child of Infopanel/UnitPanel and not a child of Infopanel.
Oh, what a bad typo in my post... it is inside UnitPanel of course. Here is the real copy-pasted part of markup with additional comment
<Frametype="InfoPanel"name="InfoPanel"><Anchorside="Top"relative="$parent"pos="Max"offset="-280"/><Anchorside="Left"relative="$parent"pos="Max"offset="-550"/><Anchorside="Right"relative="$parent"pos="Max"offset="-100"/><Anchorside="Bottom"relative="$parent"pos="Max"offset="0"/><Frametype="Frame"name="UnitPanel"><Anchorside="Top"relative="$parent"pos="Min"offset="0"/><Anchorside="Left"relative="$parent"pos="Min"offset="0"/><Anchorside="Right"relative="$parent"pos="Max"offset="-70"/><Anchorside="Bottom"relative="$this"pos="Max"offset="0"/><Frametype="BehaviorBar"name="BehaviorBar"><Anchorside="Top"relative="$parent"pos="Min"offset="45"/><Anchorside="Left"relative="$parent"pos="Max"offset="-280"/><Anchorside="Right"relative="$this"pos="Max"offset="0"/></Frame><Frametype="UnitWireframe"name="UnitWireframe"><!-- <Visible val="false"/> hides wireframe properly when not commented --></Frame><Frametype="Label"name="LifeLabel"><Anchorside="Top"relative="$parent"pos="Max"offset="500"/></Frame><Frametype="Label"name="EnergyLabel"><Anchorside="Top"relative="$parent/UnitWireframe"pos="Max"offset="0"/></Frame></Frame></Frame>
Hello. I'm trying to hide (by moving away from screen) LifeLabel and change EnergyLabel's relative anchor. Nothing works. I have a bunch of other properties in file, InfoPanel frame works great (i successfully modified other children nodes). Trying to change random values and see what happens for a few hours. What did i wrong?
//
Edit: this code has a typo, see post #3here is a screen of this setup in action. Unit have energy, but label overflowed and thus is not visible. It should be on LifeLabel's place.
@Frizi: Go
From your code snippit all I can see is that you are creating a frame with the name "LifeLabel" as a child of Infopanel. Because the existing frame with the name "LifeLabel" is a child of Infopanel/UnitPanel and not a child of Infopanel.
Oh, what a bad typo in my post... it is inside UnitPanel of course. Here is the real copy-pasted part of markup with additional comment
This is why i still can't see the solution.
Still can't just hide or move any label, but i did what i wanted by applying custom label style with 0 font size. It works.
CustomStyle.SC2Style
CustomLayout.SC2Layout