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

WoWInterface » Developer Discussions » Lua/XML Help » Help with XML Button


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