-
Notifications
You must be signed in to change notification settings - Fork 0
/
BigDebuffs.xml
52 lines (52 loc) · 1.62 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
<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="BigDebuffsUnitFrameTemplate" inherits="ActionButtonTemplate" parent="UIParent" hidden="true" dontSavePosition="true" virtual="true">
<Size>
<AbsDimension x="36" y="36"/>
</Size>
<Anchors>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Anchors>
<NormalTexture name="$parentNormalTexture" parentKey="NormalTexture">
<Anchors>
<Anchor point="TOPLEFT" x="-15" y="15"/>
<Anchor point="BOTTOMRIGHT" x="15" y="-15"/>
</Anchors>
</NormalTexture>
<HighlightTexture/>
<PushedTexture/>
<Frames>
<Cooldown name="$parentCooldown" inherits="CooldownFrameTemplate" parentKey="cooldown" reverse="true" drawBling="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>
</Button>
</Ui>