-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFearWardHelper.xml
More file actions
120 lines (117 loc) · 3.75 KB
/
Copy pathFearWardHelper.xml
File metadata and controls
120 lines (117 loc) · 3.75 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
<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">
<!-- Cooldown tracker frame. Lists every priest in the group with their Fear
Ward cooldown state. Also the addon's "engine": it owns the always-on
events and the OnUpdate driver. Moveable (drag anywhere); position/scale/
lock persist in FearWardHelperDB.cdFrame. Rows are built in Lua. The
backdrop is applied in OnLoad (XML <Backdrop> color handling is fiddly on
1.12, so we SetBackdrop in code). -->
<Frame name="FearWardHelper_CD" parent="UIParent" movable="true" enableMouse="true">
<Size>
<AbsDimension x="150" y="60" />
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-220" y="120" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentHeader" inherits="GameFontNormalSmall" text="Fear Ward">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-5" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<!-- Bottom-right width grip, only interactive while unlocked. Resizes
width only (StartSizing "RIGHT"); height auto-fits the rows. Bundled
grip glyph, since this client lacks Blizzard's chat SizeGrabber.
Anchored at the corner (not RIGHT-centre) so it clears the rows; its
frame level is raised in Lua so the clickable watch rows don't eat
the grip's mouse. -->
<Button name="$parentResizeGrip" hidden="true">
<Size>
<AbsDimension x="16" y="16" />
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" />
</Anchors>
<Scripts>
<OnMouseDown>
FearWardHelper_StartSizing()
</OnMouseDown>
<OnMouseUp>
FearWardHelper_StopSizing()
</OnMouseUp>
</Scripts>
<NormalTexture file="Interface\AddOns\FearWardHelper\textures\ResizeGrip" />
<HighlightTexture file="Interface\AddOns\FearWardHelper\textures\ResizeGrip" alphaMode="ADD" />
</Button>
</Frames>
<Scripts>
<OnLoad>
FearWardHelper_OnLoad()
</OnLoad>
<OnEvent>
FearWardHelper_OnEvent()
</OnEvent>
<OnDragStart>
FearWardHelper_OnDragStart()
</OnDragStart>
<OnDragStop>
FearWardHelper_OnDragStop()
</OnDragStop>
</Scripts>
</Frame>
<!-- Notification area. A floating list of transient messages (Fear Ward casts +
tracked-target losses) that fade out after a configurable delay. Moveable +
anchorable like the trackers but with NO resize grip: its "size" is the
notification font size (FearWardHelperDB.notifyFontSize). Shown for its whole
life; while locked + empty it is fully transparent (applyBackdropAlpha), with
a faint grab box + the $parentHandle label only while unlocked, so it can be
positioned at any time. Notification lines are font strings built in Lua. -->
<Frame name="FearWardHelper_Notify" parent="UIParent" movable="true" enableMouse="true">
<Size>
<AbsDimension x="240" y="40" />
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="150" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentHandle" inherits="GameFontNormalSmall" text="Fear Ward notifications">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-4" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
FearWardHelper_Notify_OnLoad()
</OnLoad>
<OnDragStart>
FearWardHelper_OnDragStart()
</OnDragStart>
<OnDragStop>
FearWardHelper_OnDragStop()
</OnDragStop>
</Scripts>
</Frame>
</Ui>