-
Notifications
You must be signed in to change notification settings - Fork 87
/
BigDebuffs.xml
108 lines (108 loc) · 4.7 KB
/
BigDebuffs.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<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">
<Font name="BigDebuffsFont" font="Fonts\FRIZQT__.TTF" inherits="GameFontHighlightSmallOutline" virtual="true">
<FontHeight>
<AbsValue val="8"/>
</FontHeight>
</Font>
<Button name="BigDebuffsDebuffTemplate" inherits="CompactDebuffTemplate" virtual="true">
<Scripts>
<OnUpdate>
if ( GameTooltip:IsOwned(self) ) then
if not self.auraInstanceID and self.spellId then
GameTooltip:SetSpellByID(self.spellId);
elseif self.auraInstanceID then
if ( self.isBossBuff ) then
GameTooltip:SetUnitBuffByAuraInstanceID(self:GetParent().displayedUnit, self.auraInstanceID, self.filter);
else
GameTooltip:SetUnitDebuffByAuraInstanceID(self:GetParent().displayedUnit, self.auraInstanceID, self.filter);
end
end
end
</OnUpdate>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT", 0, 0);
if not self.auraInstanceID and self.spellId then
GameTooltip:SetSpellByID(self.spellId);
elseif self.auraInstanceID then
if ( self.isBossBuff ) then
GameTooltip:SetUnitBuffByAuraInstanceID(self:GetParent().displayedUnit, self.auraInstanceID, self.filter);
else
GameTooltip:SetUnitDebuffByAuraInstanceID(self:GetParent().displayedUnit, self.auraInstanceID, self.filter);
end
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Frame name="BigDebuffsUnitFrameTemplate" parent="UIParent" hidden="true" dontSavePosition="true" virtual="true">
<Size>
<AbsDimension x="36" y="36"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND" textureSubLevel="7">
<Texture name="$parentIcon" parentKey="icon"/>
</Layer>
<Layer level="ARTWORK" textureSubLevel="2">
<FontString name="$parentCount" inherits="NumberFontNormal" parentKey="Count" justifyH="RIGHT">
<Anchors>
<Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
</Anchors>
</FontString>
</Layer>
<Layer level="OVERLAY" textureSubLevel="1">
<FontString name="$parentName" parentKey="Name" inherits="BigDebuffsFont">
<Size>
<AbsDimension x="36" y="10"/>
</Size>
<FontHeight>
<AbsValue val="6"/>
</FontHeight>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Cooldown frameLevel="1" name="$parentCooldown" inherits="CooldownFrameTemplate" parentKey="cooldown" reverse="true" drawBling="false" drawEdge="false" hidden="true">
<Size x="36" y="36"/>
<Anchors>
<Anchor point="CENTER" x="0" y="-1"/>
</Anchors>
</Cooldown>
</Frames>
<Scripts>
<OnDragStart>
self:StartMoving()
</OnDragStart>
<OnDragStop>
self:StopMovingOrSizing()
BigDebuffs:SaveUnitFramePosition(self)
</OnDragStop>
<OnUpdate>
if ( self:IsMouseOver() and BigDebuffs.db.profile.unitFrames.tooltips ) then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT", 0, 0);
if self.interrupt then
GameTooltip:SetSpellByID(self.interrupt)
elseif self.buff then
GameTooltip:SetUnitBuff(self.unit, self:GetID());
else
GameTooltip:SetUnitDebuff(self.unit, self:GetID());
end
elseif GameTooltip:IsOwned(self) then
GameTooltip:Hide();
end
</OnUpdate>
</Scripts>
</Frame>
</Ui>