comparison ObjectiveTracker.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 9455693fc290
children 880828018bf4
comparison
equal deleted inserted replaced
13:9455693fc290 14:ed642234f017
1 <Ui> 1 <Ui>
2 2
3 3 <Frame name="VeneerObjectiveWrapper" parent="UIParent" movable="true" enableMouse="true" frameStrata="LOW">
4 <Texture name="VnTestLine" virtual="true">
5 <Color r="1" g="1" b="0" a="1" />
6 </Texture>
7
8 <Font name="VeneerTitleFont" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" >
9 <Color r="1" g=".80" b=".25" a="1" />
10 </Font>
11
12 <Font name="VeneerCriteriaFontNormal" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
13 <Color r="1" g="1" b="1" a="1" />
14 </Font>
15 <Font name="VeneerCriteriaFontComplete" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
16 <Color r="0" g="1" b="0" a=".75" />
17 </Font>
18 <Font name="VeneerCriteriaFontProgressed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
19 <Color r="1" g="1" b="0" a="1" />
20 </Font>
21
22 <Font name="VeneerCriteriaFontFailed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
23 <Color r="1" g=".4" b="0" a=".75" />
24 </Font>
25
26 <Font name="VeneerStatusFont" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="14">
27 <Color r="1" g="1" b="0" a="1" />
28 </Font>
29
30 <Frame name="VeneerObjectiveWrapper" parent="UIParent" movable="true" enableMouse="true">
31 <Scripts> 4 <Scripts>
32 <OnLoad> 5 <OnLoad>
33 self.toggle = true 6 self.toggle = true
34 self.drag = true 7 self.drag = true
35 Veneer.OnLoad(self) 8 Veneer.OnLoad(self)
90 <Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="29" y="-13"/> 63 <Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="29" y="-13"/>
91 </Anchors> 64 </Anchors>
92 </Texture>--> 65 </Texture>-->
93 </Layer> 66 </Layer>
94 <Layer level="OVERLAY"> 67 <Layer level="OVERLAY">
95 <FontString name="$parentTitle" parentKey="title" inherits="VeneerStatusFont">
96 <Anchors>
97 <Anchor point="LEFT" />
98 </Anchors>
99 </FontString>
100 68
101 <!--<Texture name="$parentTCR" parentKey="outlineClosed" file="Interface\FrameGeneral\UI-Frame"> 69 <!--<Texture name="$parentTCR" parentKey="outlineClosed" file="Interface\FrameGeneral\UI-Frame">
102 <Size x="40" y="30" /> 70 <Size x="40" y="30" />
103 <Color r="1" g="1" b="1" a="1" /> 71 <Color r="1" g="1" b="1" a="1" />
104 <TexCoords top=".0156" bottom=".0265" left=".625" right=".875" /> 72 <TexCoords top=".0156" bottom=".0265" left=".625" right=".875" />
108 </Texture>--> 76 </Texture>-->
109 77
110 </Layer> 78 </Layer>
111 </Layers> 79 </Layers>
112 <Frames> 80 <Frames>
113
114 <Frame name="$parentXP" parentKey="XPBar" hidden="true">
115 <Size x="250" y="24" />
116 <Anchors>
117 <Anchor point="TOPLEFT" />
118 </Anchors>
119 <Layers>
120 <Layer level="BACKGROUND">
121 <Texture name="$parentBackground" parentKey="statusbg" setAllPoints="true"/>
122 </Layer>
123 <Layer level="ARTWORK">
124
125 <Texture name="$parentForeground" parentKey="foreground">
126 <Anchors>
127 <Anchor point="TOPLEFT" />
128 <Anchor point="BOTTOMLEFT" />
129 </Anchors>
130 </Texture>
131 <Texture name="$parentRested" parentKey="rested" >
132 <Anchors>
133 <Anchor point="TOPLEFT" />
134 <Anchor point="BOTTOMLEFT" />
135 </Anchors>
136 </Texture>
137 </Layer>
138 <Layer level="OVERLAY">
139 <FontString inherits="VeneerFontNormal" parentKey="title">
140 <Anchors>
141 <Anchor point="CENTER" />
142 </Anchors>
143 </FontString>
144 </Layer>
145 </Layers>
146 </Frame>
147
148 <Button name="$parentClose" parentKey="close" inherits="UIPanelCloseButtonNoScripts" enableMouseWheel="true" enableMouse="true">
149
150 <NormalTexture file="Interface\PaperDollInfoFrame\UI-Character-SkillsPageDown-Up" />
151 <PushedTexture file="Interface\PaperDollInfoFrame\UI-Character-SkillsPageDown-Down" />
152 <Anchors>
153 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-2" y="2" />
154 </Anchors>
155 <Layers>
156 </Layers>
157 </Button>
158 81
159 <ScrollFrame name="$parentScrollFrame" enableMouseWheel="true" parentKey="scrollArea" parentArray="minimizeFrames"> 82 <ScrollFrame name="$parentScrollFrame" enableMouseWheel="true" parentKey="scrollArea" parentArray="minimizeFrames">
160 <Layers> 83 <Layers>
161 <Layer level="BACKGROUND"> 84 <Layer level="BACKGROUND">
162 <Texture setAllPoints="true" parentKey="bg"> 85 <Texture setAllPoints="true" parentKey="bg">
182 </Layers> 105 </Layers>
183 </Slider> 106 </Slider>
184 --> 107 -->
185 </Frames> 108 </Frames>
186 </ScrollFrame> 109 </ScrollFrame>
110
111 <Frame name="$parentStatusHeader" parentKey="header" frameStrata="MEDIUM">
112 <Layers>
113 <Layer level="OVERLAY">
114 <FontString name="$parentTitle" parentKey="status" inherits="VeneerStatusFont" text="status test" justifyH="RIGHT">
115 <Anchors>
116 <Anchor point="TOPRIGHT" x="-64" y="0" />
117 </Anchors>
118 </FontString>
119 </Layer>
120 </Layers>
121 </Frame>
122
123 <Button name="$parentCloseButton" parentKey="CloseButton" enableMouse="true" frameStrata="MEDIUM">
124 <Size x="16" y="16" />
125 <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
126 <Anchors>
127 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-2" y="0" />
128 </Anchors>
129 </Button>
130
131 <Button name="$parentQuestMapButton" parentArray="minimizeFrames" parentKey="QuestMapButton" frameStrata="MEDIUM">
132 <Size x="42" y="16" />
133 <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
134 <Anchors>
135 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeKey="$parent.CloseButton" x="0" y="0" />
136 </Anchors>
137 </Button>
187 </Frames> 138 </Frames>
188 </Frame> 139 </Frame>
189 140
141
142
143
144 <Frame name="$parentXP" parent="VeneerObjectiveWrapper" parentKey="XPBar" hidden="true">
145 <Size x="250" y="24" />
146 <Anchors>
147 <Anchor point="TOPLEFT" />
148 </Anchors>
149 <Layers>
150 <Layer level="BACKGROUND">
151 <Texture name="$parentBackground" parentKey="statusbg" setAllPoints="true"/>
152 </Layer>
153 <Layer level="ARTWORK">
154
155 <Texture name="$parentForeground" parentKey="foreground">
156 <Anchors>
157 <Anchor point="TOPLEFT" />
158 <Anchor point="BOTTOMLEFT" />
159 </Anchors>
160 </Texture>
161 <Texture name="$parentRested" parentKey="rested" >
162 <Anchors>
163 <Anchor point="TOPLEFT" />
164 <Anchor point="BOTTOMLEFT" />
165 </Anchors>
166 </Texture>
167 </Layer>
168 <Layer level="OVERLAY">
169 <FontString inherits="VeneerFontNormal" parentKey="title">
170 <Anchors>
171 <Anchor point="CENTER" />
172 </Anchors>
173 </FontString>
174 </Layer>
175 </Layers>
176 </Frame>
177
178 <!-- Header Panel -->
179
180 <!-- Background panels -->
190 <Frame name="VeneerObjectiveScroll" parent="VeneerObjectiveWrapperScrollFrame"> 181 <Frame name="VeneerObjectiveScroll" parent="VeneerObjectiveWrapperScrollFrame">
191 <Anchors> 182 <Anchors>
192 <Anchor point="TOPLEFT" /> 183 <Anchor point="TOPLEFT" />
193 </Anchors> 184 </Anchors>
194 <Layers> 185 <Layers>
207 <Frame name="VeneerTrackerTemplate" parent="UIParent" virtual="true"> 198 <Frame name="VeneerTrackerTemplate" parent="UIParent" virtual="true">
208 <Layers> 199 <Layers>
209 <Layer level="BACKGROUND"> 200 <Layer level="BACKGROUND">
210 <Texture name="$parentTitleBackground" parentKey="titlebg"> 201 <Texture name="$parentTitleBackground" parentKey="titlebg">
211 <Anchors> 202 <Anchors>
212 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" /> 203 <Anchor point="TOPLEFT" />
213 <Anchor point="RIGHT" relativePoint="RIGHT" /> 204 <Anchor point="RIGHT" />
214 </Anchors> 205 </Anchors>
215 <Color r="1" g="1" b="1" a="1" /> 206 <Color r="1" g="1" b="1" a="1" />
216 <Gradient orientation="HORIZONTAL"> 207 <Gradient orientation="HORIZONTAL">
217 <MinColor r="0" g="0" b="0" a="0.1" /> 208 <MinColor r="0" g="0" b="0" a="0.1" />
218 <MaxColor r="0" g="0" b="0" a="0" /> 209 <MaxColor r="0" g="0" b="0" a="0" />
219 </Gradient> 210 </Gradient>
220 </Texture> 211 </Texture>
221 </Layer> 212 </Layer>
222 <Layer level="OVERLAY"> 213 <Layer level="OVERLAY">
223 <FontString name="$parentTitle" inherits="VeneerFontHighlight" text="OBJ" parentKey="title"> 214 <FontString name="$parentTitle" inherits="VeneerFontHighlight" text="OBJ" parentKey="title" justifyH="LEFT">
224 <Anchors>
225 <Anchor point="TOPLEFT" />
226 </Anchors>
227 </FontString>
228 </Layer>
229 </Layers>
230 </Frame>
231
232
233 <Frame name="VeneerTrackerBlock" parent="VeneerObjectiveScroll" virtual="true" enableMouse="true">
234 <Layers>
235 <Layer level="BACKGROUND">
236 </Layer>
237 <Layer level="ARTWORK">
238 <Texture name="$parentTitleBackground" parentKey="titlebg">
239 <Color r="1" g="1" b="1" a="1" />
240 <Anchors>
241 <Anchor point="TOPLEFT" />
242 </Anchors>
243 </Texture>
244 <Texture name="$parentStatusBackground" parentKey="statusbg">
245 <Anchors>
246 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.titlebg" />
247 </Anchors>
248 <Color r="1" g="1" b="1" a="1" />
249 <Gradient orientation="HORIZONTAL">
250 <MinColor r="0" g="0" b="0" a=".15" />
251 <MaxColor r="0" g="0" b="0" a=".35" />
252 </Gradient>
253 </Texture>
254 <Texture name="$parentItemTile" parentKey="icon" hidden="true">
255 <Size x="24" y="24" />
256 <Anchors>
257 <Anchor point="TOPRIGHT" x="-1" y="-1" />
258 </Anchors>
259 </Texture>
260 <Texture name="$parentMoneyTile" parentKey="money" hidden="true" />
261 </Layer>
262 <Layer level="HIGHLIGHT">
263 <Texture name="$parentHighLight" parentKey="highlight">
264 <Anchors>
265 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.titlebg" />
266 <Anchor point="BOTTOM" relativePoint="TOP" relativeKey="$parent.titlebg" x="0" y="-4"/>
267 <Anchor point="RIGHT" relativePoint="RIGHT" />
268 </Anchors>
269 <Color r="1" g="1" b="1" a="1" />
270 <Gradient orientation="VERTICAL">
271 <MaxColor r="1" g="1" b="1" a=".15" />
272 <MinColor r="1" g="1" b="1" a="0" />
273 </Gradient>
274 </Texture>
275 <Texture name="$parentLowLight" parentKey="highlight2">
276 <Anchors>
277 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.statusbg" x="0" y="14" />
278 <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeKey="$parent.statusbg" x="0" y="0"/>
279 <Anchor point="RIGHT" relativePoint="RIGHT" relativeKey="$parent" />
280 </Anchors>
281 <Color r="1" g="1" b="1" a="1" />
282 <Gradient orientation="VERTICAL">
283 <MaxColor r="1" g="1" b="1" a="0" />
284 <MinColor r="1" g="1" b="1" a="0.15" />
285 </Gradient>
286 </Texture>
287 </Layer>
288 <Layer level="OVERLAY">
289 <FontString name="$parentTitle" parentKey="title" inherits="VeneerTitleFont" justifyH="LEFT" justifyV="MIDDLE">
290 <Anchors> 215 <Anchors>
291 <Anchor point="TOP" relativeKey="$parent.titlebg" /> 216 <Anchor point="TOP" relativeKey="$parent.titlebg" />
292 <Anchor point="BOTTOM" relativeKey="$parent.titlebg" /> 217 <Anchor point="BOTTOM" relativeKey="$parent.titlebg" />
293 <Anchor point="LEFT" relativeKey="$parent.titlebg" /> 218 <Anchor point="LEFT" relativeKey="$parent.titlebg" />
294 <Anchor point="RIGHT" relativeKey="$parent" /> 219 <Anchor point="RIGHT" relativeKey="$parent" />
295 </Anchors> 220 </Anchors>
296 </FontString> 221 </FontString>
222 <FontString name="$parentStatus" inherits="VeneerStatusFont" parentKey="status" justifyH="RIGHT">
223 <Anchors>
224 <Anchor point="TOP" relativeKey="$parent.titlebg" />
225 <Anchor point="BOTTOM" relativeKey="$parent.titlebg" />
226 <Anchor point="LEFT" relativeKey="$parent.titlebg" />
227 <Anchor point="RIGHT" relativeKey="$parent" />
228 </Anchors>
229 </FontString>
230 </Layer>
231 </Layers>
232 </Frame>
233
234
235 <Frame name="VeneerTrackerBlock" parent="VeneerObjectiveScroll" virtual="true" enableMouse="true">
236 <Layers>
237 <Layer level="BACKGROUND">
238 </Layer>
239 <Layer level="ARTWORK">
240 <Texture name="$parentTitleBackground" parentKey="titlebg">
241 <Color r="1" g="1" b="1" a="1" />
242 <Anchors>
243 <Anchor point="TOPLEFT" />
244 </Anchors>
245 </Texture>
246 <Texture name="$parentStatusBackground" parentKey="statusbg">
247 <Anchors>
248 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.titlebg" />
249 </Anchors>
250 <Color r="1" g="1" b="1" a="1" />
251 <Gradient orientation="HORIZONTAL">
252 <MinColor r="0" g="0" b="0" a=".15" />
253 <MaxColor r="0" g="0" b="0" a=".35" />
254 </Gradient>
255 </Texture>
256 <Texture name="$parentItemTile" parentKey="icon" hidden="true">
257 <Size x="24" y="24" />
258 <Anchors>
259 <Anchor point="TOPRIGHT" x="-1" y="-1" />
260 </Anchors>
261 </Texture>
262 <Texture name="$parentMoneyTile" parentKey="money" hidden="true" />
263 </Layer>
264 <Layer level="HIGHLIGHT">
265 <Texture name="$parentHighLight" parentKey="highlight">
266 <Anchors>
267 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.titlebg" />
268 <Anchor point="BOTTOM" relativePoint="TOP" relativeKey="$parent.titlebg" x="0" y="-4"/>
269 <Anchor point="RIGHT" relativePoint="RIGHT" />
270 </Anchors>
271 <Color r="1" g="1" b="1" a="1" />
272 <Gradient orientation="VERTICAL">
273 <MaxColor r="1" g="1" b="1" a=".15" />
274 <MinColor r="1" g="1" b="1" a="0" />
275 </Gradient>
276 </Texture>
277 <Texture name="$parentLowLight" parentKey="highlight2">
278 <Anchors>
279 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.statusbg" x="0" y="14" />
280 <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeKey="$parent.statusbg" x="0" y="0"/>
281 <Anchor point="RIGHT" relativePoint="RIGHT" relativeKey="$parent" />
282 </Anchors>
283 <Color r="1" g="1" b="1" a="1" />
284 <Gradient orientation="VERTICAL">
285 <MaxColor r="1" g="1" b="1" a="0" />
286 <MinColor r="1" g="1" b="1" a="0.15" />
287 </Gradient>
288 </Texture>
289 </Layer>
290 <Layer level="OVERLAY">
291 <FontString name="$parentTitle" parentKey="title" inherits="VeneerTitleFont" justifyH="LEFT" justifyV="MIDDLE">
292 <Anchors>
293 <Anchor point="TOP" relativeKey="$parent.titlebg" />
294 <Anchor point="BOTTOM" relativeKey="$parent.titlebg" />
295 <Anchor point="LEFT" relativeKey="$parent.titlebg" />
296 <Anchor point="RIGHT" relativeKey="$parent" />
297 </Anchors>
298 </FontString>
297 <FontString name="$parentStatus" parentKey="status" inherits="VeneerCriteriaFontNormal" justifyH="LEFT" justifyV="MIDDLE" wordwrap="true"> 299 <FontString name="$parentStatus" parentKey="status" inherits="VeneerCriteriaFontNormal" justifyH="LEFT" justifyV="MIDDLE" wordwrap="true">
298 <Anchors> 300 <Anchors>
299 <Anchor point="TOP" relativeKey="$parent.statusbg" /> 301 <Anchor point="TOP" relativeKey="$parent.statusbg" />
300 <Anchor point="BOTTOM" relativeKey="$parent.statusbg" />
301 <Anchor point="LEFT" relativeKey="$parent.statusbg" /> 302 <Anchor point="LEFT" relativeKey="$parent.statusbg" />
302 <Anchor point="RIGHT" relativeKey="$parent.statusbg" /> 303 <Anchor point="RIGHT" relativeKey="$parent.statusbg" />
303 </Anchors> 304 </Anchors>
304 </FontString> 305 </FontString>
305 <FontString name="$parentDebugText" parentKey="debugText" inherits="VeneerCriteriaFontNormal" justifyH="RIGHT"> 306 <FontString name="$parentDebugText" parentKey="debugText" inherits="VeneerCriteriaFontNormal" justifyH="RIGHT">