comparison Core.xml @ 14:ed642234f017

ObjectiveFrame - implement proper tracker name text - expanded tracker prototypes to cover "objective lines" formatting and accommodation of widget variables - implement the progress bars for bonus objectives ObjectiveStyle - moved `UpdateWrapperStyle` over and renamed it to fit semantics - change the formula for block.`height` to measure non-widget content only - allows widgets to position relative to text - size FontString `status` to match block.`height` - full block height is acquired by adding block.`height` and block.`attachmentHeight` which is calculated during objective parsing ObjectiveWidgets - use string keys for generated widgets to deal with multiple objectives under the same questID, and maybe dungeon objectives - wrapper buttons use a common code path - specialized handlers for wheel scrolling moved over to fit semantics
author Nenue
date Mon, 04 Apr 2016 03:16:22 -0400
parents 3397aae1f44d
children d5ee940de273
comparison
equal deleted inserted replaced
13:9455693fc290 14:ed642234f017
19 <Frame name="VeneerHandlerTemplate" virtual="true"> 19 <Frame name="VeneerHandlerTemplate" virtual="true">
20 <KeyValues> 20 <KeyValues>
21 </KeyValues> 21 </KeyValues>
22 </Frame> 22 </Frame>
23 23
24 <!-- Buff-button underlay --> 24
25 <Frame name="VeneerDecorTemplate" virtual="true" enableMouse="true" movable="true" frameStrata="BACKGROUND" hidden="true"> 25
26 <Size x="30" y="30" /> 26 <Texture name="VnTestLine" virtual="true">
27 <Layers> 27 <Color r="1" g="1" b="0" a="1" />
28 <Layer level="BACKGROUND"> 28 </Texture>
29 <Texture name="$parentButtonArea" setAllPoints="true" parentKey="background" alphaMode="BLEND"> 29
30 <Color r="1" g="1" b="1" a="1" /> 30 <Font name="VeneerTitleFont" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" >
31 </Texture> 31 <Color r="1" g=".80" b=".25" a="1" />
32 <Texture name="$parentButtonBackdrop" parentKey="backgroundFill" alphaMode="BLEND"> 32 </Font>
33 <Anchors> 33
34 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="1" y="1" relativeKey="$parent.background" /> 34 <Font name="VeneerCriteriaFontNormal" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
35 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-1" y="-1" relativeKey="$parent.background" /> 35 <Color r="1" g="1" b="1" a="1" />
36 </Anchors> 36 </Font>
37 <Color r="0" g="0" b="0" a="1" /> 37 <Font name="VeneerCriteriaFontComplete" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
38 </Texture> 38 <Color r="0" g="1" b="0" a=".75" />
39 </Layer> 39 </Font>
40 </Layers> 40 <Font name="VeneerCriteriaFontProgressed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
41 </Frame> 41 <Color r="1" g="1" b="0" a="1" />
42 42 </Font>
43 <!-- Buff button overlay, and positioning anchor --> 43
44 <Frame name="VeneerGuideTemplate" virtual="true" movable="true" frameStrata="LOW"> 44 <Font name="VeneerCriteriaFontFailed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
45 <Scripts> 45 <Color r="1" g=".4" b="0" a=".75" />
46 <OnShow> 46 </Font>
47 self.mouseover = self:IsMouseOver() 47
48 </OnShow> 48 <Font name="VeneerStatusFont" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="14">
49 <OnUpdate> 49 <Color r="1" g="1" b="0" a="1" />
50 if self:IsMouseOver() and not self.contains then 50 </Font>
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 51
281 <FontString virtual="true" name="VeneerFieldName" parentKey="fieldname" inherits="VeneerFontHighlight" justifyV="TOP" justifyH="LEFT" /> 52 <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" /> 53 <FontString virtual="true" name="VeneerFieldValue" parentKey="fieldvalue" inherits="VeneerFontNormal" justifyV="TOP" justifyH="LEFT" />
283 <Slider virtual="true" orientation="HORIZONTAL" name="VeneerConfigSlider"> 54 <Slider virtual="true" orientation="HORIZONTAL" name="VeneerConfigSlider">
284 <Size x="250" y="18" /> 55 <Size x="250" y="18" />