comparison Core.xml @ 0:3dbcad2b387d

initial push
author Nenue
date Wed, 30 Mar 2016 02:24:56 -0400
parents
children 3397aae1f44d
comparison
equal deleted inserted replaced
-1:000000000000 0:3dbcad2b387d
1 <Ui>
2 <Font name="VeneerFont" />
3
4 <Font name="VeneerFont_Small" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" />
5 <Font name="VeneerFont_Large" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="24" />
6
7 <Font name="VeneerFontNormal" inherits="VeneerFont_Small">
8 <Color r="1" g="1" b="1" a="1" />
9 </Font>
10
11 <Font name="VeneerFontHighlight" inherits="VeneerFont_Small" outline="NORMAL">
12 <Color r="0" g=".7" b="1" a="1" />
13 </Font>
14 <Font name="VeneerFontHighlightLarge" inherits="VeneerFont_Large">
15 <Color r="0" g=".7" b="1" a="1" />
16 </Font>
17
18 <!-- Defining here so interfaces are easy to spot -->
19 <Frame name="VeneerHandlerTemplate" virtual="true">
20 <KeyValues>
21 </KeyValues>
22 </Frame>
23
24 <!-- Buff-button underlay -->
25 <Frame name="VeneerDecorTemplate" virtual="true" enableMouse="true" movable="true" frameStrata="BACKGROUND" hidden="true">
26 <Size x="30" y="30" />
27 <Layers>
28 <Layer level="BACKGROUND">
29 <Texture name="$parentButtonArea" setAllPoints="true" parentKey="background" alphaMode="BLEND">
30 <Color r="1" g="1" b="1" a="1" />
31 </Texture>
32 <Texture name="$parentButtonBackdrop" parentKey="backgroundFill" alphaMode="BLEND">
33 <Anchors>
34 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="1" y="1" relativeKey="$parent.background" />
35 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-1" y="-1" relativeKey="$parent.background" />
36 </Anchors>
37 <Color r="0" g="0" b="0" a="1" />
38 </Texture>
39 </Layer>
40 </Layers>
41 </Frame>
42
43 <!-- Buff button overlay, and positioning anchor -->
44 <Frame name="VeneerGuideTemplate" virtual="true" movable="true" frameStrata="LOW">
45 <Scripts>
46 <OnShow>
47 self.mouseover = self:IsMouseOver()
48 </OnShow>
49 <OnUpdate>
50 if self:IsMouseOver() and not self.contains then
51 self.caster:Show()
52 else
53 self.caster:Hide()
54 end
55 </OnUpdate>
56 </Scripts>
57 <Layers>
58 <Layer level="ARTWORK">
59 <Texture name="$parentLegend" parentKey="legend" parentArray="config" setAllPoints="true" hidden="true">
60 <Color a="0.5" r="0" g="1" b="0" />
61 </Texture>
62 <Texture name="$parentCountLegend" parentKey="count" parentArray="config" hidden="true">
63 <Color a="0.75" r="1" g=".5" b="0" />
64 </Texture>
65
66
67 <Texture name="$parentIconArea" parentKey="icon" alphaMode="ADD">
68 <Color r="0" g="0" b="0" a="0" />
69 </Texture>
70 <Texture name="$parentTextLegend" parentKey="duration" parentArray="config" hidden="true" alphaMode="BLEND">
71 <Color a="0.25" r="1" g="1" b="1" />
72 </Texture>
73 </Layer>
74 <Layer level="OVERLAY">
75 <FontString inherits="VeneerFontNormal" parentArray="config" name="$parentID" parentKey="idText" hidden="true" outline="NORMAL">
76 <Anchors>
77 <Anchor point="CENTER" />
78 </Anchors>
79 </FontString>
80 <FontString inherits="VeneerFontNormal" parentKey="caster" outline="NORMAL">
81 <Anchors>
82 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.icon" />
83 </Anchors>
84 </FontString>
85 </Layer>
86 <Layer level="HIGHLIGHT">
87
88 </Layer>
89 </Layers>
90 </Frame>
91
92 <!-- Anchor frame orientation-setting widget; click handler copies frame anchors over to buff buttons -->
93 <Button name="VeneerAnchorButton" virtual="true" parentArray="anchorButton" hidden="true">
94 <Scripts>
95 <OnClick>
96 self:GetParent():SetChildAnchors(self)
97 </OnClick>
98 </Scripts>
99 <Size x="15" y="15" />
100 <Layers>
101 <Layer level="BACKGROUND">
102 <Texture setAllPoints="true">
103 <Color r="0" g="0" b="0" a="1" />
104 </Texture>
105 </Layer>
106 <Layer level="OVERLAY">
107 <Texture>
108 <Color r="0" g="1" b="0.5" a="1" />
109 <Anchors>
110 <Anchor point="BOTTOMLEFT" x="1" y="1" />
111 <Anchor point="TOPRIGHT" x="-1" y="-1" />
112 </Anchors>
113 </Texture>
114 </Layer>
115 </Layers>
116 </Button>
117
118 <Frame name="VeneerAnchorTemplate" virtual="true" enableMouse="false" movable="true" sizable="true" clampedToScreen="true">
119 <Layers>
120 <Layer level="BACKGROUND">
121 <Texture name="$parentBackground" setAllPoints="true" parentArray="config" hidden="true">
122 <Color r="0" g="0.2" b="1" a="0.2" />
123 </Texture>
124 <FontString name="$parentHeading" inherits="VeneerFontHighlight" parentArray="config" parentKey="heading" hidden="true">
125 <Anchors>
126 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
127 </Anchors>
128 </FontString>
129 <FontString name="$parentDebug" inherits="VeneerFontNormal" parentArray="debug" parentKey="debug">
130 <Anchors>
131 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
132 </Anchors>
133 </FontString>
134 </Layer>
135 <Layer level="OVERLAY">
136
137 <Texture name="$parentCutJoint" parentKey="alignedJoint" hidden="true">
138 <Size x="4" y="4" />
139 <Color r="1" g="0" b="0" a="1" />
140 </Texture>
141 <Texture name="$parentCutY" parentKey="cuttingJointX" hidden="true">
142 <Size x="4" y="48" />
143 <Color r="1" g="1" b="0" a="1" />
144 </Texture>
145 <Texture name="$parentCutX" parentKey="cuttingJointY" hidden="true">
146 <Size x="48" y="4" />
147 <Color r="1" g="1" b="0" a="1" />
148 </Texture>
149 <Texture name="$parentPoppedY" parentKey="poppingJointX" hidden="true">
150 <Size x="4" y="48" />
151 <Color r="0" g="1" b="1" a="1" />
152 </Texture>
153 <Texture name="$parentPoppedX" parentKey="poppingJointY" hidden="true">
154 <Size x="48" y="4" />
155 <Color r="0" g="1" b="1" a="1" />
156 </Texture>
157 <Texture name="$parentChildSpace" parentKey="childSpace" hidden="true">
158 <Color r="0" g=".5" b="1" a="0.5" />
159 </Texture>
160 </Layer>
161 <Layer level="HIGHLIGHT">
162 <Texture name="$parentHighlight" setAllPoints="true" parentArray="config" hidden="true">
163 <Color r="1" g="1" b="0" a="0.2" />
164 </Texture>
165 </Layer>
166 </Layers>
167 <Frames>
168 <Button name="$parentAnchorUL" inherits="VeneerAnchorButton">
169 <Anchors>
170 <Anchor point="TOPLEFT" />
171 </Anchors>
172 </Button>
173 <Button name="$parentAnchorUR" inherits="VeneerAnchorButton">
174 <Anchors>
175 <Anchor point="TOPRIGHT" />
176 </Anchors>
177 </Button>
178 <Button name="$parentAnchorUR" inherits="VeneerAnchorButton">
179 <Anchors>
180 <Anchor point="BOTTOMRIGHT" />
181 </Anchors>
182 </Button>
183 <Button name="$parentAnchorUR" inherits="VeneerAnchorButton">
184 <Anchors>
185 <Anchor point="BOTTOMLEFT" />
186 </Anchors>
187 </Button>
188 </Frames>
189 </Frame>
190
191 <Frame name="VeneerConsolidatedBuffsAnchor" inherits="VeneerAnchorTemplate" virtual="true">
192 <Layers>
193 <Layer level="OVERLAY">
194 <!-- need to make our own number label since the original is buried under secure layer -->
195 <FontString inherits="VeneerFontNormal" name="$parentLabel" parentKey="label">
196 <Anchors>
197 <Anchor point="TOP" relativePoint="BOTTOM" x="0" y="-2" />
198 </Anchors>
199 </FontString>
200 <!--
201 <Texture name="$parentBackdrop" parentKey="background" setAllPoints="true" alphaMode="BLEND">
202 <Color r="0" g="0" b="0" a="1" />
203 <Anchors>
204 <Anchor point="BOTTOMLEFT" x="1" y="1" />
205 <Anchor point="TOPRIGHT" x="-1" y="-1" />
206 </Anchors>
207 </Texture>
208 <Texture name="$parentIcon" parentKey="border" setAllPoints="true" alphaMode="BLEND">
209 <Color r="1" g="1" b="1" a="1" />
210 </Texture>
211 -->
212 </Layer>
213 </Layers>
214 </Frame>
215
216 <Frame name="VeneerRaidBuffTemplate" virtual="true" enableMouse="false">
217 <Layers>
218 <Layer level="ARTWORK">
219 <Texture name="$parentLegend" parentKey="legend" parentArray="config" setAllPoints="true" hidden="true">
220 <Color a="0.5" r="0" g="1" b="0" />
221 </Texture>
222 <Texture name="$parentCountLegend" parentKey="count" parentArray="config" hidden="true">
223 <Color a="0.75" r="1" g=".5" b="0" />
224 </Texture>
225
226
227 <Texture name="$parentIconArea" parentKey="icon" alphaMode="ADD">
228 <Color r="0" g="0" b="0" a="0" />
229 </Texture>
230 <Texture name="$parentTextLegend" parentKey="duration" parentArray="config" hidden="true" alphaMode="BLEND">
231 <Color a="0.25" r="1" g="1" b="1" />
232 </Texture>
233 </Layer>
234 <Layer level="OVERLAY">
235 <FontString inherits="VeneerFontNormal" parentArray="config" name="$parentSymbol" parentKey="symbol">
236 <Anchors>
237 <Anchor point="TOP" />
238 </Anchors>
239 </FontString>
240 <FontString inherits="VeneerFontNormal" parentArray="config" name="$parentID" parentKey="idText" hidden="true">
241 <Anchors>
242 <Anchor point="BOTTOM" />
243 </Anchors>
244 </FontString>
245 </Layer>
246 </Layers>
247 </Frame>
248
249 <Button name="VeneerMissingBuffTemplate" virtual="true">
250 <Scripts>
251 <OnClick>
252 if self.spell and not InCombatLockdown() then
253 CastSpellByID(self.spell)
254 end
255 </OnClick>
256 </Scripts>
257 <Layers>
258 <Layer level="BORDER">
259 <Texture setAllPoints="true">
260 <Color r="1" g="1" b="1" a="0.25" />
261 </Texture>
262 </Layer>
263 <Layer level="ARTWORK">
264 <Texture name="$parentIcon" parentKey="icon">
265 <Size x="20" y="20" />
266 <Anchors>
267 <Anchor point="LEFT" />
268 </Anchors>
269 </Texture>
270 </Layer>
271 <Layer level="OVERLAY">
272 <FontString name="$parentLabel" parentKey="label" inherits="VeneerFontNormal" justifyH="LEFT">
273 <Anchors>
274 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="icon" />
275 </Anchors>
276 </FontString>
277 </Layer>
278 </Layers>
279 </Button>
280
281 <FontString virtual="true" name="VeneerFieldName" parentKey="fieldname" inherits="VeneerFontHighlight" justifyV="TOP" justifyH="LEFT" />
282 <FontString virtual="true" name="VeneerFieldValue" parentKey="fieldvalue" inherits="VeneerFontNormal" justifyV="TOP" justifyH="LEFT" />
283 <Slider virtual="true" orientation="HORIZONTAL" name="VeneerConfigSlider">
284 <Size x="250" y="18" />
285 <Thumbtexture name="$parentThumb" alphaMode="BLEND" parentKey="thumb">
286 <Size x="12" y="18" />
287 <Color r="0.25" g="0.25" b="0.25" a="1" />
288 </Thumbtexture>
289 <Layers>
290 <Layer level="BACKGROUND">
291 <Texture>
292 <Anchors>
293 <Anchor point="LEFT" />
294 <Anchor point="RIGHT" />
295 </Anchors>
296 <Size y="7" />
297 <Color r="0" g="0" b="0" a="1" />
298 </Texture>
299
300 </Layer>
301 <Layer level="OVERLAY">
302
303
304 <FontString name="$parentOptText" inherits="VeneerFieldName">
305 <Anchors>
306 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
307 </Anchors>
308 </FontString>
309
310 <FontString name="$parentOptText" inherits="VeneerFieldValue">
311 <Anchors>
312 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="0" />
313 </Anchors>
314 </FontString>
315 </Layer>
316 </Layers>
317 <Scripts>
318 <OnValueChanged>
319 self:OnChange()
320 </OnValueChanged>
321 </Scripts>
322 </Slider>
323
324 <CheckButton virtual="true" orientation="HORIZONTAL" name="VeneerConfigCheckButton">
325 <Size x="24" y="24" />
326 <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
327 <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
328 <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
329 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
330 <Layers>
331 <Layer level="BACKGROUND">
332 <Texture setAllPoints="true">
333 <Size y="24" />
334 <Color r="0" g="0.7" b="1" a="1" />
335 </Texture>
336
337 <FontString name="$parentOptText" inherits="VeneerFieldName" >
338 <Anchors>
339 <Anchor point="LEFT" relativePoint="LEFT" x="24" y="0" />
340 </Anchors>
341 </FontString>
342
343 </Layer>
344 </Layers>
345 <Scripts>
346 <OnValueChanged>
347 self:OnChange()
348 </OnValueChanged>
349 </Scripts>
350 </CheckButton>
351
352
353 <Button virtual="true" name="VeneerConfigColor">
354 <Size x="400" y="20" />
355 <Layers>
356 <Layer level="BACKGROUND">
357 <Texture setAllPoints="true">
358 <Color r="0.15" g="0.15" b="0.15" a="0.5" />
359 </Texture>
360 <Texture>
361 <Anchors>
362 <Anchor point="BOTTOMLEFT" x="0" y="0" />
363 </Anchors>
364 <Size x="18" y="18" />
365 <Color r="0" g="0" b="0" a="1" />
366 </Texture>
367 </Layer>
368 <Layer level="ARTWORK">
369 <Texture name="$parentCurrentColor" parentKey="current">
370 <Anchors>
371 <Anchor point="BOTTOMLEFT" x="1" y="1" />
372 </Anchors>
373 <Size x="16" y="16" />
374 <Color r="1" g="1" b="1" a="1" />
375 </Texture>
376 </Layer>
377 <Layer level="OVERLAY">
378
379 <FontString name="$parentOptText" inherits="VeneerFieldName">
380 <Anchors>
381 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="0" />
382 </Anchors>
383 </FontString>
384
385 <FontString parentKey="fieldvalue" name="$parentOptText" inherits="VeneerFontNormal" text="">
386 <Anchors>
387 <Anchor point="CENTER" relativePoint="CENTER" relativeKey="$thumb" x="0" y="0" />
388 </Anchors>
389 </FontString>
390
391 </Layer>
392 </Layers>
393 </Button>
394
395
396 <Frame name="Veneer" hidden="true" enableMouse="true" movable="true" parent="UIParent">
397 <Size x="400" y="400" />
398 <Anchors>
399 <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" />
400 </Anchors>
401 <Scripts>
402 <OnLoad>
403 self:RegisterForDrag('LeftButton')
404 </OnLoad>
405 <OnDragStart>
406 self:StartMoving()
407 </OnDragStart>
408 <OnDragStop>
409 self:StopMovingOrSizing()
410 </OnDragStop>
411 </Scripts>
412 <Layers>
413 <Layer level="BACKGROUND">
414 <Texture setAllPoints="true">
415 <Color r="0" g="0" b="0" a="0.7" />
416 </Texture>
417 </Layer>
418 <Layer level="ARTWORK">
419 <FontString name="$parentHeader" parentKey="header" inherits="VeneerFontHighlightLarge" text="Veneer">
420 <Anchors>
421 <Anchor point="TOPLEFT" x="3" y="-4" />
422 </Anchors>
423 </FontString>
424 </Layer>
425 </Layers>
426 <Frames>
427 <Button name="$parentCloseButton" parentKey="close" text="X">
428 <ButtonText inherits="SystemFont_Small" />
429 <Scripts>
430 <OnClick>
431 self:GetParent():Close()
432 </OnClick>
433 </Scripts>
434 <Size x="24" y="24" />
435 <Anchors>
436 <Anchor point="TOPRIGHT" x="-5" y="-5" />
437 </Anchors>
438 <NormalTexture parentKey="normal" setAllPoints="true">
439 <Color a="1" r="0" g="0" b="0" />
440 </NormalTexture>
441 <PushedTexture setAllPoints="true">
442 <Color a="1" r="1" g="0" b="0" />
443 </PushedTexture>
444 <HighlightTexture setAllPoints="true" alphaMode="ADD">
445 <Color a=".5" r="1" g=".7" b="0.5" />
446 </HighlightTexture>
447 </Button>
448 <Button name="$parentGuidesButton" parentKey="guides" text="Guides">
449 <ButtonText inherits="SystemFont_Small" />
450 <Scripts>
451 <OnClick>
452 self:GetParent():ToggleGuides(self)
453 </OnClick>
454 </Scripts>
455 <Size x="36" y="24" />
456 <Anchors>
457 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentCloseButton" x="-5" y="0" />
458 </Anchors>
459 <NormalTexture parentKey="normal" setAllPoints="true">
460 <Color a="1" r="0" g="0" b="0" />
461 </NormalTexture>
462 <PushedTexture setAllPoints="true">
463 <Color a="1" r="1" g="0" b="0" />
464 </PushedTexture>
465 <HighlightTexture setAllPoints="true" alphaMode="ADD">
466 <Color a=".5" r="1" g=".7" b="0.5" />
467 </HighlightTexture>
468 </Button>
469 </Frames>
470 </Frame>
471
472
473 <Script file="Init.lua" />
474 <Script file="Constants.lua" />
475 <Script file="Config.lua" />
476
477 </Ui>