Mercurial > wow > buffalo2
comparison Veneer.xml @ 80:bb6b532c5d2f
- added "world state" frame for zone-specific currencies and context-based artifact/experience progress
author | Nenue |
---|---|
date | Tue, 11 Oct 2016 08:03:41 -0400 |
parents | d9d16e67725c |
children | 65ec88b30eb8 |
comparison
equal
deleted
inserted
replaced
79:0784b87f9722 | 80:bb6b532c5d2f |
---|---|
157 </Layers> | 157 </Layers> |
158 </Frame> | 158 </Frame> |
159 </Frames> | 159 </Frames> |
160 </Frame> | 160 </Frame> |
161 | 161 |
162 | 162 <Frame name="VeneerMixinScripts" virtual="true"> |
163 | 163 <Scripts> |
164 <OnLoad method="OnLoad" /> | |
165 <OnEvent method="OnEvent" /> | |
166 <OnShow method="OnShow" /> | |
167 </Scripts> | |
168 </Frame> | |
169 | |
170 <Frame name="VeneerStatusBarTemplate" virtual="true" hidden="true" inherits="VeneerMixinScripts"> | |
171 <Scripts> | |
172 <OnShow> | |
173 if self.OnShow then self:OnShow() end | |
174 if self.Header:IsVisible() then | |
175 self.ProgressBG:ClearAllPoints() | |
176 self.ProgressBG:SetPoint('TOP', self.GlowLine, 'BOTTOM', 0, -1) | |
177 self.ProgressBG:SetPoint('LEFT') | |
178 self.ProgressBG:SetPoint('RIGHT') | |
179 self.ProgressBG:SetPoint('BOTTOM') | |
180 else | |
181 self.ProgressBG:ClearAllPoints() | |
182 self.ProgressBG:SetAllPoints(self) | |
183 end | |
184 </OnShow> | |
185 <OnSizeChanged> | |
186 </OnSizeChanged> | |
187 </Scripts> | |
188 <Layers> | |
189 <Layer level="BACKGROUND"> | |
190 <Texture parentKey="UnderLay"> | |
191 | |
192 </Texture> | |
193 </Layer> | |
194 <Layer level="BORDER"> | |
195 <Texture parentKey="ProgressBG" setAllPoints="true"> | |
196 <Color a=".7" r="0" g="0" b="0" /> | |
197 </Texture> | |
198 <Texture parentKey="GlowLine" atlas="AftLevelup-GlowLine" useAtlasSize="false"> | |
199 <Size y="3" /> | |
200 <Anchors> | |
201 <Anchor point="TOPLEFT" x="-27" y="-11" /> | |
202 <Anchor point="RIGHT" x="27" y="0" /> | |
203 </Anchors> | |
204 </Texture> | |
205 </Layer> | |
206 <Layer level="ARTWORK"> | |
207 <Texture parentKey="ProgressBar"> | |
208 <Anchors> | |
209 <Anchor point="BOTTOMLEFT" /> | |
210 </Anchors> | |
211 <Color a="1" r=".7" g=".7" b=".7" /> | |
212 </Texture> | |
213 </Layer> | |
214 <Layer level="OVERLAY" > | |
215 <FontString parentKey="Header" inherits="VeneerNumberFontSmall"> | |
216 <Anchors> | |
217 <Anchor point="TOP" /> | |
218 </Anchors> | |
219 </FontString> | |
220 <FontString parentKey="Level" inherits="GameFontNormal"> | |
221 <Anchors> | |
222 <Anchor point="TOPLEFT" /> | |
223 </Anchors> | |
224 </FontString> | |
225 <FontString parentKey="ProgressText" inherits="VeneerNumberFont"> | |
226 <Anchors> | |
227 <Anchor point="CENTER" relativeKey="$parent.ProgressBG" /> | |
228 </Anchors> | |
229 </FontString> | |
230 </Layer> | |
231 </Layers> | |
232 </Frame> | |
164 | 233 |
165 <Script file="Veneer.lua" /> | 234 <Script file="Veneer.lua" /> |
235 <Script file="Modules\OrderHall.lua" /> | |
236 | |
237 <Frame name="VeneerWorldState" mixin="VeneerWorldStateMixin" parent="UIParent" inherits="VeneerMixinScripts"> | |
238 <Anchors> | |
239 <Anchor point="TOP" /> | |
240 </Anchors> | |
241 <Size x="500" y="24" /> | |
242 <Frames> | |
243 <Frame name="$parentProgress" parentKey="Progress" mixin="VeneerWorldStateProgressMixin" hidden="true" inherits="VeneerMixinScripts"> | |
244 | |
245 <Size x="500" y="24" /> | |
246 <Anchors> | |
247 <Anchor point="TOPLEFT" /> | |
248 </Anchors> | |
249 <Layers> | |
250 <Layer level="BORDER"> | |
251 <Texture setAllPoints="true" parentKey="ProgressBG"> | |
252 <Color r="0" g="0" b="0" a="0.5" /> | |
253 </Texture> | |
254 </Layer> | |
255 <Layer level="ARTWORK"> | |
256 <Texture parentKey="ProgressBar"> | |
257 <Anchors> | |
258 <Anchor point="BOTTOMLEFT" /> | |
259 </Anchors> | |
260 <Color r="1" g="1" b="1" a="0.8" /> | |
261 </Texture> | |
262 </Layer> | |
263 <Layer level="OVERLAY"> | |
264 <FontString parentKey="Label" inherits="VeneerNumberFont"> | |
265 <Anchors> | |
266 <Anchor point="CENTER" /> | |
267 </Anchors> | |
268 </FontString> | |
269 </Layer> | |
270 </Layers> | |
271 </Frame> | |
272 | |
273 <Frame name="$parentZoneCurrency" parentKey="ZoneCurrency" mixin="VeneerWorldStateCurrencyMixin" hidden="true" inherits="VeneerMixinScripts"> | |
274 <Anchors> | |
275 <Anchor point="TOPRIGHT" /> | |
276 </Anchors> | |
277 <Size x="200" y="24" /> | |
278 <Layers> | |
279 <Layer level="ARTWORK"> | |
280 <Texture parentKey="Icon" > | |
281 <Size x="24" y="24" /> | |
282 <Anchors> | |
283 <Anchor point="LEFT" /> | |
284 </Anchors> | |
285 </Texture> | |
286 </Layer> | |
287 <Layer level="OVERLAY"> | |
288 <FontString parentKey="Label" inherits="VeneerNumberFont"> | |
289 <Anchors> | |
290 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.Icon" x="2" y="0" /> | |
291 </Anchors> | |
292 </FontString> | |
293 </Layer> | |
294 </Layers> | |
295 </Frame> | |
296 </Frames> | |
297 </Frame> | |
166 | 298 |
167 </Ui> | 299 </Ui> |