add pet button template, borrowed from blizzy code, without their ugly scripts

This commit is contained in:
Hendrik Leppkes
2008-02-21 13:56:20 +00:00
parent aa66d37a95
commit 9ed47da99d
2 changed files with 47 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@ ButtonStyle.lua
Bar.lua
ButtonBar.lua
Button.lua
PetButton.xml
## Modules ##
ActionBars.lua
+46
View File
@@ -0,0 +1,46 @@
<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">
<CheckButton name="Bartender4PetButtonTemplate" inherits="SecureFrameTemplate, ActionButtonTemplate" frameStrata="HIGH" virtual="true">
<Size>
<AbsDimension x="30" y="30"/>
</Size>
<Layers>
<Layer level="OVERLAY">
<Texture name="$parentAutoCastable" file="Interface\Buttons\UI-AutoCastableOverlay" hidden="true">
<Size>
<AbsDimension x="58" y="58"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Model name="$parentAutoCast" file="Interface\Buttons\UI-AutoCastButton.mdx" scale="1.2" hidden="true" setAllPoints="true">
<Scripts>
<OnLoad>
this:SetSequence(0);
this:SetSequenceTime(0, 0);
</OnLoad>
</Scripts>
</Model>
</Frames>
<NormalTexture name="$parentNormalTexture2" file="Interface\Buttons\UI-Quickslot2">
<Size>
<AbsDimension x="54" y="54"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</NormalTexture>
</CheckButton>
</Ui>