diff Modules/WorldState.xml @ 84:16b300d96724

rewritten using mixin attributes
author Nenue
date Tue, 18 Oct 2016 13:07:21 -0400
parents
children 1196b8175674
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Modules/WorldState.xml	Tue Oct 18 13:07:21 2016 -0400
@@ -0,0 +1,134 @@
+<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/
+..\FrameXML\UI.xsd">
+
+  <Script file="WorldState.lua" />
+
+  <Frame name="VeneerWorldState" mixin="VeneerWorldStateMixin" parent="UIParent" inherits="VeneerMixinScripts">
+    <Anchors>
+      <Anchor point="TOP" />
+    </Anchors>
+    <Size x="600" y="24" />
+    <Frames>
+      <Frame name="$parentProgress" parentKey="Progress" mixin="VeneerWorldStateProgressMixin" inherits="VeneerMixinScripts" enableMouse="true">
+        <Anchors>
+          <Anchor point="TOPLEFT" />
+        </Anchors>
+        <Animations>
+          <AnimationGroup parentKey="TransitionFadeOut" setToFinalAlpha="true">
+            <Alpha fromAlpha="1" toAlpha="0" duration="0.15" order="1" />
+            <Scripts>
+              <OnPlay>
+                --print('VnWorldState','fade out')
+              </OnPlay>
+              <OnFinished>
+                self:GetParent():Hide()
+                self:GetParent():Update()
+              </OnFinished>
+            </Scripts>
+          </AnimationGroup>
+          <AnimationGroup parentKey="TransitionFadeIn" setToFinalAlpha="true">
+            <Alpha fromAlpha="0" toAlpha="1" duration="0.15" order="1" />
+            <Scripts>
+              <OnPlay>
+                self:GetParent():ShowPanel()
+                self:GetParent().timeLived = 0
+                --print('VnWorldState', 'fade in')
+              </OnPlay>
+              <OnFinished>
+                self:GetParent().timeLived = 0
+              </OnFinished>
+            </Scripts>
+          </AnimationGroup>
+          <AnimationGroup parentKey="TimedFadeOut" setToFinalAlpha="true">
+            <Alpha fromAlpha="1" toAlpha="0" duration="1.12" order="1" />
+            <Scripts>
+              <OnPlay>
+                --print('VnWorldState','fade out')
+              </OnPlay>
+              <OnFinished>
+                self:GetParent():HidePanel()
+              </OnFinished>
+            </Scripts>
+          </AnimationGroup>
+
+          <AnimationGroup parentKey="ProgressFlash" setToFinalAlpha="true">
+            <Alpha fromAlpha="0" toAlpha="1" duration="0.15" order="1" childKey="ProgressAdded" />
+            <Alpha fromAlpha="1" toAlpha="0" duration="0.45" order="2" childKey="ProgressAdded" />
+
+            <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" />
+          </AnimationGroup>
+        </Animations>
+        <Layers>
+          <Layer level="BORDER">
+            <Texture parentKey="ProgressBG">
+              <Anchors>
+                <Anchor point="TOPRIGHT"  relativePoint="TOPRIGHT" />
+                <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="12" />
+              </Anchors>
+              <Color r="0" g="0" b="0" a="0.5" />
+            </Texture>
+          </Layer>
+          <Layer level="ARTWORK">
+            <Texture parentKey="ProgressBar">
+              <Anchors>
+                <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.ProgressBG" x="0" y="0" />
+              </Anchors>
+              <Color r="1" g="1" b="1" a="0.8" />
+            </Texture>
+            <Texture parentKey="OverflowBar" hidden="true">
+              <Anchors>
+                <Anchor point="BOTTOMLEFT" />
+              </Anchors>
+              <Color a=".6" r="1" g="0" b=".5" />
+            </Texture>
+            <Texture parentKey="ProgressAdded" hidden="true">
+
+              <Color a="1" r="1" g="1" b="1" />
+            </Texture>
+          </Layer>
+          <Layer level="OVERLAY">
+            <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>
+
+      <Frame name="$parentZoneCurrency" parentKey="ZoneCurrency" mixin="VeneerWorldStateCurrencyMixin" hidden="true" inherits="VeneerMixinScripts">
+        <Anchors>
+          <Anchor point="TOPRIGHT" />
+        </Anchors>
+        <Layers>
+          <Layer level="ARTWORK">
+            <Texture parentKey="Icon" >
+              <Size x="24" y="24" />
+              <Anchors>
+                <Anchor point="LEFT" />
+              </Anchors>
+              <TexCoords left="0.15" right="0.85" top="0.15" bottom="0.85" />
+            </Texture>
+          </Layer>
+          <Layer level="OVERLAY">
+            <FontString parentKey="Label" inherits="VeneerNumberFont">
+              <Anchors>
+                <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.Icon" x="2" y="0" />
+              </Anchors>
+            </FontString>
+          </Layer>
+        </Layers>
+      </Frame>
+    </Frames>
+  </Frame>
+
+</Ui>
\ No newline at end of file