Mercurial > wow > buffalo2
comparison BuffFrame/BuffFrame.xml @ 47:1a322b92dbfa
file cleanup
author | Nenue |
---|---|
date | Thu, 28 Apr 2016 05:54:21 -0400 |
parents | BuffFrame.xml@ed642234f017 |
children | 9837069e366a |
comparison
equal
deleted
inserted
replaced
46:aa693607b813 | 47:1a322b92dbfa |
---|---|
1 <Ui> | |
2 <!-- | |
3 Veneer | |
4 BuffFrame module | |
5 --> | |
6 | |
7 | |
8 <!-- Buff-button underlay --> | |
9 <Frame name="VeneerDecorTemplate" virtual="true" enableMouse="true" movable="true" frameStrata="BACKGROUND" hidden="true"> | |
10 <Size x="30" y="30" /> | |
11 <Layers> | |
12 <Layer level="BACKGROUND"> | |
13 <Texture name="$parentButtonArea" setAllPoints="true" parentKey="background" alphaMode="BLEND"> | |
14 <Color r="1" g="1" b="1" a="1" /> | |
15 </Texture> | |
16 <Texture name="$parentButtonBackdrop" parentKey="backgroundFill" alphaMode="BLEND"> | |
17 <Anchors> | |
18 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="1" y="1" relativeKey="$parent.background" /> | |
19 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-1" y="-1" relativeKey="$parent.background" /> | |
20 </Anchors> | |
21 <Color r="0" g="0" b="0" a="1" /> | |
22 </Texture> | |
23 </Layer> | |
24 </Layers> | |
25 </Frame> | |
26 | |
27 <!-- Buff button overlay, and positioning anchor --> | |
28 <Frame name="VeneerGuideTemplate" virtual="true" movable="true" frameStrata="LOW"> | |
29 <Scripts> | |
30 <OnShow> | |
31 self.mouseover = self:IsMouseOver() | |
32 </OnShow> | |
33 <OnUpdate> | |
34 if self:IsMouseOver() and not self.contains then | |
35 self.caster:Show() | |
36 else | |
37 self.caster:Hide() | |
38 end | |
39 </OnUpdate> | |
40 </Scripts> | |
41 <Layers> | |
42 <Layer level="ARTWORK"> | |
43 <Texture name="$parentLegend" parentKey="legend" parentArray="config" setAllPoints="true" hidden="true"> | |
44 <Color a="0.5" r="0" g="1" b="0" /> | |
45 </Texture> | |
46 <Texture name="$parentCountLegend" parentKey="count" parentArray="config" hidden="true"> | |
47 <Color a="0.75" r="1" g=".5" b="0" /> | |
48 </Texture> | |
49 | |
50 | |
51 <Texture name="$parentIconArea" parentKey="icon" alphaMode="ADD"> | |
52 <Color r="0" g="0" b="0" a="0" /> | |
53 </Texture> | |
54 <Texture name="$parentTextLegend" parentKey="duration" parentArray="config" hidden="true" alphaMode="BLEND"> | |
55 <Color a="0.25" r="1" g="1" b="1" /> | |
56 </Texture> | |
57 </Layer> | |
58 <Layer level="OVERLAY"> | |
59 <FontString inherits="VeneerFontNormal" parentArray="config" name="$parentID" parentKey="idText" hidden="true" outline="NORMAL"> | |
60 <Anchors> | |
61 <Anchor point="CENTER" /> | |
62 </Anchors> | |
63 </FontString> | |
64 <FontString inherits="VeneerFontNormal" parentKey="caster" outline="NORMAL"> | |
65 <Anchors> | |
66 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.icon" /> | |
67 </Anchors> | |
68 </FontString> | |
69 </Layer> | |
70 <Layer level="HIGHLIGHT"> | |
71 | |
72 </Layer> | |
73 </Layers> | |
74 </Frame> | |
75 | |
76 | |
77 <!-- Anchor frame orientation-setting widget; click handler copies frame anchors over to buff buttons --> | |
78 <Button name="VeneerAnchorButton" virtual="true" parentArray="anchorButton" hidden="true"> | |
79 <Scripts> | |
80 <OnClick> | |
81 self:GetParent():SetChildAnchors(self) | |
82 </OnClick> | |
83 </Scripts> | |
84 <Size x="15" y="15" /> | |
85 <Layers> | |
86 <Layer level="BACKGROUND"> | |
87 <Texture setAllPoints="true"> | |
88 <Color r="0" g="0" b="0" a="1" /> | |
89 </Texture> | |
90 </Layer> | |
91 <Layer level="OVERLAY"> | |
92 <Texture> | |
93 <Color r="0" g="1" b="0.5" a="1" /> | |
94 <Anchors> | |
95 <Anchor point="BOTTOMLEFT" x="1" y="1" /> | |
96 <Anchor point="TOPRIGHT" x="-1" y="-1" /> | |
97 </Anchors> | |
98 </Texture> | |
99 </Layer> | |
100 </Layers> | |
101 </Button> | |
102 | |
103 <Frame name="VeneerAnchorTemplate" virtual="true" enableMouse="false" movable="true" sizable="true" clampedToScreen="true"> | |
104 <Layers> | |
105 <Layer level="BACKGROUND"> | |
106 <Texture name="$parentBackground" setAllPoints="true" parentArray="config" hidden="true"> | |
107 <Color r="0" g="0.2" b="1" a="0.2" /> | |
108 </Texture> | |
109 <FontString name="$parentHeading" inherits="VeneerFontHighlight" parentArray="config" parentKey="heading" hidden="true"> | |
110 <Anchors> | |
111 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" /> | |
112 </Anchors> | |
113 </FontString> | |
114 <FontString name="$parentDebug" inherits="VeneerFontNormal" parentArray="debug" parentKey="debug"> | |
115 <Anchors> | |
116 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" /> | |
117 </Anchors> | |
118 </FontString> | |
119 </Layer> | |
120 <Layer level="OVERLAY"> | |
121 | |
122 <Texture name="$parentCutJoint" parentKey="alignedJoint" hidden="true"> | |
123 <Size x="4" y="4" /> | |
124 <Color r="1" g="0" b="0" a="1" /> | |
125 </Texture> | |
126 <Texture name="$parentCutY" parentKey="cuttingJointX" hidden="true"> | |
127 <Size x="4" y="48" /> | |
128 <Color r="1" g="1" b="0" a="1" /> | |
129 </Texture> | |
130 <Texture name="$parentCutX" parentKey="cuttingJointY" hidden="true"> | |
131 <Size x="48" y="4" /> | |
132 <Color r="1" g="1" b="0" a="1" /> | |
133 </Texture> | |
134 <Texture name="$parentPoppedY" parentKey="poppingJointX" hidden="true"> | |
135 <Size x="4" y="48" /> | |
136 <Color r="0" g="1" b="1" a="1" /> | |
137 </Texture> | |
138 <Texture name="$parentPoppedX" parentKey="poppingJointY" hidden="true"> | |
139 <Size x="48" y="4" /> | |
140 <Color r="0" g="1" b="1" a="1" /> | |
141 </Texture> | |
142 <Texture name="$parentChildSpace" parentKey="childSpace" hidden="true"> | |
143 <Color r="0" g=".5" b="1" a="0.5" /> | |
144 </Texture> | |
145 </Layer> | |
146 <Layer level="HIGHLIGHT"> | |
147 <Texture name="$parentHighlight" setAllPoints="true" parentArray="config" hidden="true"> | |
148 <Color r="1" g="1" b="0" a="0.2" /> | |
149 </Texture> | |
150 </Layer> | |
151 </Layers> | |
152 <Frames> | |
153 <Button name="$parentAnchorUL" inherits="VeneerAnchorButton"> | |
154 <Anchors> | |
155 <Anchor point="TOPLEFT" /> | |
156 </Anchors> | |
157 </Button> | |
158 <Button name="$parentAnchorUR" inherits="VeneerAnchorButton"> | |
159 <Anchors> | |
160 <Anchor point="TOPRIGHT" /> | |
161 </Anchors> | |
162 </Button> | |
163 <Button name="$parentAnchorUR" inherits="VeneerAnchorButton"> | |
164 <Anchors> | |
165 <Anchor point="BOTTOMRIGHT" /> | |
166 </Anchors> | |
167 </Button> | |
168 <Button name="$parentAnchorUR" inherits="VeneerAnchorButton"> | |
169 <Anchors> | |
170 <Anchor point="BOTTOMLEFT" /> | |
171 </Anchors> | |
172 </Button> | |
173 </Frames> | |
174 </Frame> | |
175 | |
176 <Frame name="VeneerConsolidatedBuffsAnchor" inherits="VeneerAnchorTemplate" virtual="true"> | |
177 <Layers> | |
178 <Layer level="OVERLAY"> | |
179 <!-- need to make our own number label since the original is buried under secure layer --> | |
180 <FontString inherits="VeneerFontNormal" name="$parentLabel" parentKey="label"> | |
181 <Anchors> | |
182 <Anchor point="TOP" relativePoint="BOTTOM" x="0" y="-2" /> | |
183 </Anchors> | |
184 </FontString> | |
185 <!-- | |
186 <Texture name="$parentBackdrop" parentKey="background" setAllPoints="true" alphaMode="BLEND"> | |
187 <Color r="0" g="0" b="0" a="1" /> | |
188 <Anchors> | |
189 <Anchor point="BOTTOMLEFT" x="1" y="1" /> | |
190 <Anchor point="TOPRIGHT" x="-1" y="-1" /> | |
191 </Anchors> | |
192 </Texture> | |
193 <Texture name="$parentIcon" parentKey="border" setAllPoints="true" alphaMode="BLEND"> | |
194 <Color r="1" g="1" b="1" a="1" /> | |
195 </Texture> | |
196 --> | |
197 </Layer> | |
198 </Layers> | |
199 </Frame> | |
200 | |
201 <Frame name="VeneerRaidBuffTemplate" virtual="true" enableMouse="false"> | |
202 <Layers> | |
203 <Layer level="ARTWORK"> | |
204 <Texture name="$parentLegend" parentKey="legend" parentArray="config" setAllPoints="true" hidden="true"> | |
205 <Color a="0.5" r="0" g="1" b="0" /> | |
206 </Texture> | |
207 <Texture name="$parentCountLegend" parentKey="count" parentArray="config" hidden="true"> | |
208 <Color a="0.75" r="1" g=".5" b="0" /> | |
209 </Texture> | |
210 | |
211 | |
212 <Texture name="$parentIconArea" parentKey="icon" alphaMode="ADD"> | |
213 <Color r="0" g="0" b="0" a="0" /> | |
214 </Texture> | |
215 <Texture name="$parentTextLegend" parentKey="duration" parentArray="config" hidden="true" alphaMode="BLEND"> | |
216 <Color a="0.25" r="1" g="1" b="1" /> | |
217 </Texture> | |
218 </Layer> | |
219 <Layer level="OVERLAY"> | |
220 <FontString inherits="VeneerFontNormal" parentArray="config" name="$parentSymbol" parentKey="symbol"> | |
221 <Anchors> | |
222 <Anchor point="TOP" /> | |
223 </Anchors> | |
224 </FontString> | |
225 <FontString inherits="VeneerFontNormal" parentArray="config" name="$parentID" parentKey="idText" hidden="true"> | |
226 <Anchors> | |
227 <Anchor point="BOTTOM" /> | |
228 </Anchors> | |
229 </FontString> | |
230 </Layer> | |
231 </Layers> | |
232 </Frame> | |
233 | |
234 <Button name="VeneerMissingBuffTemplate" virtual="true"> | |
235 <Scripts> | |
236 <OnClick> | |
237 if self.spell and not InCombatLockdown() then | |
238 CastSpellByID(self.spell) | |
239 end | |
240 </OnClick> | |
241 </Scripts> | |
242 <Layers> | |
243 <Layer level="BORDER"> | |
244 <Texture setAllPoints="true"> | |
245 <Color r="1" g="1" b="1" a="0.25" /> | |
246 </Texture> | |
247 </Layer> | |
248 <Layer level="ARTWORK"> | |
249 <Texture name="$parentIcon" parentKey="icon"> | |
250 <Size x="20" y="20" /> | |
251 <Anchors> | |
252 <Anchor point="LEFT" /> | |
253 </Anchors> | |
254 </Texture> | |
255 </Layer> | |
256 <Layer level="OVERLAY"> | |
257 <FontString name="$parentLabel" parentKey="label" inherits="VeneerFontNormal" justifyH="LEFT"> | |
258 <Anchors> | |
259 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="icon" /> | |
260 </Anchors> | |
261 </FontString> | |
262 </Layer> | |
263 </Layers> | |
264 </Button> | |
265 | |
266 <Script file="BuffFrame.lua" /> | |
267 <Script file="Constants.lua" /> | |
268 <Script file="BuffAnchors.lua" /> | |
269 <Script file="RaidBuffTray.lua" /> | |
270 <Script file="BuffButton.lua" /> | |
271 </Ui> |