annotate Modules/WorldState.xml @ 95:43303398d1b9

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