I am designing a mod with a faction meter that I want to fill from right to left on the screen. I haven't done any of the scripting yet, but I need to get a few answers since this is pretty much my first XML project. I've set up the following code to what my intuition says it should be, but I can't find good documentation anywhere. No scripts are implemented in this XML yet.
- Is this set right to fill from right to left (if it is possible)
- Can you have textures in BACKGROUND and OVERLAY in a statusbar. (OVERLAY textures start hidden and show or hide based on scripts that I have not yet implemented.)
- How do I make the bar color change with the faction level?
- Are there any other glaring coding problems/noob errors that I am overlooking.
- Is this XML even near complete?
Code:
<StatusBar name="KUF_FactionMeter" minValue="1.0" maxValue="0.0" defaultValue="1.0">
<Size>
<AbsDimension x="119" y="28"/>
</Size>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="114" y="-67"/>
</Offset>
</Anchor>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parent_Back" file="Interface\AddOns\KingdomUF\KUFImage\KUF-PFactionback.tga">
<Size>
<AbsDimension x="148" y="32"/>
</Size>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-27" y="2"/>
</Offset>
</Anchor>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Textures>
<Texture name="$parent_Hs" file="Interface\AddOns\KingdomUF\KUFImage\KUF-Hs.tga" hidden = "true">
<Size>
<AbsDimension x="44" y="31"/>
</Size>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-27" y="2"/>
</Offset>
</Anchor>
</Texture>
<Texture name="$parent_Ha" file="Interface\AddOns\KingdomUF\KUFImage\KUF-Ha.tga" hidden = "true">
<Size>
<AbsDimension x="47" y="31"/>
</Size>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-27" y="2"/>
</Offset>
</Anchor>
</Texture>
<Texture name="$parent_U" file="Interface\AddOns\KingdomUF\KUFImage\KUF-U.tga" hidden = "true">
<Size>
<AbsDimension x="29" y="31"/>
</Size>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-27" y="2"/>
</Offset>
</Anchor>
</Texture>
<Texture name="$parent_N" file="Interface\AddOns\KingdomUF\KUFImage\KUF-N.tga" hidden = "true">
<Size>
<AbsDimension x="34" y="39"/>
</Size>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-27" y="2"/>
</Offset>
</Anchor>
</Texture>
<Texture name="$parent_Fr" file="Interface\AddOns\KingdomUF\KUFImage\KUF-Fr.tga" hidden = "true">
<Size>
<AbsDimension x="46" y="33"/>
</Size>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-27" y="2"/>
</Offset>
</Anchor>
</Texture>
<Texture name="$parent_Hn" file="Interface\AddOns\KingdomUF\KUFImage\KUF-Hn.tga" hidden = "true">
<Size>
<AbsDimension x="46" y="34"/>
</Size>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-27" y="2"/>
</Offset>
</Anchor>
</Texture>
<Texture name="$parent_Rv" file="Interface\AddOns\KingdomUF\KUFImage\KUF-Rv.tga" hidden = "true">
<Size>
<AbsDimension x="46" y="37"/>
</Size>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-27" y="2"/>
</Offset>
</Anchor>
</Texture>
<Texture name="$parent_Ex" file="Interface\AddOns\KingdomUF\KUFImage\KUF-Ex.tga" hidden = "true">
<Size>
<AbsDimension x="43" y="31"/>
</Size>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-27" y="2"/>
</Offset>
</Anchor>
</Texture>
</Textures>
</Layer>
</Layers>
<BarTexture file="Interface\AddOns\KingdomUF\KUFImage\KUF-PFactionfill.tga"/>
<BarColor r="0" g="1.0" b="0"/>
</StatusBar>
Edit: fixed code paste in