comparison Modules/WorldState.xml @ 89:74e714637d6a

WorldStateProgress fade-in is called for all visibility check falses
author Nenue
date Fri, 21 Oct 2016 18:03:35 -0400
parents b107b4df7eb6
children 6e2cb847c3c6
comparison
equal deleted inserted replaced
88:b107b4df7eb6 89:74e714637d6a
7 <Anchors> 7 <Anchors>
8 <Anchor point="TOP" /> 8 <Anchor point="TOP" />
9 </Anchors> 9 </Anchors>
10 <Size x="600" y="24" /> 10 <Size x="600" y="24" />
11 <Frames> 11 <Frames>
12 <Frame name="$parentProgress" parentKey="Progress" mixin="VeneerWorldStateProgressMixin" inherits="VeneerMixinScripts" enableMouse="true"> 12 <Frame name="$parentProgress" mixin="VeneerWorldStateProgressMixin" inherits="VeneerMixinScripts" enableMouse="true">
13 <Anchors> 13 <Anchors>
14 <Anchor point="TOPLEFT" /> 14 <Anchor point="TOPLEFT" />
15 </Anchors> 15 </Anchors>
16 <Animations> 16 <Animations>
17 <AnimationGroup parentKey="TransitionFadeOut" setToFinalAlpha="true"> 17 <AnimationGroup parentKey="TransitionFadeOut" setToFinalAlpha="true">
18 <Alpha fromAlpha="1" toAlpha="0" duration="0.15" order="1" /> 18 <Alpha fromAlpha="1" toAlpha="0" duration="0.15" order="1" />
19 <Scripts> 19 <Scripts>
20 <OnPlay> 20 <OnPlay>
21 --print('VnWorldState','fade out') 21 --print('VnWorldState','fade out')
22 self:GetParent().faded = true
22 </OnPlay> 23 </OnPlay>
24 <OnStop>
25 print('VnWorldState', '|cFF44FF00stopped fadeout')
26 self:GetParent():Update()
27 </OnStop>
23 <OnFinished> 28 <OnFinished>
29 print('VnWorldState', '|cFFFFFF00end of fadeout')
24 self:GetParent():Hide() 30 self:GetParent():Hide()
25 self:GetParent():Update() 31 self:GetParent():Update()
26 </OnFinished> 32 </OnFinished>
27 </Scripts> 33 </Scripts>
28 </AnimationGroup> 34 </AnimationGroup>
32 <OnPlay> 38 <OnPlay>
33 self:GetParent():ShowPanel() 39 self:GetParent():ShowPanel()
34 self:GetParent().timeLived = 0 40 self:GetParent().timeLived = 0
35 --print('VnWorldState', 'fade in') 41 --print('VnWorldState', 'fade in')
36 </OnPlay> 42 </OnPlay>
43 <OnStop>
44 self:GetParent():Update()
45 </OnStop>
37 <OnFinished> 46 <OnFinished>
47 print('VnWorldState', '|cFFFFFF00end of fade IN')
48 self:GetParent().faded = nil
38 self:GetParent().timeLived = 0 49 self:GetParent().timeLived = 0
39 </OnFinished> 50 </OnFinished>
40 </Scripts> 51 </Scripts>
41 </AnimationGroup> 52 </AnimationGroup>
42 <AnimationGroup parentKey="TimedFadeOut" setToFinalAlpha="true"> 53 <AnimationGroup parentKey="TimedFadeOut" setToFinalAlpha="true">
43 <Alpha fromAlpha="1" toAlpha="0" duration="1.12" order="1" /> 54 <Alpha childKey="ProgressText" fromAlpha="1" toAlpha="0" duration="1.12" order="1" />
44 <Scripts> 55 <Alpha childKey="Background" fromAlpha="1" toAlpha="0" duration="1.12" order="1" />
45 <OnPlay>
46 --print('VnWorldState','fade out')
47 </OnPlay>
48 <OnFinished>
49 self:GetParent():HidePanel()
50 </OnFinished>
51 </Scripts>
52 </AnimationGroup> 56 </AnimationGroup>
53 57
54 <AnimationGroup parentKey="ProgressFlash" setToFinalAlpha="true"> 58 <AnimationGroup parentKey="ProgressFlash" setToFinalAlpha="true">
55 <Alpha fromAlpha="0" toAlpha="1" duration="0.15" order="1" childKey="ProgressAdded" /> 59 <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" /> 60 <Alpha fromAlpha="1" toAlpha="0" duration="0.45" order="2" childKey="ProgressAdded" />
57 61
58 <Alpha childKey="Spark" fromAlpha="0" toAlpha="1" duration="0.15" order="1" /> 62 <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" /> 63 <Alpha childKey="Spark" fromAlpha="1" toAlpha="0" duration="0.15" order="2" />
64
65
66 <Alpha childKey="ProgressSpark" fromAlpha="0" toAlpha="1" duration="0.15" order="1" startDelay=".45" />
60 <Translation parentKey="translation" childKey="Spark" offsetX="600" offsetY="0" duration="0.30" order="1" /> 67 <Translation parentKey="translation" childKey="Spark" offsetX="600" offsetY="0" duration="0.30" order="1" />
61 <Scripts> 68 <Scripts>
62 <OnPlay> 69 <OnPlay>
63 self:GetParent().ProgressAdded:Show() 70 self:GetParent().ProgressAdded:Show()
64 self:GetParent().Spark:Show() 71 self:GetParent().Spark:Show()
73 </OnFinished> 80 </OnFinished>
74 </Scripts> 81 </Scripts>
75 </AnimationGroup> 82 </AnimationGroup>
76 </Animations> 83 </Animations>
77 <Layers> 84 <Layers>
85 <Layer level="BACKGROUND">
86 <Texture parentKey="Background" alphaMode="BLEND" file="Interface\LevelUp\BossBanner">
87 <Anchors>
88 <Anchor point="TOP" />
89 <Anchor point="BOTTOM" />
90 <Anchor point="LEFT" x="24" y="0" />
91 <Anchor point="RIGHT" x="-24" y="0" />
92 </Anchors>
93 <TexCoords left="0" right="0.8" top="0.45" bottom="0.55" />
94 </Texture>
95 </Layer>
78 <Layer level="BORDER"> 96 <Layer level="BORDER">
79 <Texture parentKey="ProgressBG"> 97 <Texture parentKey="ProgressBG">
80 <Anchors> 98 <Anchors>
81 <Anchor point="TOPRIGHT" /> 99 <Anchor point="TOPRIGHT" />
82 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="12" /> 100 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="12" />
83 </Anchors> 101 </Anchors>
84 <Color r="0" g="0" b="0" a="0.5" /> 102 <Color r="0" g="0" b="0" a="0.75" />
85 </Texture> 103 </Texture>
86 </Layer> 104 </Layer>
87 <Layer level="ARTWORK"> 105 <Layer level="ARTWORK">
88 <Texture parentKey="ProgressBar"> 106 <Texture parentKey="ProgressBar">
89 <Anchors> 107 <Anchors>
90 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.ProgressBG" x="0" y="0" /> 108 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.ProgressBG" x="0" y="0" />
91 </Anchors> 109 </Anchors>
92 <Color r="1" g="1" b="1" a="0.8" /> 110 <Color r="1" g="1" b="1" a="0.8" />
93 </Texture> 111 </Texture>
112 </Layer>
113 <Layer level="ARTWORK" textureSubLevel="2">
114
94 <Texture parentKey="OverflowBar" hidden="true"> 115 <Texture parentKey="OverflowBar" hidden="true">
95 <Anchors> 116 <Anchors>
96 <Anchor point="BOTTOMLEFT" /> 117 <Anchor point="BOTTOM" relativeKey="$parent.ProgressBG" />
118 <Anchor point="TOP" relativeKey="$parent.ProgressBG" />
97 </Anchors> 119 </Anchors>
98 <Color a=".6" r="1" g="0" b=".5" /> 120 <Color a="1" r="0.1" g=".35" b=".85" />
99 </Texture> 121 </Texture>
100 </Layer> 122 </Layer>
101 <Layer level="OVERLAY"> 123 <Layer level="OVERLAY">
102 <Texture parentKey="ProgressAdded" hidden="true"> 124 <Texture parentKey="ProgressAdded" hidden="true">
103 <Color a="1" r="1" g="1" b="1" /> 125 <Color a="1" r="1" g="1" b="1" />
107 <Size x="60" y="15"/> 129 <Size x="60" y="15"/>
108 <Anchors> 130 <Anchors>
109 <Anchor point="CENTER" relativePoint="LEFT" relativeKey="$parent.ProgressAdded" /> 131 <Anchor point="CENTER" relativePoint="LEFT" relativeKey="$parent.ProgressAdded" />
110 </Anchors> 132 </Anchors>
111 </Texture> 133 </Texture>
134 <Texture parentKey="ProgressSpark" atlas="OBJFX_LineBurst">
135 <Size x="8" y="12" />
136 </Texture>
137
112 <FontString parentKey="Label" inherits="VeneerNumberFont"> 138 <FontString parentKey="Label" inherits="VeneerNumberFont">
113 <Anchors> 139 <Anchors>
114 <Anchor point="CENTER" /> 140 <Anchor point="CENTER" />
115 </Anchors> 141 </Anchors>
116 </FontString> 142 </FontString>
117 </Layer> 143 </Layer>
118 </Layers> 144 </Layers>
119 </Frame> 145 </Frame>
120 146
121 <Frame name="$parentZoneCurrency" parentKey="ZoneCurrency" mixin="VeneerWorldStateCurrencyMixin" hidden="true" inherits="VeneerMixinScripts, VeneerAnimations"> 147 <Frame name="$parentZoneCurrency" mixin="VeneerWorldStateCurrencyMixin" hidden="true" inherits="VeneerMixinScripts, VeneerAnimations">
148 <Size x="240" y="24" />
122 <Anchors> 149 <Anchors>
123 <Anchor point="TOPRIGHT" /> 150 <Anchor point="TOP" />
124 </Anchors> 151 </Anchors>
125 <Layers> 152 <Layers>
126 <Layer level="ARTWORK"> 153 <Layer level="ARTWORK">
127 <Texture parentKey="Icon" > 154 <Texture parentKey="Icon" >
128 <Size x="24" y="24" /> 155 <Size x="16" y="16" />
129 <Anchors> 156 <Anchors>
130 <Anchor point="LEFT" /> 157 <Anchor point="LEFT" />
131 </Anchors> 158 </Anchors>
132 <TexCoords left="0.15" right="0.85" top="0.15" bottom="0.85" />
133 </Texture> 159 </Texture>
134 </Layer> 160 </Layer>
135 <Layer level="OVERLAY"> 161 <Layer level="OVERLAY">
136 <FontString parentKey="Label" inherits="VeneerNumberFont"> 162 <FontString parentKey="Label" inherits="VeneerNumberFont">
137 <Anchors> 163 <Anchors>