forked from Tojaso/Bufflehead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Templates.xml
57 lines (54 loc) · 4.58 KB
/
Templates.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<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">
<!-- Use a custom template for secure auras to handle buff cancel and tooltips -->
<Button name="BuffleheadAuraTemplate" inherits="SecureActionButtonTemplate, SecureHandlerBaseTemplate" virtual="true" framelevel="4">
<Size x="32" y="32"/>
<Attributes>
<Attribute name="type2" value="cancelaura"/>
</Attributes>
<Scripts>
<OnLoad>
Bufflehead:Button_OnLoad(self)
self:RegisterForClicks("RightButtonDown")
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_BOTTOM", 0, 0)
if (self:GetAttribute("index")) then
GameTooltip:SetUnitAura(SecureButton_GetUnit(self:GetParent()), self:GetID(), self:GetParent():GetAttribute("filter"))
elseif(self:GetAttribute("target-slot")) then
GameTooltip:SetInventoryItem("player", self:GetID())
end
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
</Button>
<!-- What a messy way to support multiple icon sizes (thanks to ElvUI team for figuring this one out!) -->
<Button name="BuffleheadAuraTemplate10" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="10" y="10"/> </Button>
<Button name="BuffleheadAuraTemplate12" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="12" y="12"/> </Button>
<Button name="BuffleheadAuraTemplate14" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="14" y="14"/> </Button>
<Button name="BuffleheadAuraTemplate16" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="16" y="16"/> </Button>
<Button name="BuffleheadAuraTemplate18" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="18" y="18"/> </Button>
<Button name="BuffleheadAuraTemplate20" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="20" y="20"/> </Button>
<Button name="BuffleheadAuraTemplate22" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="22" y="22"/> </Button>
<Button name="BuffleheadAuraTemplate24" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="24" y="24"/> </Button>
<Button name="BuffleheadAuraTemplate26" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="26" y="26"/> </Button>
<Button name="BuffleheadAuraTemplate28" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="28" y="28"/> </Button>
<Button name="BuffleheadAuraTemplate30" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="30" y="30"/> </Button>
<Button name="BuffleheadAuraTemplate32" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="32" y="32"/> </Button>
<Button name="BuffleheadAuraTemplate34" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="34" y="34"/> </Button>
<Button name="BuffleheadAuraTemplate36" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="36" y="36"/> </Button>
<Button name="BuffleheadAuraTemplate38" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="38" y="38"/> </Button>
<Button name="BuffleheadAuraTemplate40" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="40" y="40"/> </Button>
<Button name="BuffleheadAuraTemplate42" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="42" y="42"/> </Button>
<Button name="BuffleheadAuraTemplate44" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="44" y="44"/> </Button>
<Button name="BuffleheadAuraTemplate46" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="46" y="46"/> </Button>
<Button name="BuffleheadAuraTemplate48" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="48" y="48"/> </Button>
<Button name="BuffleheadAuraTemplate50" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="50" y="50"/> </Button>
<Button name="BuffleheadAuraTemplate52" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="52" y="52"/> </Button>
<Button name="BuffleheadAuraTemplate54" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="54" y="54"/> </Button>
<Button name="BuffleheadAuraTemplate56" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="56" y="56"/> </Button>
<Button name="BuffleheadAuraTemplate58" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="58" y="58"/> </Button>
<Button name="BuffleheadAuraTemplate60" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="60" y="60"/> </Button>
<Button name="BuffleheadAuraTemplate62" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="62" y="62"/> </Button>
<Button name="BuffleheadAuraTemplate64" inherits="BuffleheadAuraTemplate" virtual="true"> <Size x="64" y="64"/> </Button>
</Ui>