Mercurial > wow > buffalo2
comparison ObjectiveTracker.xml @ 10:f03c75f63566
ObjectiveStyle & ObjectiveFrame
- abstract aesthetic details away from ObjectiveFrame
- revise SetBlockStyle into a more general algorithm for every frame
- implement caching of resolved attribute combinations
- use loadstring functions to store resolved attributes and call upon those when, for example, a MouseUp leads a tracker block to restore its original style
author | Nenue |
---|---|
date | Sat, 02 Apr 2016 03:19:25 -0400 |
parents | 589de8ea05b9 |
children | 8238cddaddb1 |
comparison
equal
deleted
inserted
replaced
9:2698173edd40 | 10:f03c75f63566 |
---|---|
15 <Color r="1" g="1" b="0" a="1" /> | 15 <Color r="1" g="1" b="0" a="1" /> |
16 </Font> | 16 </Font> |
17 | 17 |
18 <Font name="VeneerCriteriaFontFailed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16"> | 18 <Font name="VeneerCriteriaFontFailed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16"> |
19 <Color r="1" g=".4" b="0" a=".75" /> | 19 <Color r="1" g=".4" b="0" a=".75" /> |
20 </Font> | |
21 | |
22 <Font name="VeneerStatusFont" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="14"> | |
23 <Color r="1" g="1" b="0" a="1" /> | |
20 </Font> | 24 </Font> |
21 | 25 |
22 <Frame name="VeneerObjectiveWrapper" parent="UIParent" movable="true" enableMouse="true"> | 26 <Frame name="VeneerObjectiveWrapper" parent="UIParent" movable="true" enableMouse="true"> |
23 <Scripts> | 27 <Scripts> |
24 <OnLoad> | 28 <OnLoad> |
42 <Anchor point="TOPRIGHT" x="-60" y="-240" /> | 46 <Anchor point="TOPRIGHT" x="-60" y="-240" /> |
43 </Anchors> | 47 </Anchors> |
44 <Layers> | 48 <Layers> |
45 | 49 |
46 <Layer level="ARTWORK"> | 50 <Layer level="ARTWORK"> |
47 <Texture parentKey="BackgroundLeft" parentArray="header" /> | 51 <Texture parentKey="BackgroundLeft" parentArray="headerComplex" /> |
48 <Texture parentKey="BackgroundRight" parentArray="header" /> | 52 <Texture parentKey="BackgroundRight" parentArray="headerComplex" /> |
49 <Texture parentKey="BackgroundTile" parentArray="header" /> | 53 <Texture parentKey="BackgroundTile" parentArray="headerComplex" /> |
50 <Texture parentKey="HeaderBounds" parentArray="config" alphaMode="ADD" hidden="true"> | 54 <Texture parentKey="headerComplexBounds" parentArray="config" alphaMode="ADD" hidden="true"> |
51 <Color r="0" g="0" b="1" a="0.5" /> | 55 <Color r="0" g="0" b="1" a="0.5" /> |
52 <Anchors> | 56 <Anchors> |
53 <Anchor point="TOPLEFT" relativeKey="$parent.BackgroundLeft" /> | 57 <Anchor point="TOPLEFT" relativeKey="$parent.BackgroundLeft" /> |
54 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BackgroundRight" /> | 58 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BackgroundRight" /> |
55 </Anchors> | 59 </Anchors> |
82 <Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="29" y="-13"/> | 86 <Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="29" y="-13"/> |
83 </Anchors> | 87 </Anchors> |
84 </Texture>--> | 88 </Texture>--> |
85 </Layer> | 89 </Layer> |
86 <Layer level="OVERLAY"> | 90 <Layer level="OVERLAY"> |
87 | 91 <FontString name="$parentTitle" parentKey="title" inherits="VeneerStatusFont"> |
92 <Anchors> | |
93 <Anchor point="LEFT" /> | |
94 </Anchors> | |
95 </FontString> | |
88 </Layer> | 96 </Layer> |
89 </Layers> | 97 </Layers> |
90 <Frames> | 98 <Frames> |
91 | 99 |
92 <Frame name="$parentXP" parentKey="XPBar" hidden="true"> | 100 <Frame name="$parentXP" parentKey="XPBar" hidden="true"> |
94 <Anchors> | 102 <Anchors> |
95 <Anchor point="TOPLEFT" /> | 103 <Anchor point="TOPLEFT" /> |
96 </Anchors> | 104 </Anchors> |
97 <Layers> | 105 <Layers> |
98 <Layer level="BACKGROUND"> | 106 <Layer level="BACKGROUND"> |
99 <Texture name="$parentBackground" parentKey="bg" setAllPoints="true"/> | 107 <Texture name="$parentBackground" parentKey="background" setAllPoints="true"/> |
100 </Layer> | 108 </Layer> |
101 <Layer level="ARTWORK"> | 109 <Layer level="ARTWORK"> |
102 | 110 |
103 <Texture name="$parentForeground" parentKey="fg"> | 111 <Texture name="$parentForeground" parentKey="foreground"> |
104 <Anchors> | 112 <Anchors> |
105 <Anchor point="TOPLEFT" /> | 113 <Anchor point="TOPLEFT" /> |
106 <Anchor point="BOTTOMLEFT" /> | 114 <Anchor point="BOTTOMLEFT" /> |
107 </Anchors> | 115 </Anchors> |
108 </Texture> | 116 </Texture> |
112 <Anchor point="BOTTOMLEFT" /> | 120 <Anchor point="BOTTOMLEFT" /> |
113 </Anchors> | 121 </Anchors> |
114 </Texture> | 122 </Texture> |
115 </Layer> | 123 </Layer> |
116 <Layer level="OVERLAY"> | 124 <Layer level="OVERLAY"> |
117 <FontString inherits="VeneerFontNormal" parentKey="xpText"> | 125 <FontString inherits="VeneerFontNormal" parentKey="title"> |
118 <Anchors> | 126 <Anchors> |
119 <Anchor point="CENTER" /> | 127 <Anchor point="CENTER" /> |
120 </Anchors> | 128 </Anchors> |
121 </FontString> | 129 </FontString> |
122 </Layer> | 130 </Layer> |
131 </Button> | 139 </Button> |
132 | 140 |
133 <ScrollFrame name="$parentScrollFrame" enableMouseWheel="true" parentKey="scrollArea"> | 141 <ScrollFrame name="$parentScrollFrame" enableMouseWheel="true" parentKey="scrollArea"> |
134 <Layers> | 142 <Layers> |
135 <Layer level="BACKGROUND"> | 143 <Layer level="BACKGROUND"> |
136 <Texture setAllPoints="true"> | 144 <Texture setAllPoints="true" parentKey="bg"> |
137 <Color r="0.15" g=".3" b=".3" a="0" /> | 145 <Color r="0.15" g=".3" b=".3" a="0" /> |
138 </Texture> | 146 </Texture> |
139 </Layer> | 147 </Layer> |
140 </Layers> | 148 </Layers> |
141 <Frames> | 149 <Frames> |
165 <Anchors> | 173 <Anchors> |
166 <Anchor point="TOPLEFT" /> | 174 <Anchor point="TOPLEFT" /> |
167 </Anchors> | 175 </Anchors> |
168 <Layers> | 176 <Layers> |
169 <Layer level="BACKGROUND"> | 177 <Layer level="BACKGROUND"> |
170 <Texture setAllPoints="true"> | 178 <Texture setAllPoints="true" parentKey="bg"> |
171 <Color r="1" g="1" b="1" a="1" /> | 179 <Color r="1" g="1" b="1" a="1" /> |
172 <Gradient orientation="HORIZONTAL"> | 180 <Gradient orientation="HORIZONTAL"> |
173 <MinColor r="0" g="0.5" b="0.5" a="0" /> | 181 <MinColor r="0" g="0.5" b="0.5" a="0" /> |
174 <MaxColor r="0" g="0.5" b="0.5" a="0" /> | 182 <MaxColor r="0" g="0.5" b="0.5" a="0" /> |
175 </Gradient> | 183 </Gradient> |
179 </Frame> | 187 </Frame> |
180 | 188 |
181 <Frame name="VeneerTrackerTemplate" parent="UIParent" virtual="true"> | 189 <Frame name="VeneerTrackerTemplate" parent="UIParent" virtual="true"> |
182 <Layers> | 190 <Layers> |
183 <Layer level="BACKGROUND"> | 191 <Layer level="BACKGROUND"> |
184 <Texture name="$parentHeaderBG" parentKey="headerbg"> | 192 <Texture name="$parentTitleBackground" parentKey="titlebg"> |
185 <Anchors> | 193 <Anchors> |
186 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" /> | 194 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" /> |
187 <Anchor point="RIGHT" relativePoint="RIGHT" /> | 195 <Anchor point="RIGHT" relativePoint="RIGHT" /> |
188 </Anchors> | 196 </Anchors> |
189 <Color r="1" g="1" b="1" a="1" /> | 197 <Color r="1" g="1" b="1" a="1" /> |
192 <MaxColor r="0" g="0" b="0" a="0" /> | 200 <MaxColor r="0" g="0" b="0" a="0" /> |
193 </Gradient> | 201 </Gradient> |
194 </Texture> | 202 </Texture> |
195 </Layer> | 203 </Layer> |
196 <Layer level="OVERLAY"> | 204 <Layer level="OVERLAY"> |
197 <FontString name="$parentHeader" inherits="VeneerFontHighlight" text="OBJ" parentKey="header"> | 205 <FontString name="$parentTitle" inherits="VeneerFontHighlight" text="OBJ" parentKey="title"> |
198 <Anchors> | 206 <Anchors> |
199 <Anchor point="TOPLEFT" /> | 207 <Anchor point="TOPLEFT" /> |
200 </Anchors> | 208 </Anchors> |
201 </FontString> | 209 </FontString> |
202 | |
203 | |
204 </Layer> | 210 </Layer> |
205 </Layers> | 211 </Layers> |
206 </Frame> | 212 </Frame> |
207 | 213 |
208 | 214 |
215 <Color r="1" g="1" b="1" a="1" /> | 221 <Color r="1" g="1" b="1" a="1" /> |
216 <Anchors> | 222 <Anchors> |
217 <Anchor point="TOPLEFT" /> | 223 <Anchor point="TOPLEFT" /> |
218 </Anchors> | 224 </Anchors> |
219 </Texture> | 225 </Texture> |
220 <Texture name="$parentBackground" parentKey="bg"> | 226 <Texture name="$parentStatusBackground" parentKey="statusbg"> |
221 <Anchors> | 227 <Anchors> |
222 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.titlebg" /> | 228 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.titlebg" /> |
223 </Anchors> | 229 </Anchors> |
224 <Color r="1" g="1" b="1" a="1" /> | 230 <Color r="1" g="1" b="1" a="1" /> |
225 <Gradient orientation="HORIZONTAL"> | 231 <Gradient orientation="HORIZONTAL"> |
248 <MinColor r="1" g="1" b="1" a="0" /> | 254 <MinColor r="1" g="1" b="1" a="0" /> |
249 </Gradient> | 255 </Gradient> |
250 </Texture> | 256 </Texture> |
251 <Texture name="$parentLowLight" parentKey="highlight2"> | 257 <Texture name="$parentLowLight" parentKey="highlight2"> |
252 <Anchors> | 258 <Anchors> |
253 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.bg" x="0" y="14" /> | 259 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.statusbg" x="0" y="14" /> |
254 <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeKey="$parent.bg" x="0" y="0"/> | 260 <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeKey="$parent.statusbg" x="0" y="0"/> |
255 <Anchor point="RIGHT" relativePoint="RIGHT" relativeKey="$parent" /> | 261 <Anchor point="RIGHT" relativePoint="RIGHT" relativeKey="$parent" /> |
256 </Anchors> | 262 </Anchors> |
257 <Color r="1" g="1" b="1" a="1" /> | 263 <Color r="1" g="1" b="1" a="1" /> |
258 <Gradient orientation="VERTICAL"> | 264 <Gradient orientation="VERTICAL"> |
259 <MaxColor r="1" g="1" b="1" a="0" /> | 265 <MaxColor r="1" g="1" b="1" a="0" /> |
265 <FontString name="$parentTitle" parentKey="title" inherits="VeneerFontHighlight" justifyH="LEFT" justifyV="MIDDLE"> | 271 <FontString name="$parentTitle" parentKey="title" inherits="VeneerFontHighlight" justifyH="LEFT" justifyV="MIDDLE"> |
266 <Anchors> | 272 <Anchors> |
267 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.titlebg" /> | 273 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.titlebg" /> |
268 </Anchors> | 274 </Anchors> |
269 </FontString> | 275 </FontString> |
270 <FontString name="$parentLeaderBoard" parentKey="objectives" inherits="VeneerFontNormal" justifyH="LEFT" justifyV="MIDDLE" wordwrap="true"> | 276 <FontString name="$parentStatus" parentKey="status" inherits="VeneerFontNormal" justifyH="LEFT" justifyV="MIDDLE" wordwrap="true"> |
271 <Anchors> | 277 <Anchors> |
272 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.bg" x="5" y="0" /> | 278 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.statusbg" x="5" y="0" /> |
273 <Anchor point="RIGHT" relativeKey="$parent" /> | 279 <Anchor point="RIGHT" relativeKey="$parent" /> |
274 </Anchors> | 280 </Anchors> |
275 </FontString> | 281 </FontString> |
276 <FontString name="$parentDebugText" parentKey="debugText" inherits="VeneerCriteriaFontNormal"> | 282 <FontString name="$parentDebugText" parentKey="debugText" inherits="VeneerCriteriaFontNormal"> |
277 <Anchors> | 283 <Anchors> |
286 <Include file="ObjectiveWidgets.xml" /> | 292 <Include file="ObjectiveWidgets.xml" /> |
287 | 293 |
288 <Script file="ObjectiveCore.lua" /> | 294 <Script file="ObjectiveCore.lua" /> |
289 <Script file="ObjectiveInfo.lua" /> | 295 <Script file="ObjectiveInfo.lua" /> |
290 <Script file="ObjectiveUI.lua" /> | 296 <Script file="ObjectiveUI.lua" /> |
297 <Script file="ObjectiveStyle.lua" /> | |
291 <Script file="ObjectiveFrame.lua" /> | 298 <Script file="ObjectiveFrame.lua" /> |
292 <Script file="ObjectiveEvents.lua" /> | 299 <Script file="ObjectiveEvents.lua" /> |
293 </Ui> | 300 </Ui> |