annotate Veneer.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@47 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@47 2 ..\FrameXML\UI.xsd">
Nenue@84 3
Nenue@84 4 <Script file="Veneer.lua" />
Nenue@84 5
Nenue@0 6 <Font name="VeneerFont" />
Nenue@0 7
Nenue@0 8 <Font name="VeneerFont_Small" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" />
Nenue@75 9
Nenue@0 10 <Font name="VeneerFont_Large" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="24" />
Nenue@75 11 <Font name="VeneerNumberFontSmall" font="Fonts\ARIALN.ttf" outline="NORMAL" height="12" />
Nenue@61 12 <Font name="VeneerNumberFont" font="Fonts\ARIALN.ttf" outline="NORMAL" height="14" />
Nenue@61 13 <Font name="VeneerNumberFontLarge" font="Fonts\ARIALN.ttf" outline="NORMAL" height="24" />
Nenue@75 14 <Font name="VeneerHeaderFont" font="Fonts\FRIZQT__.TTF" outline="THICK" height="14" />
Nenue@75 15 <Font name="VeneerHeader2Font" font="Fonts\FRIZQT__.TTF" outline="THICK" height="14">
Nenue@75 16 <Color a="1" r="1" g="0.4" b="0" />
Nenue@75 17 </Font>
Nenue@0 18
Nenue@88 19 <Frame name="VeneerAnimations" virtual="true">
Nenue@88 20
Nenue@88 21 <Animations>
Nenue@88 22 <AnimationGroup parentKey="BlockFade" looping="NONE" setToFinalAlpha="false">
Nenue@88 23 <Alpha parentKey="alpha" order="1" duration="1" fromAlpha="0.5" toAlpha="1" />
Nenue@88 24 <Scripts>
Nenue@88 25 <OnPlay>
Nenue@88 26 VeneerAnimationMixin.OnPlay(self)
Nenue@88 27 </OnPlay>
Nenue@88 28 </Scripts>
Nenue@88 29 </AnimationGroup>
Nenue@88 30 </Animations>
Nenue@88 31 </Frame>
Nenue@0 32
Nenue@84 33 <Frame name="VeneerMixinScripts" virtual="true">
Nenue@84 34 <Scripts>
Nenue@84 35 <OnLoad method="OnLoad" />
Nenue@84 36 <OnEvent method="OnEvent" />
Nenue@84 37 <OnUpdate method="OnUpdate" />
Nenue@84 38 <OnShow method="OnShow" />
Nenue@84 39 <OnHide method="OnHide" />
Nenue@84 40 <OnMouseDown method="OnMouseDown" />
Nenue@84 41 <OnSizeChanged method="OnSizeChanged" />
Nenue@84 42 </Scripts>
Nenue@84 43 </Frame>
Nenue@84 44
Nenue@84 45 <Frame name="Veneer" inherits="VeneerMixinScripts" mixin="VeneerCore" hidden="true" enableMouse="true" movable="true" frameStrata="DIALOG">
Nenue@0 46 <Size x="400" y="400" />
Nenue@0 47 <Anchors>
Nenue@0 48 <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" />
Nenue@0 49 </Anchors>
Nenue@0 50 <Scripts>
Nenue@84 51 <OnDragStart method="OnDragStart" />
Nenue@84 52 <OnDragStop method="OnDragStop" />
Nenue@0 53 </Scripts>
Nenue@0 54 <Layers>
Nenue@0 55 <Layer level="BACKGROUND">
Nenue@0 56 <Texture setAllPoints="true">
Nenue@0 57 <Color r="0" g="0" b="0" a="0.7" />
Nenue@0 58 </Texture>
Nenue@0 59 </Layer>
Nenue@0 60 <Layer level="ARTWORK">
Nenue@0 61 <FontString name="$parentHeader" parentKey="header" inherits="VeneerFontHighlightLarge" text="Veneer">
Nenue@0 62 <Anchors>
Nenue@0 63 <Anchor point="TOPLEFT" x="3" y="-4" />
Nenue@0 64 </Anchors>
Nenue@0 65 </FontString>
Nenue@0 66 </Layer>
Nenue@0 67 </Layers>
Nenue@0 68 <Frames>
Nenue@0 69 <Button name="$parentCloseButton" parentKey="close" text="X">
Nenue@0 70 <ButtonText inherits="SystemFont_Small" />
Nenue@0 71 <Scripts>
Nenue@0 72 <OnClick>
Nenue@0 73 self:GetParent():Close()
Nenue@0 74 </OnClick>
Nenue@0 75 </Scripts>
Nenue@0 76 <Size x="24" y="24" />
Nenue@0 77 <Anchors>
Nenue@0 78 <Anchor point="TOPRIGHT" x="-5" y="-5" />
Nenue@0 79 </Anchors>
Nenue@0 80 <NormalTexture parentKey="normal" setAllPoints="true">
Nenue@0 81 <Color a="1" r="0" g="0" b="0" />
Nenue@0 82 </NormalTexture>
Nenue@0 83 <PushedTexture setAllPoints="true">
Nenue@0 84 <Color a="1" r="1" g="0" b="0" />
Nenue@0 85 </PushedTexture>
Nenue@0 86 <HighlightTexture setAllPoints="true" alphaMode="ADD">
Nenue@0 87 <Color a=".5" r="1" g=".7" b="0.5" />
Nenue@0 88 </HighlightTexture>
Nenue@0 89 </Button>
Nenue@0 90 <Button name="$parentGuidesButton" parentKey="guides" text="Guides">
Nenue@0 91 <ButtonText inherits="SystemFont_Small" />
Nenue@0 92 <Scripts>
Nenue@0 93 <OnClick>
Nenue@0 94 self:GetParent():ToggleGuides(self)
Nenue@0 95 </OnClick>
Nenue@0 96 </Scripts>
Nenue@0 97 <Size x="36" y="24" />
Nenue@0 98 <Anchors>
Nenue@0 99 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentCloseButton" x="-5" y="0" />
Nenue@0 100 </Anchors>
Nenue@0 101 <NormalTexture parentKey="normal" setAllPoints="true">
Nenue@0 102 <Color a="1" r="0" g="0" b="0" />
Nenue@0 103 </NormalTexture>
Nenue@0 104 <PushedTexture setAllPoints="true">
Nenue@0 105 <Color a="1" r="1" g="0" b="0" />
Nenue@0 106 </PushedTexture>
Nenue@0 107 <HighlightTexture setAllPoints="true" alphaMode="ADD">
Nenue@0 108 <Color a=".5" r="1" g=".7" b="0.5" />
Nenue@0 109 </HighlightTexture>
Nenue@0 110 </Button>
Nenue@0 111 </Frames>
Nenue@0 112 </Frame>
Nenue@0 113
Nenue@72 114 <Frame name="VeneerTemplate" virtual="true">
Nenue@72 115 <Layers>
Nenue@74 116 <Layer level="BORDER">
Nenue@72 117 <Texture parentKey="bg" setAllPoints="true" parentArray="configLayers" />
Nenue@72 118 </Layer>
Nenue@72 119 <Layer level="OVERLAY">
Nenue@72 120 <FontString parentKey="label" inherits="VeneerNumberFontLarge" parentArray="configLayers">
Nenue@72 121 <Anchors>
Nenue@72 122 <Anchor point="TOPLEFT" />
Nenue@72 123 </Anchors>
Nenue@72 124 </FontString>
Nenue@72 125 </Layer>
Nenue@72 126 </Layers>
Nenue@72 127 <Frames>
Nenue@72 128 <Button parentKey="resize" parentArray="configLayers">
Nenue@72 129 <Size x="48" y="16" />
Nenue@72 130 <Anchors>
Nenue@72 131 <Anchor point="BOTTOMRIGHT" />
Nenue@72 132 </Anchors>
Nenue@72 133 <NormalTexture setAllPoints="true">
Nenue@72 134 <Color a="1" r="1" g="1" b="1" />
Nenue@72 135 </NormalTexture>
Nenue@72 136 <PushedTexture>
Nenue@72 137 <Color a="1" r="1" g="0.5" b="1" />
Nenue@72 138 </PushedTexture>
Nenue@72 139 </Button>
Nenue@72 140 </Frames>
Nenue@72 141 </Frame>
Nenue@72 142
Nenue@0 143
Nenue@75 144
Nenue@80 145 <Frame name="VeneerStatusBarTemplate" virtual="true" hidden="true" inherits="VeneerMixinScripts">
Nenue@80 146 <Scripts>
Nenue@80 147 <OnShow>
Nenue@80 148 if self.OnShow then self:OnShow() end
Nenue@80 149 if self.Header:IsVisible() then
Nenue@80 150 self.ProgressBG:ClearAllPoints()
Nenue@80 151 self.ProgressBG:SetPoint('TOP', self.GlowLine, 'BOTTOM', 0, -1)
Nenue@80 152 self.ProgressBG:SetPoint('LEFT')
Nenue@80 153 self.ProgressBG:SetPoint('RIGHT')
Nenue@80 154 self.ProgressBG:SetPoint('BOTTOM')
Nenue@80 155 else
Nenue@80 156 self.ProgressBG:ClearAllPoints()
Nenue@80 157 self.ProgressBG:SetAllPoints(self)
Nenue@80 158 end
Nenue@80 159 </OnShow>
Nenue@80 160 <OnSizeChanged>
Nenue@80 161 </OnSizeChanged>
Nenue@80 162 </Scripts>
Nenue@80 163 <Layers>
Nenue@80 164 <Layer level="BACKGROUND">
Nenue@80 165 <Texture parentKey="UnderLay">
Nenue@75 166
Nenue@80 167 </Texture>
Nenue@80 168 </Layer>
Nenue@80 169 <Layer level="BORDER">
Nenue@80 170 <Texture parentKey="ProgressBG" setAllPoints="true">
Nenue@80 171 <Color a=".7" r="0" g="0" b="0" />
Nenue@80 172 </Texture>
Nenue@80 173 <Texture parentKey="GlowLine" atlas="AftLevelup-GlowLine" useAtlasSize="false">
Nenue@80 174 <Size y="3" />
Nenue@80 175 <Anchors>
Nenue@80 176 <Anchor point="TOPLEFT" x="-27" y="-11" />
Nenue@80 177 <Anchor point="RIGHT" x="27" y="0" />
Nenue@80 178 </Anchors>
Nenue@80 179 </Texture>
Nenue@80 180 </Layer>
Nenue@80 181 <Layer level="ARTWORK">
Nenue@80 182 <Texture parentKey="ProgressBar">
Nenue@80 183 <Anchors>
Nenue@80 184 <Anchor point="BOTTOMLEFT" />
Nenue@80 185 </Anchors>
Nenue@80 186 <Color a="1" r=".7" g=".7" b=".7" />
Nenue@80 187 </Texture>
Nenue@80 188 </Layer>
Nenue@80 189 <Layer level="OVERLAY" >
Nenue@80 190 <FontString parentKey="Header" inherits="VeneerNumberFontSmall">
Nenue@80 191 <Anchors>
Nenue@80 192 <Anchor point="TOP" />
Nenue@80 193 </Anchors>
Nenue@80 194 </FontString>
Nenue@80 195 <FontString parentKey="Level" inherits="GameFontNormal">
Nenue@80 196 <Anchors>
Nenue@81 197 <Anchor point="TOP" x="0" y="14" />
Nenue@80 198 </Anchors>
Nenue@80 199 </FontString>
Nenue@80 200 <FontString parentKey="ProgressText" inherits="VeneerNumberFont">
Nenue@80 201 <Anchors>
Nenue@80 202 <Anchor point="CENTER" relativeKey="$parent.ProgressBG" />
Nenue@80 203 </Anchors>
Nenue@80 204 </FontString>
Nenue@80 205 </Layer>
Nenue@80 206 </Layers>
Nenue@80 207 </Frame>
Nenue@75 208
Nenue@80 209
Nenue@0 210
Nenue@0 211 </Ui>