view Modules/WorldState.xml @ 91:fe8806a7b6fc v7.1-r91

7.1 TOC
author Nenue
date Tue, 25 Oct 2016 12:27:47 -0400
parents 6e2cb847c3c6
children caded2668701
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" 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')
                self:GetParent().faded = true
              </OnPlay>
              <OnStop>
                --print('VnWorldState', '|cFF44FF00stopped fadeout')
                self:GetParent():Update()
              </OnStop>
              <OnFinished>
                --print('VnWorldState', '|cFFFFFF00end of fadeout')
                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>
              <OnStop>
                self:GetParent():Update()
              </OnStop>
              <OnFinished>
                --print('VnWorldState', '|cFFFFFF00end of fade IN')
                self:GetParent().faded = nil
                self:GetParent().timeLived = 0
              </OnFinished>
            </Scripts>
          </AnimationGroup>
          <AnimationGroup parentKey="TimedFadeOut" setToFinalAlpha="true">
            <Alpha childKey="ProgressText" fromAlpha="1" toAlpha="0" duration="1.12" order="1" />
            <Alpha childKey="Background" fromAlpha="1" toAlpha="0" duration="1.12" order="1" />
          </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" />


            <Alpha childKey="ProgressSpark" fromAlpha="0" toAlpha="1" duration="0.15" order="1" startDelay=".45" />
            <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="BACKGROUND">
            <Texture parentKey="Background" alphaMode="BLEND" file="Interface\LevelUp\BossBanner">
              <Anchors>
                <Anchor point="TOP" />
                <Anchor point="BOTTOM" />
                <Anchor point="LEFT" x="24" y="0" />
                <Anchor point="RIGHT" x="-24" y="0" />
              </Anchors>
              <TexCoords left="0" right="0.8" top="0.45" bottom="0.55" />
            </Texture>
          </Layer>
          <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.75" />
            </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>
          </Layer>
          <Layer level="ARTWORK" textureSubLevel="2">

            <Texture parentKey="OverflowBar" hidden="true">
              <Anchors>
                <Anchor point="BOTTOM" relativeKey="$parent.ProgressBG" />
                <Anchor point="TOP" relativeKey="$parent.ProgressBG" />
              </Anchors>
              <Color a="1" r="0.1" g=".35" b=".85" />
            </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>
            <Texture parentKey="ProgressSpark" atlas="OBJFX_LineBurst">
              <Size x="8" y="12" />
            </Texture>

            <FontString parentKey="Label" inherits="VeneerNumberFont">
              <Anchors>
                <Anchor point="CENTER" />
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
      </Frame>

      <Frame name="$parentZoneCurrency" mixin="VeneerWorldStateCurrencyMixin" hidden="true" inherits="VeneerMixinScripts, VeneerAnimations">
        <Size x="240" y="24" />
        <Anchors>
          <Anchor point="TOP" />
        </Anchors>
        <Layers>
          <Layer level="ARTWORK">
            <Texture parentKey="Icon" >
              <Size x="16" y="16" />
              <Anchors>
                <Anchor point="LEFT" />
              </Anchors>
            </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>