Mercurial > wow > buffalo2
comparison Modules/WorldState.xml @ 84:16b300d96724
rewritten using mixin attributes
author | Nenue |
---|---|
date | Tue, 18 Oct 2016 13:07:21 -0400 |
parents | |
children | 1196b8175674 |
comparison
equal
deleted
inserted
replaced
83:4ec4fd89fced | 84:16b300d96724 |
---|---|
1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ | |
2 ..\FrameXML\UI.xsd"> | |
3 | |
4 <Script file="WorldState.lua" /> | |
5 | |
6 <Frame name="VeneerWorldState" mixin="VeneerWorldStateMixin" parent="UIParent" inherits="VeneerMixinScripts"> | |
7 <Anchors> | |
8 <Anchor point="TOP" /> | |
9 </Anchors> | |
10 <Size x="600" y="24" /> | |
11 <Frames> | |
12 <Frame name="$parentProgress" parentKey="Progress" mixin="VeneerWorldStateProgressMixin" inherits="VeneerMixinScripts" enableMouse="true"> | |
13 <Anchors> | |
14 <Anchor point="TOPLEFT" /> | |
15 </Anchors> | |
16 <Animations> | |
17 <AnimationGroup parentKey="TransitionFadeOut" setToFinalAlpha="true"> | |
18 <Alpha fromAlpha="1" toAlpha="0" duration="0.15" order="1" /> | |
19 <Scripts> | |
20 <OnPlay> | |
21 --print('VnWorldState','fade out') | |
22 </OnPlay> | |
23 <OnFinished> | |
24 self:GetParent():Hide() | |
25 self:GetParent():Update() | |
26 </OnFinished> | |
27 </Scripts> | |
28 </AnimationGroup> | |
29 <AnimationGroup parentKey="TransitionFadeIn" setToFinalAlpha="true"> | |
30 <Alpha fromAlpha="0" toAlpha="1" duration="0.15" order="1" /> | |
31 <Scripts> | |
32 <OnPlay> | |
33 self:GetParent():ShowPanel() | |
34 self:GetParent().timeLived = 0 | |
35 --print('VnWorldState', 'fade in') | |
36 </OnPlay> | |
37 <OnFinished> | |
38 self:GetParent().timeLived = 0 | |
39 </OnFinished> | |
40 </Scripts> | |
41 </AnimationGroup> | |
42 <AnimationGroup parentKey="TimedFadeOut" setToFinalAlpha="true"> | |
43 <Alpha fromAlpha="1" toAlpha="0" duration="1.12" order="1" /> | |
44 <Scripts> | |
45 <OnPlay> | |
46 --print('VnWorldState','fade out') | |
47 </OnPlay> | |
48 <OnFinished> | |
49 self:GetParent():HidePanel() | |
50 </OnFinished> | |
51 </Scripts> | |
52 </AnimationGroup> | |
53 | |
54 <AnimationGroup parentKey="ProgressFlash" setToFinalAlpha="true"> | |
55 <Alpha fromAlpha="0" toAlpha="1" duration="0.15" order="1" childKey="ProgressAdded" /> | |
56 <Alpha fromAlpha="1" toAlpha="0" duration="0.45" order="2" childKey="ProgressAdded" /> | |
57 | |
58 <Alpha childKey="Spark" fromAlpha="0" toAlpha="1" duration="0.15" order="1" /> | |
59 <Alpha childKey="Spark" fromAlpha="1" toAlpha="0" duration="0.15" order="2" /> | |
60 <Translation childKey="Spark" offsetX="600" offsetY="0" duration="0.30" order="1" /> | |
61 </AnimationGroup> | |
62 </Animations> | |
63 <Layers> | |
64 <Layer level="BORDER"> | |
65 <Texture parentKey="ProgressBG"> | |
66 <Anchors> | |
67 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" /> | |
68 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="12" /> | |
69 </Anchors> | |
70 <Color r="0" g="0" b="0" a="0.5" /> | |
71 </Texture> | |
72 </Layer> | |
73 <Layer level="ARTWORK"> | |
74 <Texture parentKey="ProgressBar"> | |
75 <Anchors> | |
76 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.ProgressBG" x="0" y="0" /> | |
77 </Anchors> | |
78 <Color r="1" g="1" b="1" a="0.8" /> | |
79 </Texture> | |
80 <Texture parentKey="OverflowBar" hidden="true"> | |
81 <Anchors> | |
82 <Anchor point="BOTTOMLEFT" /> | |
83 </Anchors> | |
84 <Color a=".6" r="1" g="0" b=".5" /> | |
85 </Texture> | |
86 <Texture parentKey="ProgressAdded" hidden="true"> | |
87 | |
88 <Color a="1" r="1" g="1" b="1" /> | |
89 </Texture> | |
90 </Layer> | |
91 <Layer level="OVERLAY"> | |
92 <FontString parentKey="Label" inherits="VeneerNumberFont"> | |
93 <Anchors> | |
94 <Anchor point="CENTER" /> | |
95 </Anchors> | |
96 </FontString> | |
97 | |
98 <Texture parentKey="Spark" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineBurst"> | |
99 <Size x="60" y="15"/> | |
100 <Anchors> | |
101 <Anchor point="LEFT" /> | |
102 </Anchors> | |
103 </Texture> | |
104 </Layer> | |
105 </Layers> | |
106 </Frame> | |
107 | |
108 <Frame name="$parentZoneCurrency" parentKey="ZoneCurrency" mixin="VeneerWorldStateCurrencyMixin" hidden="true" inherits="VeneerMixinScripts"> | |
109 <Anchors> | |
110 <Anchor point="TOPRIGHT" /> | |
111 </Anchors> | |
112 <Layers> | |
113 <Layer level="ARTWORK"> | |
114 <Texture parentKey="Icon" > | |
115 <Size x="24" y="24" /> | |
116 <Anchors> | |
117 <Anchor point="LEFT" /> | |
118 </Anchors> | |
119 <TexCoords left="0.15" right="0.85" top="0.15" bottom="0.85" /> | |
120 </Texture> | |
121 </Layer> | |
122 <Layer level="OVERLAY"> | |
123 <FontString parentKey="Label" inherits="VeneerNumberFont"> | |
124 <Anchors> | |
125 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.Icon" x="2" y="0" /> | |
126 </Anchors> | |
127 </FontString> | |
128 </Layer> | |
129 </Layers> | |
130 </Frame> | |
131 </Frames> | |
132 </Frame> | |
133 | |
134 </Ui> |