annotate ClassPlan.xml @ 4:4c7e9efec4b5

fix order of operations regarding frame visibility checking
author Nenue
date Mon, 17 Oct 2016 12:59:24 -0400
parents c006ce87a147
children 4e1883842abf
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@4 24 <Texture parentKey="Grip" alphaMode="BLEND" file="Interface\RaidFrame\Raid-Move-Down">
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@3 31 <Layer level="HIGHLIGHT">
Nenue@3 32 <Texture setAllPoints="true" alphaMode="ADD">
Nenue@3 33 <Color a="0.25" r="1" g="1" b="1" />
Nenue@3 34 </Texture>
Nenue@3 35 </Layer>
Nenue@3 36 </Layers>
Nenue@3 37 <Scripts>
Nenue@3 38 <OnClick>
Nenue@3 39 ClassOrderPlan:Toggle()
Nenue@3 40 </OnClick>
Nenue@3 41 </Scripts>
Nenue@3 42 </Button>
Nenue@3 43
Nenue@4 44 <Frame name="ClassOrderPlan" mixin="ClassOrderPlanCore" parent="UIParent" hidden="true">
Nenue@4 45 <Size x="600" y="40" />
Nenue@4 46 <Anchors>
Nenue@4 47 <Anchor point="TOP" />
Nenue@4 48 </Anchors>
Nenue@4 49 <Scripts>
Nenue@4 50 <OnLoad method="OnLoad" />
Nenue@4 51 <OnEvent method="OnEvent" />
Nenue@4 52 <OnShow method="OnShow" />
Nenue@4 53 <OnHide method="OnHide" />
Nenue@4 54 </Scripts>
Nenue@4 55 <Layers>
Nenue@4 56 <Layer level="BACKGROUND">
Nenue@4 57 <Texture parentKey="Background" setAllPoints="true">
Nenue@4 58 <Color a="0.5" r="0" b="0" g="0" />
Nenue@4 59 </Texture>
Nenue@4 60 </Layer>
Nenue@4 61 <Layer level="ARTWORK">
Nenue@4 62 <Texture parentKey="portrait">
Nenue@4 63 <Size x="40" y="40" />
Nenue@4 64 <Anchors>
Nenue@4 65 <Anchor point="TOPLEFT" />
Nenue@4 66
Nenue@4 67 </Anchors>
Nenue@4 68 </Texture>
Nenue@4 69 </Layer>
Nenue@4 70 </Layers>
Nenue@4 71 </Frame>
Nenue@4 72
Nenue@4 73
Nenue@3 74 <Button name="ClassPlanBlock" mixin="ClassPlanBlockMixin" virtual="true" hidden="true">
Nenue@1 75 <Size x="400" y="32" />
Nenue@1 76 <Scripts>
Nenue@1 77 <OnUpdate method="OnUpdate" />
Nenue@1 78 <OnShow method="OnShow" />
Nenue@2 79 <OnEnter method="OnEnter" />
Nenue@2 80 <OnLeave method="OnLeave" />
Nenue@1 81 </Scripts>
Nenue@1 82 <Layers>
Nenue@1 83 <Layer level="BACKGROUND">
Nenue@1 84 <Texture setAllPoints="true" parentKey="Background">
Nenue@1 85 <Color a=".5" r="0" g="0" b="0" />
Nenue@1 86 </Texture>
Nenue@1 87 </Layer>
Nenue@1 88 <Layer level="ARTWORK">
Nenue@1 89 <Texture name="$parentIcon" parentKey="Icon">
Nenue@1 90 <Size x="32" y="32" />
Nenue@1 91 <Anchors>
Nenue@1 92 <Anchor point="TOPLEFT" />
Nenue@1 93 </Anchors>
Nenue@4 94 <TexCoords left="0.15" right=".85" top="0.15" bottom="0.85" />
Nenue@1 95 </Texture>
Nenue@1 96 </Layer>
Nenue@1 97 <Layer level="OVERLAY">
Nenue@2 98 <FontString name="$parentLabel" inherits="ClassPlanFont" parentKey="Label" text="base text">
Nenue@1 99 <Anchors>
Nenue@4 100 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeKey="$parent.Icon" x="4" y="-2" />
Nenue@1 101 </Anchors>
Nenue@1 102 </FontString>
Nenue@2 103 <FontString name="$parentTimeLeft" inherits="ClassPlanNumberFont" parentKey="TimeLeft" text="base text">
Nenue@1 104 <Anchors>
Nenue@1 105 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.Label" x="4" y="-2" />
Nenue@1 106 </Anchors>
Nenue@1 107 </FontString>
Nenue@2 108 </Layer>
Nenue@2 109 <Layer level="HIGHLIGHT">
Nenue@2 110 <Texture setAllPoints="true" alphaMode="ADD">
Nenue@2 111 <Color a="1" r="0.1" g="0.1" b="0.1" />
Nenue@2 112 </Texture>
Nenue@4 113 <FontString name="$parentOwner" inherits="ClassPlanFont" parentKey="Owner" text="base text">
Nenue@4 114 <Anchors>
Nenue@4 115 <Anchor point="TOPRIGHT" x="-2" y="-2" />
Nenue@4 116 </Anchors>
Nenue@4 117 </FontString>
Nenue@2 118 </Layer>
Nenue@2 119 </Layers>
Nenue@3 120 </Button>
Nenue@2 121
Nenue@3 122 <Button name="ClassPlanShipment" mixin="ClassPlanShipmentMixin" virtual="true">
Nenue@2 123 <Scripts>
Nenue@3 124 <OnClick method="OnClick" />
Nenue@2 125 <OnUpdate method="OnUpdate" />
Nenue@2 126 <OnShow method="OnShow" />
Nenue@2 127 <OnEnter method="OnEnter" />
Nenue@2 128 <OnLeave method="OnLeave" />
Nenue@2 129 </Scripts>
Nenue@2 130 <Size x="200" y="32" />
Nenue@2 131 <Layers>
Nenue@2 132 <Layer level="BACKGROUND">
Nenue@2 133 <Texture parentKey="Background" setAllPoints="true" />
Nenue@2 134 </Layer>
Nenue@2 135 <Layer level="BACKGROUND" textureSubLevel="1">
Nenue@4 136 <Texture parentKey="Icon" alpha="1" desaturated="true">
Nenue@4 137 <Size x="32" y="32"/>
Nenue@2 138 <Anchors>
Nenue@2 139 <Anchor point="LEFT"/>
Nenue@2 140 </Anchors>
Nenue@4 141 <TexCoords left="0.15" right=".85" top="0.15" bottom="0.85" />
Nenue@2 142 </Texture>
Nenue@2 143 </Layer>
Nenue@2 144 <Layer level="BORDER">
Nenue@2 145 <Texture parentKey="Done" atlas="GarrLanding-ShipmentCompleteGlow">
Nenue@2 146 <Size x="32" y="32" />
Nenue@2 147 <Anchors>
Nenue@2 148 <Anchor point="LEFT"/>
Nenue@2 149 </Anchors>
Nenue@2 150 </Texture>
Nenue@2 151 </Layer>
Nenue@2 152 <Layer level="ARTWORK">
Nenue@2 153 <FontString parentKey="Name" inherits="ClassPlanFont" justifyV="TOP" justifyH="CENTER">
Nenue@2 154 <Anchors>
Nenue@2 155 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeKey="$parent.Icon" x="2" y="-2"/>
Nenue@2 156 </Anchors>
Nenue@2 157 <Color r=".75" g=".75" b=".73"/>
Nenue@2 158 </FontString>
Nenue@2 159 </Layer>
Nenue@2 160 <Layer level="OVERLAY">
Nenue@2 161 <FontString parentKey="TimeLeft" inherits="ClassPlanFont" justifyH="CENTER">
Nenue@2 162 <Anchors>
Nenue@2 163 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.Name" x="0" y="-2"/>
Nenue@2 164 </Anchors>
Nenue@2 165 </FontString>
Nenue@2 166 <FontString parentKey="Count" inherits="WorldPlanFont" justifyH="CENTER">
Nenue@2 167 <Anchors>
Nenue@2 168 <Anchor point="BOTTOM" relativeKey="$parent.Icon" x="0" y="0"/>
Nenue@2 169 </Anchors>
Nenue@2 170 </FontString>
Nenue@4 171 </Layer>
Nenue@4 172 <Layer level="HIGHLIGHT">
Nenue@4 173
Nenue@2 174 <FontString name="$parentOwner" inherits="WorldPlanFont" parentKey="Owner" text="base text">
Nenue@1 175 <Anchors>
Nenue@4 176 <Anchor point="TOPRIGHT" x="-2" y="-2" />
Nenue@1 177 </Anchors>
Nenue@1 178 </FontString>
Nenue@1 179 </Layer>
Nenue@1 180 </Layers>
Nenue@2 181 <Frames>
Nenue@4 182 <Cooldown parentKey="Swipe" inherits="CooldownFrameTemplate" reverse="true" hideCountdownNumbers="true">
Nenue@2 183 <Size x="32" y="32"/>
Nenue@2 184 <Anchors>
Nenue@4 185 <Anchor point="TOPLEFT"/>
Nenue@4 186 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="32" y="0" />
Nenue@2 187 </Anchors>
Nenue@2 188 <Scripts>
Nenue@2 189 <OnCooldownStart>
Nenue@2 190 self:Show()
Nenue@2 191 </OnCooldownStart>
Nenue@2 192 <OnCoolDownDone>
Nenue@2 193 -- update via event
Nenue@2 194 C_Garrison.RequestLandingPageShipmentInfo();
Nenue@2 195 </OnCoolDownDone>
Nenue@2 196 </Scripts>
Nenue@2 197 </Cooldown>
Nenue@2 198 </Frames>
Nenue@3 199 </Button>
Nenue@1 200 </Ui>