annotate ClassPlan.xml @ 78:fadf00b437fb v1.4.1

- Fixed pins not being removed upon completion - Fixed animation stuttering
author Nenue
date Mon, 10 Apr 2017 13:14:05 -0400
parents 589c444d4837
children b29b35cb8539
rev   line source
Nenue@1 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@1 2 ..\FrameXML\UI.xsd">
Nenue@1 3
Nenue@1 4 <Script file="ClassPlan.lua" />
Nenue@1 5
Nenue@21 6 <Font name="ClassPlanFont" font="Interface\AddOns\WorldPlan\Font\ArchivoNarrow-Regular.ttf" height="14" outline="NORMAL" virtual="true" />
Nenue@21 7 <Font name="ClassPlanNumberFont" font="Interface\AddOns\WorldPlan\Font\ArchivoNarrow-Bold.ttf" height="14" outline="NORMAL" virtual="true" />
Nenue@2 8
Nenue@3 9
Nenue@4 10 <Frame name="ClassOrderPlan" mixin="ClassOrderPlanCore" parent="UIParent" hidden="true">
Nenue@4 11 <Size x="600" y="40" />
Nenue@4 12 <Anchors>
Nenue@4 13 <Anchor point="TOP" />
Nenue@4 14 </Anchors>
Nenue@4 15 <Scripts>
Nenue@4 16 <OnLoad method="OnLoad" />
Nenue@4 17 <OnEvent method="OnEvent" />
Nenue@4 18 <OnShow method="OnShow" />
Nenue@4 19 <OnHide method="OnHide" />
Nenue@18 20 <OnUpdate method="OnUpdate" />
Nenue@40 21 <OnDragStart method="OnDragStart" />
Nenue@40 22 <OnDragStop method="OnDragStop" />
Nenue@4 23 </Scripts>
Nenue@40 24 <Animations>
Nenue@40 25 <AnimationGroup parentKey="FadeIn" setToFinalAlpha="true">
Nenue@40 26 <Alpha parentKey="AlphaFade" fromAlpha="0" toAlpha="1" duration=".3" order="1" />
Nenue@40 27 </AnimationGroup>
Nenue@40 28 <AnimationGroup parentKey="FadeOut">
Nenue@40 29
Nenue@40 30 <Alpha parentKey="AlphaFade" fromAlpha="1" toAlpha="0" duration=".3" order="1" />
Nenue@40 31 </AnimationGroup>
Nenue@40 32 </Animations>
Nenue@4 33 <Layers>
Nenue@4 34 <Layer level="BACKGROUND">
Nenue@40 35 <Texture parentKey="HeaderInset">
Nenue@40 36 <Size y="24" />
Nenue@40 37 <Anchors>
Nenue@40 38 <Anchor point="TOPLEFT" x="0" y="0" />
Nenue@40 39 <Anchor point="RIGHT" x="0" y="0" />
Nenue@40 40 </Anchors>
Nenue@40 41 <Color r="0" g="0" b="0" a="0.5" />
Nenue@4 42 </Texture>
Nenue@4 43 </Layer>
Nenue@4 44 <Layer level="ARTWORK">
Nenue@40 45 <Texture parentKey="ClassStripe">
Nenue@40 46 <Size y="4" />
Nenue@4 47 <Anchors>
Nenue@40 48 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.HeaderInset" x="0" y="-24" />
Nenue@40 49 <Anchor point="RIGHT" />
Nenue@40 50 </Anchors>
Nenue@40 51 <Color a="1" r="0" b="0" g="0" />
Nenue@40 52 </Texture>
Nenue@40 53 <Texture parentKey="BackgroundInset">
Nenue@40 54 <Anchors>
Nenue@40 55 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.ClassStripe" x="0" y="0" />
Nenue@4 56
Nenue@40 57 <Anchor point="BOTTOMRIGHT" />
Nenue@4 58 </Anchors>
Nenue@40 59 <Color a="0.65" r="0" g="0" b="0" />
Nenue@4 60 </Texture>
Nenue@4 61 </Layer>
Nenue@4 62 </Layers>
Nenue@35 63 </Frame>
Nenue@35 64
Nenue@35 65
Nenue@35 66
Nenue@35 67 <Frame name="ClassPlanPanelTemplate" parent="ClassOrderPlan" enableMouse="true" parentArray="Handlers" virtual="true">
Nenue@35 68
Nenue@35 69 <Scripts>
Nenue@35 70 <OnLoad method="OnLoad" />
Nenue@35 71 <OnUpdate method="OnUpdate" />
Nenue@35 72 <OnEvent method="OnEvent" />
Nenue@35 73 <OnShow method="OnShow" />
Nenue@35 74 <OnMouseWheel method="OnMouseWheel" />
Nenue@35 75 </Scripts>
Nenue@32 76 <Frames>
Nenue@40 77 <Button name="$parentTab" parentKey="ListTab" mixin="ClassPlanHeaderMixin">
Nenue@40 78 <Anchors>
Nenue@40 79 <Anchor point="TOPLEFT" />
Nenue@40 80 <Anchor point="RIGHT" />
Nenue@40 81 </Anchors>
Nenue@40 82 <Scripts>
Nenue@40 83 <OnLoad method="OnLoad" />
Nenue@40 84 <OnClick method="OnClick" />
Nenue@40 85 </Scripts>
Nenue@40 86 <Size y="24" />
Nenue@40 87 <Layers>
Nenue@40 88 <Layer level="BACKGROUND">
Nenue@40 89 <Texture parentKey="Background">
Nenue@40 90 <Color a="1" r="0" g="0" b="0" />
Nenue@40 91 </Texture>
Nenue@40 92 </Layer>
Nenue@40 93 <Layer level="OVERLAY">
Nenue@40 94 <FontString parentKey="Label" inherits="ClassPlanFont">
Nenue@40 95 <Anchors>
Nenue@40 96 <Anchor point="CENTER" />
Nenue@40 97 </Anchors>
Nenue@40 98 </FontString>
Nenue@40 99 <FontString parentKey="Count" inherits="ClassPlanFont">
Nenue@40 100 <Anchors>
Nenue@40 101 <Anchor point="LEFT" x="3" y="0" />
Nenue@40 102 </Anchors>
Nenue@40 103 </FontString>
Nenue@40 104 </Layer>
Nenue@40 105 <Layer level="HIGHLIGHT">
Nenue@40 106 <Texture parentKey="Highlight">
Nenue@40 107 <Color a="0.5" r="1" g="1" b="1" />
Nenue@40 108 </Texture>
Nenue@40 109 </Layer>
Nenue@40 110 </Layers>
Nenue@40 111 </Button>
Nenue@35 112 <Frame parentKey="MoreItemsUp" frameStrata="HIGH" hidden="true">
Nenue@35 113 <Size y="24" />
Nenue@35 114 <Anchors>
Nenue@35 115 <Anchor point="TOPLEFT" />
Nenue@35 116 <Anchor point="TOPRIGHT" />
Nenue@35 117 </Anchors>
Nenue@35 118 <Layers>
Nenue@35 119 <Layer level="OVERLAY">
Nenue@35 120 <Texture parentKey="Overlay">
Nenue@35 121 <Color a="1" r="1" g="1" b="1" />
Nenue@35 122 <Gradient orientation="VERTICAL">
Nenue@35 123 <MinColor r="0" g="0" b="0" a="0" />
Nenue@35 124 <MaxColor r="0" g="0" b="0" a="0.5" />
Nenue@35 125 </Gradient>
Nenue@35 126 </Texture>
Nenue@35 127 </Layer>
Nenue@35 128 </Layers>
Nenue@35 129 </Frame>
Nenue@32 130
Nenue@35 131 <Frame parentKey="MoreItemsDown" frameStrata="HIGH" hidden="true">
Nenue@35 132 <Size y="24" />
Nenue@35 133 <Anchors>
Nenue@35 134 <Anchor point="BOTTOMLEFT" />
Nenue@35 135 <Anchor point="BOTTOMRIGHT" />
Nenue@35 136 </Anchors>
Nenue@35 137 <Layers>
Nenue@35 138 <Layer level="OVERLAY">
Nenue@35 139 <Texture parentKey="Overlay">
Nenue@35 140 <Color a="1" r="1" g="1" b="1" />
Nenue@35 141 <Gradient orientation="VERTICAL">
Nenue@35 142 <MinColor r="0" g="0" b="0" a="0.5" />
Nenue@35 143 <MaxColor r="0" g="0" b="0" a="0" />
Nenue@35 144 </Gradient>
Nenue@35 145 </Texture>
Nenue@35 146 </Layer>
Nenue@35 147 </Layers>
Nenue@32 148 </Frame>
Nenue@32 149 </Frames>
Nenue@40 150 <Layers>
Nenue@40 151 <Layer level="OVERLAY">
Nenue@40 152 <FontString parentKey="Count" inherits="ClassPlanFont">
Nenue@40 153 <Anchors>
Nenue@40 154 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="3" />
Nenue@40 155 </Anchors>
Nenue@40 156 </FontString>
Nenue@40 157 </Layer>
Nenue@40 158 </Layers>
Nenue@4 159 </Frame>
Nenue@4 160
Nenue@6 161 <Button name="ClassPlanListEntryTemplate" virtual="true" hidden="true">
Nenue@40 162 <Animations>
Nenue@40 163 <AnimationGroup parentKey="NewBlockFade">
Nenue@40 164 <Scripts>
Nenue@40 165 <OnStop>
Nenue@40 166 self:GetParent():OnAnimFinished()
Nenue@40 167 </OnStop>
Nenue@40 168 <OnFinished>
Nenue@40 169 self:GetParent():OnAnimFinished()
Nenue@40 170 </OnFinished>
Nenue@40 171 </Scripts>
Nenue@40 172 <Alpha parentKey="AlphaFade" duration="0.5" fromAlpha="0" toAlpha="1" order="1" />
Nenue@40 173 </AnimationGroup>
Nenue@40 174 </Animations>
Nenue@1 175 <Scripts>
Nenue@32 176 <OnLoad method="OnLoad" />
Nenue@6 177 <OnClick method="OnClick" />
Nenue@1 178 <OnUpdate method="OnUpdate" />
Nenue@1 179 <OnShow method="OnShow" />
Nenue@2 180 <OnEnter method="OnEnter" />
Nenue@2 181 <OnLeave method="OnLeave" />
Nenue@1 182 </Scripts>
Nenue@1 183 <Layers>
Nenue@1 184 <Layer level="BACKGROUND">
Nenue@2 185 <Texture parentKey="Background" setAllPoints="true" />
Nenue@2 186 </Layer>
Nenue@2 187 <Layer level="BACKGROUND" textureSubLevel="1">
Nenue@4 188 <Texture parentKey="Icon" alpha="1" desaturated="true">
Nenue@6 189 <Size x="24" y="24"/>
Nenue@2 190 <Anchors>
Nenue@2 191 <Anchor point="LEFT"/>
Nenue@2 192 </Anchors>
Nenue@4 193 <TexCoords left="0.15" right=".85" top="0.15" bottom="0.85" />
Nenue@2 194 </Texture>
Nenue@6 195
Nenue@6 196 <Texture parentKey="ProgressBG" hidden="true">
Nenue@6 197 <Size y="2" />
Nenue@6 198 <Anchors>
Nenue@6 199 <Anchor point="RIGHT" />
Nenue@6 200 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeKey="$parent.Icon" />
Nenue@6 201 </Anchors>
Nenue@6 202 <Color a="0.5" r="0" g="0" b="0" />
Nenue@6 203 </Texture>
Nenue@2 204 </Layer>
Nenue@2 205 <Layer level="BORDER">
Nenue@6 206 <Texture parentKey="IconBorder" file="Interface\Common\WhiteIconFrame">
Nenue@6 207 <Size x="24" y="24"/>
Nenue@6 208 <Anchors>
Nenue@6 209 <Anchor point="CENTER" relativeKey="$parent.Icon"/>
Nenue@6 210 </Anchors>
Nenue@6 211 </Texture>
Nenue@6 212 <Texture parentKey="ProgressBar" hidden="true">
Nenue@18 213 <Size y="2" />
Nenue@6 214 <Anchors>
Nenue@6 215 <Anchor point="BOTTOMLEFT" relativeKey="$parent.ProgressBG" />
Nenue@6 216 </Anchors>
Nenue@6 217 <Color a="0.5" r="1" g="1" b="1" />
Nenue@6 218 </Texture>
Nenue@6 219 </Layer>
Nenue@6 220 <Layer level="ARTWORK">
Nenue@40 221 <Texture parentKey="Done" atlas="GarrLanding-ShipmentCompleteGlow" hidden="true">
Nenue@5 222 <Size x="24" y="24" />
Nenue@2 223 <Anchors>
Nenue@5 224 <Anchor point="BOTTOMLEFT"/>
Nenue@2 225 </Anchors>
Nenue@2 226 </Texture>
Nenue@2 227 </Layer>
Nenue@40 228 <Layer level="HIGHLIGHT">
Nenue@40 229
Nenue@40 230 <Texture setAllPoints="true">
Nenue@40 231 <Color a="0.25" r="1" g="1" b="1" />
Nenue@40 232 </Texture>
Nenue@40 233 </Layer>
Nenue@1 234 </Layers>
Nenue@2 235 <Frames>
Nenue@4 236 <Cooldown parentKey="Swipe" inherits="CooldownFrameTemplate" reverse="true" hideCountdownNumbers="true">
Nenue@6 237 <Size x="24" y="24"/>
Nenue@2 238 <Anchors>
Nenue@4 239 <Anchor point="TOPLEFT"/>
Nenue@6 240 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="24" y="0" />
Nenue@2 241 </Anchors>
Nenue@2 242 <Scripts>
Nenue@2 243 <OnCooldownStart>
Nenue@2 244 self:Show()
Nenue@2 245 </OnCooldownStart>
Nenue@2 246 <OnCoolDownDone>
Nenue@2 247 -- update via event
Nenue@2 248 C_Garrison.RequestLandingPageShipmentInfo();
Nenue@2 249 </OnCoolDownDone>
Nenue@2 250 </Scripts>
Nenue@2 251 </Cooldown>
Nenue@6 252 <Frame parentKey="Overlay" name="$parentOverlay" setAllPoints="true">
Nenue@6 253 <Layers>
Nenue@6 254 <Layer level="OVERLAY">
Nenue@6 255
Nenue@6 256 <FontString parentKey="TimeLeft" inherits="ClassPlanFont" justifyH="CENTER">
Nenue@6 257 <Anchors>
Nenue@6 258 <Anchor point="RIGHT" x="-2" y="0"/>
Nenue@6 259 </Anchors>
Nenue@6 260 </FontString>
Nenue@40 261 <FontString parentKey="Name" inherits="ClassPlanFont" justifyV="TOP" wordwrap="false" justifyH="LEFT">
Nenue@40 262 <Anchors>
Nenue@40 263 <Anchor point="LEFT" x="26" y="0"/>
Nenue@40 264 <Anchor point="RIGHT" relativePoint="LEFT" relativeKey="$parent.TimeLeft" x="-4" y="0"/>
Nenue@40 265 </Anchors>
Nenue@40 266 <Color r=".75" g=".75" b=".73"/>
Nenue@40 267 </FontString>
Nenue@6 268 <FontString parentKey="Count" inherits="WorldPlanFont" justifyH="CENTER">
Nenue@6 269 <Anchors>
Nenue@40 270 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" y="1" relativeKey="$parent.$parent.Icon"/>
Nenue@6 271 </Anchors>
Nenue@6 272 </FontString>
Nenue@6 273 </Layer>
Nenue@6 274 <Layer level="HIGHLIGHT">
Nenue@6 275
Nenue@6 276 <FontString parentKey="Owner" inherits="WorldPlanFont" text="base text">
Nenue@6 277 <Anchors>
Nenue@6 278 <Anchor point="TOPRIGHT" x="-2" y="-2" />
Nenue@6 279 </Anchors>
Nenue@6 280 </FontString>
Nenue@6 281 </Layer>
Nenue@6 282 </Layers>
Nenue@6 283 </Frame>
Nenue@2 284 </Frames>
Nenue@3 285 </Button>
Nenue@6 286
Nenue@6 287
Nenue@35 288 <Button name="ClassOrderPlanCharacterButton" virtual="true" parent="ClassOrderPlan" mixin="ClassPlanCharacterButtonMixin" >
Nenue@35 289 <Size x="48" y="48" />
Nenue@35 290 <Scripts>
Nenue@35 291 <OnLoad method="OnLoad" />
Nenue@35 292 <OnEvent method="OnEvent" />
Nenue@35 293 <OnClick method="OnClick" />
Nenue@35 294 <OnEnter method="OnEnter" />
Nenue@35 295 <OnLeave method="OnLeave" />
Nenue@35 296 </Scripts>
Nenue@35 297 <Layers>
Nenue@35 298 <Layer level="ARTWORK">
Nenue@35 299 <Texture parentKey="Icon" file="Interface\Glues\CHARACTERCREATE\UI-CHARACTERCREATE-CLASSES" setAllPoints="true" />
Nenue@35 300 </Layer>
Nenue@35 301 <Layer level="OVERLAY">
Nenue@35 302 <Texture parentKey="SelectGlow" file="Interface\Glues\CHARACTERCREATE\UI-CharacterCreate-Highlights" alphaMode="ADD">
Nenue@35 303 <TexCoords left="0.5" right="1" top="0" bottom="0.5" />
Nenue@35 304 </Texture>
Nenue@35 305 </Layer>
Nenue@40 306 <Layer level="HIGHLIGHT">
Nenue@40 307 <Texture parentKey="HighlightGlow" file="Interface\Glues\CHARACTERCREATE\UI-CharacterCreate-Highlights" alphaMode="ADD" alpha="0.5">
Nenue@40 308 <TexCoords left="0" right="0.5" top="0" bottom="0.5" />
Nenue@40 309 </Texture>
Nenue@40 310 </Layer>
Nenue@35 311 </Layers>
Nenue@6 312 </Button>
Nenue@6 313
Nenue@32 314 <Button name="ClassPlanShipmentEntry" inherits="ClassPlanListEntryTemplate" mixin="ClassPlanShipmentEntryMixin" virtual="true">
Nenue@32 315 <Size y="24" />
Nenue@32 316
Nenue@32 317 <Anchors>
Nenue@32 318 <Anchor point="RIGHT" />
Nenue@32 319 </Anchors>
Nenue@6 320 </Button>
Nenue@1 321 </Ui>