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