annotate ClassPlan.xml @ 18:08b03bcdfeac

ClassPlan: - Significant load time improvements in the order hall. * Data events are spammed gratuitously at load-in, so any sort of operation that results should be done from a delayed enclosure. In this case: using a self-destructing C_Timer identified by the function handle, and setting a flag that frame scripts can respond to.
author Nenue
date Mon, 24 Oct 2016 18:23:06 -0400
parents 48001b6a9496
children 6016ec3c8adf
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@2 6 <Font name="ClassPlanFont" font="Interface\AddOns\Veneer\Font\ArchivoNarrow-Regular.ttf" height="14" outline="NORMAL" virtual="true" />
Nenue@2 7 <Font name="ClassPlanNumberFont" font="Interface\AddOns\Veneer\Font\ArchivoNarrow-Bold.ttf" height="14" outline="NORMAL" virtual="true" />
Nenue@2 8
Nenue@4 9 <Button name="ClassPlanButton" parent="UIParent" frameStrata="HIGH">
Nenue@4 10 <Size x="600" y="16" />
Nenue@3 11 <Anchors>
Nenue@3 12 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="ClassOrderPlan" />
Nenue@3 13 <Anchor point="LEFT" relativeTo="ClassOrderPlan" />
Nenue@3 14 <Anchor point="RIGHT" relativeTo="ClassOrderPlan" />
Nenue@3 15 </Anchors>
Nenue@3 16 <Layers>
Nenue@4 17 <Layer level="BACKGROUND">
Nenue@4 18 <Texture setAllPoints="true" parentKey="Background" hidden="true">
Nenue@4 19 <Color a="1" r="0" g="0" b="0" />
Nenue@4 20 </Texture>
Nenue@4 21 </Layer>
Nenue@3 22 <Layer level="ARTWORK">
Nenue@4 23
Nenue@6 24 <Texture parentKey="Grip" alphaMode="BLEND" file="Interface\RaidFrame\Raid-Move-Down" hidden="true">
Nenue@3 25 <Anchors>
Nenue@3 26 <Anchor point="TOP" />
Nenue@3 27 </Anchors>
Nenue@3 28 <Size x="32" y="16"/>
Nenue@3 29 </Texture>
Nenue@3 30 </Layer>
Nenue@5 31 <Layer level="OVERLAY">
Nenue@5 32 <FontString parentKey="Label" inherits="ClassPlanFont">
Nenue@5 33 <Anchors>
Nenue@5 34 <Anchor point="BOTTOMLEFT" x="2" y="2" />
Nenue@5 35 </Anchors>
Nenue@5 36 </FontString>
Nenue@5 37 </Layer>
Nenue@3 38 <Layer level="HIGHLIGHT">
Nenue@3 39 <Texture setAllPoints="true" alphaMode="ADD">
Nenue@3 40 <Color a="0.25" r="1" g="1" b="1" />
Nenue@3 41 </Texture>
Nenue@3 42 </Layer>
Nenue@3 43 </Layers>
Nenue@3 44 <Scripts>
Nenue@3 45 <OnClick>
Nenue@3 46 ClassOrderPlan:Toggle()
Nenue@3 47 </OnClick>
Nenue@3 48 </Scripts>
Nenue@3 49 </Button>
Nenue@3 50
Nenue@4 51 <Frame name="ClassOrderPlan" mixin="ClassOrderPlanCore" parent="UIParent" hidden="true">
Nenue@4 52 <Size x="600" y="40" />
Nenue@4 53 <Anchors>
Nenue@4 54 <Anchor point="TOP" />
Nenue@4 55 </Anchors>
Nenue@4 56 <Scripts>
Nenue@4 57 <OnLoad method="OnLoad" />
Nenue@4 58 <OnEvent method="OnEvent" />
Nenue@4 59 <OnShow method="OnShow" />
Nenue@4 60 <OnHide method="OnHide" />
Nenue@18 61 <OnUpdate method="OnUpdate" />
Nenue@4 62 </Scripts>
Nenue@4 63 <Layers>
Nenue@4 64 <Layer level="BACKGROUND">
Nenue@4 65 <Texture parentKey="Background" setAllPoints="true">
Nenue@4 66 <Color a="0.5" r="0" b="0" g="0" />
Nenue@4 67 </Texture>
Nenue@4 68 </Layer>
Nenue@4 69 <Layer level="ARTWORK">
Nenue@4 70 <Texture parentKey="portrait">
Nenue@4 71 <Size x="40" y="40" />
Nenue@4 72 <Anchors>
Nenue@4 73 <Anchor point="TOPLEFT" />
Nenue@4 74
Nenue@4 75 </Anchors>
Nenue@4 76 </Texture>
Nenue@4 77 </Layer>
Nenue@4 78 </Layers>
Nenue@4 79 </Frame>
Nenue@4 80
Nenue@4 81
Nenue@6 82 <Button name="ClassPlanListEntryTemplate" virtual="true" hidden="true">
Nenue@6 83
Nenue@1 84 <Scripts>
Nenue@6 85 <OnLoad>
Nenue@6 86 self.Count = self.Overlay.Count
Nenue@6 87 self.Name = self.Overlay.Name
Nenue@6 88 self.TimeLeft = self.Overlay.TimeLeft
Nenue@6 89 self.Owner = self.Overlay.Owner
Nenue@6 90 </OnLoad>
Nenue@6 91 <OnClick method="OnClick" />
Nenue@1 92 <OnUpdate method="OnUpdate" />
Nenue@1 93 <OnShow method="OnShow" />
Nenue@2 94 <OnEnter method="OnEnter" />
Nenue@2 95 <OnLeave method="OnLeave" />
Nenue@1 96 </Scripts>
Nenue@1 97 <Layers>
Nenue@1 98 <Layer level="BACKGROUND">
Nenue@2 99 <Texture parentKey="Background" setAllPoints="true" />
Nenue@2 100 </Layer>
Nenue@2 101 <Layer level="BACKGROUND" textureSubLevel="1">
Nenue@4 102 <Texture parentKey="Icon" alpha="1" desaturated="true">
Nenue@6 103 <Size x="24" y="24"/>
Nenue@2 104 <Anchors>
Nenue@2 105 <Anchor point="LEFT"/>
Nenue@2 106 </Anchors>
Nenue@4 107 <TexCoords left="0.15" right=".85" top="0.15" bottom="0.85" />
Nenue@2 108 </Texture>
Nenue@6 109
Nenue@6 110 <Texture parentKey="ProgressBG" hidden="true">
Nenue@6 111 <Size y="2" />
Nenue@6 112 <Anchors>
Nenue@6 113 <Anchor point="RIGHT" />
Nenue@6 114 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeKey="$parent.Icon" />
Nenue@6 115 </Anchors>
Nenue@6 116 <Color a="0.5" r="0" g="0" b="0" />
Nenue@6 117 </Texture>
Nenue@2 118 </Layer>
Nenue@2 119 <Layer level="BORDER">
Nenue@6 120 <Texture parentKey="IconBorder" file="Interface\Common\WhiteIconFrame">
Nenue@6 121 <Size x="24" y="24"/>
Nenue@6 122 <Anchors>
Nenue@6 123 <Anchor point="CENTER" relativeKey="$parent.Icon"/>
Nenue@6 124 </Anchors>
Nenue@6 125 </Texture>
Nenue@6 126 <Texture parentKey="ProgressBar" hidden="true">
Nenue@18 127 <Size y="2" />
Nenue@6 128 <Anchors>
Nenue@6 129 <Anchor point="BOTTOMLEFT" relativeKey="$parent.ProgressBG" />
Nenue@6 130 </Anchors>
Nenue@6 131 <Color a="0.5" r="1" g="1" b="1" />
Nenue@6 132 </Texture>
Nenue@6 133 </Layer>
Nenue@6 134 <Layer level="ARTWORK">
Nenue@2 135 <Texture parentKey="Done" atlas="GarrLanding-ShipmentCompleteGlow">
Nenue@5 136 <Size x="24" y="24" />
Nenue@2 137 <Anchors>
Nenue@5 138 <Anchor point="BOTTOMLEFT"/>
Nenue@2 139 </Anchors>
Nenue@2 140 </Texture>
Nenue@2 141 </Layer>
Nenue@1 142 </Layers>
Nenue@2 143 <Frames>
Nenue@4 144 <Cooldown parentKey="Swipe" inherits="CooldownFrameTemplate" reverse="true" hideCountdownNumbers="true">
Nenue@6 145 <Size x="24" y="24"/>
Nenue@2 146 <Anchors>
Nenue@4 147 <Anchor point="TOPLEFT"/>
Nenue@6 148 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="24" y="0" />
Nenue@2 149 </Anchors>
Nenue@2 150 <Scripts>
Nenue@2 151 <OnCooldownStart>
Nenue@2 152 self:Show()
Nenue@2 153 </OnCooldownStart>
Nenue@2 154 <OnCoolDownDone>
Nenue@2 155 -- update via event
Nenue@2 156 C_Garrison.RequestLandingPageShipmentInfo();
Nenue@2 157 </OnCoolDownDone>
Nenue@2 158 </Scripts>
Nenue@2 159 </Cooldown>
Nenue@6 160 <Frame parentKey="Overlay" name="$parentOverlay" setAllPoints="true">
Nenue@6 161 <Layers>
Nenue@6 162 <Layer level="OVERLAY">
Nenue@6 163
Nenue@6 164 <FontString parentKey="Name" inherits="ClassPlanFont" justifyV="TOP" justifyH="CENTER">
Nenue@6 165 <Anchors>
Nenue@6 166 <Anchor point="LEFT" x="26" y="0"/>
Nenue@6 167 </Anchors>
Nenue@6 168 <Color r=".75" g=".75" b=".73"/>
Nenue@6 169 </FontString>
Nenue@6 170 <FontString parentKey="TimeLeft" inherits="ClassPlanFont" justifyH="CENTER">
Nenue@6 171 <Anchors>
Nenue@6 172 <Anchor point="RIGHT" x="-2" y="0"/>
Nenue@6 173 </Anchors>
Nenue@6 174 </FontString>
Nenue@6 175 <FontString parentKey="Count" inherits="WorldPlanFont" justifyH="CENTER">
Nenue@6 176 <Anchors>
Nenue@6 177 <Anchor point="CENTER" relativePoint="LEFT" x="12" y="0"/>
Nenue@6 178 </Anchors>
Nenue@6 179 </FontString>
Nenue@6 180 </Layer>
Nenue@6 181 <Layer level="HIGHLIGHT">
Nenue@6 182
Nenue@6 183 <FontString parentKey="Owner" inherits="WorldPlanFont" text="base text">
Nenue@6 184 <Anchors>
Nenue@6 185 <Anchor point="TOPRIGHT" x="-2" y="-2" />
Nenue@6 186 </Anchors>
Nenue@6 187 </FontString>
Nenue@6 188 </Layer>
Nenue@6 189 </Layers>
Nenue@6 190 </Frame>
Nenue@2 191 </Frames>
Nenue@3 192 </Button>
Nenue@6 193
Nenue@6 194
Nenue@6 195 <Button name="ClassPlanMissionEntry" inherits="ClassPlanListEntryTemplate" mixin="ClassPlanMissionMixin" virtual="true">
Nenue@6 196 <Size x="300" y="24" />
Nenue@6 197 </Button>
Nenue@6 198
Nenue@6 199 <Button name="ClassPlanShipmentEntry" inherits="ClassPlanListEntryTemplate" mixin="ClassPlanShipmentMixin" virtual="true">
Nenue@6 200 <Size x="300" y="24" />
Nenue@6 201 </Button>
Nenue@1 202 </Ui>