View Single Post
03-30-05, 11:45 PM   #1
Saati
A Murloc Raider
Join Date: Mar 2005
Posts: 4
Help with XML Button

I created a script, it works fine, but after my <Layers></Layers> tags, I tried to put in the following code:

Code:
<Frames>
	<Button name="MyScriptOptionsButton" hidden="false">
		<Size>
			<AbsDimension x="19" y="19" />
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT">
				<Offset>
					<AbsDimension x="1" y="1" />
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				this.tooltip = "Configure My Script";
			</OnLoad>
			<OnEnter>
				GameTooltip:SetOwner(this, "ANCHOR_LEFT");
				GameTooltip:SetText(this.tooltip);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Button>
</Frames>
And it crashes WoW. I have tried to figure out what's wrong with my code and I can't figure it out. If I take this bit of code out it works.

Any help would be much appreciated.
Thanks in advance,
-Saati
  Reply With Quote