Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » XML StatusBar help

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off