vanilla-wow-addons – Rev 1
?pathlinks?
<Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\..\FrameXML\UI.xsd">
<Script file="YatlasButton.lua"/>
<Frame name="YatlasButtonFrame" parent="Minimap" enableMouse="true" hidden="false" frameStrata="LOW">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT">
<Offset>
<AbsDimension x="2" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<Button name="TheYatlasButton">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<NormalTexture file="Interface\AddOns\Yatlas\images\Button"/>
<PushedTexture file="Interface\AddOns\Yatlas\images\Button-Down"/>
<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
<Scripts>
<OnLoad>
this:RegisterForDrag("RightButton");
this.dragme = false;
</OnLoad>
<OnDragStart>
this.dragme = true;
this:LockHighlight()
</OnDragStart>
<OnDragStop>
this.dragme = false;
this:UnlockHighlight()
</OnDragStop>
<OnUpdate>
if(this.dragme == true) then
YatlasButton_BeingDragged();
end
</OnUpdate>
<OnClick>
YatlasButton_OnClick();
</OnClick>
<OnEnter>
YatlasButton_OnEnter();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnLoad>
this:RegisterEvent("VARIABLES_LOADED");
</OnLoad>
<OnEvent>
YatlasButton_OnEvent(event);
</OnEvent>
</Scripts>
</Frame>
</Ui>