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="Bagnon.lua"/>
<Button name="BagnonKeyButton" virtual="true">
<Size x="18" y="39"/>
<Scripts>
<OnLoad>
this:SetID(-2);
this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
</OnLoad>
<OnEnter>
BagnonBag_OnEnter();
</OnEnter>
<OnLeave>
BagnonBag_OnLeave();
</OnLeave>
<OnClick>
BagnonBag_OnClick();
</OnClick>
<OnReceiveDrag>
BagnonBag_OnClick();
</OnReceiveDrag>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-Button-KeyRing">
<TexCoords left="0" right="0.5625" top="0" bottom="0.609375"/>
</NormalTexture>
<HighlightTexture file="Interface\Buttons\UI-Button-KeyRing-Highlight" alphaMode="ADD">
<TexCoords left="0" right="0.5625" top="0" bottom="0.609375"/>
</HighlightTexture>
<PushedTexture file="Interface\Buttons\UI-Button-KeyRing-Down">
<TexCoords left="0" right="0.5625" top="0" bottom="0.609375"/>
</PushedTexture>
</Button>
<Frame name="BagnonBagSlots" inherits="BagnonBagSlotsTemplate" virtual="true">
<Size x="188" y="42"/>
<Frames>
<Button name="$parent1" inherits="BagnonBagTemplate" id="1">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset x="8" y="4"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parent2" inherits="BagnonBagTemplate" id="2">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent1" relativePoint="RIGHT">
<Offset x="2" y="0"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parent3" inherits="BagnonBagTemplate" id="3">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent2" relativePoint="RIGHT">
<Offset x="2" y="0"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parent4" inherits="BagnonBagTemplate" id="4">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent3" relativePoint="RIGHT">
<Offset x="2" y="0"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parentKey" inherits="BagnonKeyButton" id="-2">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent4" relativePoint="RIGHT">
<Offset x="2" y="0"/>
</Anchor>
</Anchors>
</Button>
</Frames>
</Frame>
<Button name="Bagnon" inherits="BagnonFrameTemplate">
<Anchors>
<Anchor point="RIGHT">
<Offset x="-4" y="-100"/>
</Anchor>
</Anchors>
<Frames>
<Frame name="$parentBags" inherits="BagnonBagSlots" hidden="true">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset x="0" y="24"/>
</Anchor>
</Anchors>
</Frame>
<Button name="$parentShowBags" text="BAGNON_SHOWBAGS">
<Size x="72" y="32"/>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset x="10" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
Bagnon_ToggleBags();
</OnClick>
</Scripts>
<ButtonText setAllPoints="true"/>
<NormalFont font="GameFontNormal" justifyH="LEFT"/>
<HighlightFont font="GameFontHighlight" justifyH="LEFT"/>
</Button>
</Frames>
<Scripts>
<OnLoad>
Bagnon_OnLoad();
</OnLoad>
<OnEvent>
Bagnon_OnEvent(event);
</OnEvent>
<OnShow>
Bagnon_OnShow();
</OnShow>
<OnHide>
BagnonFrame_OnHide();
Bagnon_OnHide();
</OnHide>
</Scripts>
</Button>
</Ui>