add pet button template, borrowed from blizzy code, without their ugly scripts
This commit is contained in:
@@ -20,6 +20,7 @@ ButtonStyle.lua
|
|||||||
Bar.lua
|
Bar.lua
|
||||||
ButtonBar.lua
|
ButtonBar.lua
|
||||||
Button.lua
|
Button.lua
|
||||||
|
PetButton.xml
|
||||||
|
|
||||||
## Modules ##
|
## Modules ##
|
||||||
ActionBars.lua
|
ActionBars.lua
|
||||||
|
|||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user