Quantcast
WoWInterface - View Single Post - XML StatusBar help
View Single Post
02-27-15, 05:39 PM   #1
Mugi
A Murloc Raider
Join Date: Feb 2015
Posts: 6
XML StatusBar help

Hiya, I can't seem to get a StatusBar to be created and displayed. Here is the current version of my status bar:

Code:
<StatusBar name="$parent_status" minValue="0" maxValue="100" defaultValue="30" orientation="HORIZONTAL">
	<Scripts>
		<OnLoad>print("start")</OnLoad>
	</Scripts>
	<Size x="150" y="30"/>
	<Anchors>
		<Anchor point="CENTER" relativePoint="CENTER" relativeTo=""/>
	</Anchors>
	<BarColor r="1.0" g="0" b="0"/>
</StatusBar>
Previously I have tried inheriting various StatusBar templates, explicitly setting a bar texture, and a few other different variations of this type of template, but the onload script never runs, and I can see the bar is not added to my frame when using the framestack.

Anyone know what I'm missing?
  Reply With Quote