diff Modules/WorldState.xml @ 87:27db212af783

- polished position management code; goes something like: - core:Reanchor() to soft fix all anchors - module:Reanchor() or core:InternalReanchor(module) to position a specific set of neighboring frames
author Nenue
date Wed, 19 Oct 2016 16:51:17 -0400
parents 1196b8175674
children b107b4df7eb6
line wrap: on
line diff
--- a/Modules/WorldState.xml	Tue Oct 18 19:53:24 2016 -0400
+++ b/Modules/WorldState.xml	Wed Oct 19 16:51:17 2016 -0400
@@ -57,7 +57,21 @@
 
             <Alpha childKey="Spark" fromAlpha="0" toAlpha="1" duration="0.15" order="1" />
             <Alpha childKey="Spark" fromAlpha="1" toAlpha="0" duration="0.15" order="2" />
-            <Translation childKey="Spark" offsetX="600" offsetY="0" duration="0.30" order="1" />
+            <Translation parentKey="translation" childKey="Spark" offsetX="600" offsetY="0" duration="0.30" order="1" />
+            <Scripts>
+              <OnPlay>
+                self:GetParent().ProgressAdded:Show()
+                self:GetParent().Spark:Show()
+              </OnPlay>
+              <OnStop>
+                self:GetParent().ProgressAdded:Hide()
+                self:GetParent().Spark:Hide()
+              </OnStop>
+              <OnFinished>
+                self:GetParent().ProgressAdded:Hide()
+                self:GetParent().Spark:Hide()
+              </OnFinished>
+            </Scripts>
           </AnimationGroup>
         </Animations>
         <Layers>
@@ -83,24 +97,23 @@
               </Anchors>
               <Color a=".6" r="1" g="0" b=".5" />
             </Texture>
+          </Layer>
+          <Layer level="OVERLAY">
             <Texture parentKey="ProgressAdded" hidden="true">
-
               <Color a="1" r="1" g="1" b="1" />
             </Texture>
-          </Layer>
-          <Layer level="OVERLAY">
+
+            <Texture parentKey="Spark" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineBurst">
+              <Size x="60" y="15"/>
+              <Anchors>
+                <Anchor point="CENTER" relativePoint="LEFT" relativeKey="$parent.ProgressAdded" />
+              </Anchors>
+            </Texture>
             <FontString parentKey="Label" inherits="VeneerNumberFont">
               <Anchors>
                 <Anchor point="CENTER" />
               </Anchors>
             </FontString>
-
-            <Texture parentKey="Spark" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineBurst">
-              <Size x="60" y="15"/>
-              <Anchors>
-                <Anchor point="LEFT" />
-              </Anchors>
-            </Texture>
           </Layer>
         </Layers>
       </Frame>
@@ -131,4 +144,5 @@
     </Frames>
   </Frame>
 
+  <Frame name="VeneerOrderHallHandler" parent="UIParent" mixin="VeneerOrderHallMixin" inherits="VeneerMixinScripts" />
 </Ui>
\ No newline at end of file