/
auraTemplate.xml
50 lines (49 loc) · 1.65 KB
/
auraTemplate.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
<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">
<Button name="idbu_BuffTemplate" inherits="SecureActionButtonTemplate" virtual="true">
<Size x="150" y="20"/>
<Attributes>
<Attribute name="type" value="cancelaura"/>
</Attributes>
<Scripts>
<OnLoad>
self:RegisterForClicks("RightButtonUp")
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT")
GameTooltip:SetFrameLevel(self:GetFrameLevel() + 2)
if self:GetAttribute("target-slot") == 16 or self:GetAttribute("target-slot") == 17 or self:GetAttribute("target-slot") == 18 then
GameTooltip:SetInventoryItem("player", self:GetID())
else
GameTooltip:SetUnitAura("player", self:GetID(), "HELPFUL")
end
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
</Button>
<Button name="idbu_DebuffTemplate" inherits="SecureActionButtonTemplate" virtual="true">
<Size x="150" y="20"/>
<Attributes>
<Attribute name="type" value="cancelaura"/>
</Attributes>
<Scripts>
<OnLoad>
self:RegisterForClicks("RightButtonUp")
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT")
GameTooltip:SetFrameLevel(self:GetFrameLevel() + 2)
if self:GetAttribute("target-slot") == 16 or self:GetAttribute("target-slot") == 17 or self:GetAttribute("target-slot") == 18 then
GameTooltip:SetInventoryItem("player", self:GetID())
else
GameTooltip:SetUnitAura("player", self:GetID(), "HARMFUL")
end
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
</Button>
</Ui>