view Modules/WorldState.xml @ 88:b107b4df7eb6

- core:DynamicReanchor - top-down evaluation of clustered frames - core:InternalReanchor(module) - bottom-up evaluation of target and frames anchored to it
author Nenue
date Thu, 20 Oct 2016 04:08:11 -0400
parents 27db212af783
children 74e714637d6a
line wrap: on
line source
<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, VeneerAnimations">
    <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 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>
          <Layer level="BORDER">
            <Texture parentKey="ProgressBG">
              <Anchors>
                <Anchor point="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>
          </Layer>
          <Layer level="OVERLAY">
            <Texture parentKey="ProgressAdded" hidden="true">
              <Color a="1" r="1" g="1" b="1" />
            </Texture>

            <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>
          </Layer>
        </Layers>
      </Frame>

      <Frame name="$parentZoneCurrency" parentKey="ZoneCurrency" mixin="VeneerWorldStateCurrencyMixin" hidden="true" inherits="VeneerMixinScripts, VeneerAnimations">
        <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>
  <Frame name="VeneerOrderHallHandler" hidden="true" parent="UIParent" mixin="VeneerOrderHallMixin" inherits="VeneerMixinScripts" />

</Ui>