annotate ClassPlan.xml @ 5:4e1883842abf

- use of SetShown() for combat visibility toggle
author Nenue
date Tue, 18 Oct 2016 01:50:06 -0400
parents 4c7e9efec4b5
children 48001b6a9496
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@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@4 61 </Scripts>
Nenue@4 62 <Layers>
Nenue@4 63 <Layer level="BACKGROUND">
Nenue@4 64 <Texture parentKey="Background" setAllPoints="true">
Nenue@4 65 <Color a="0.5" r="0" b="0" g="0" />
Nenue@4 66 </Texture>
Nenue@4 67 </Layer>
Nenue@4 68 <Layer level="ARTWORK">
Nenue@4 69 <Texture parentKey="portrait">
Nenue@4 70 <Size x="40" y="40" />
Nenue@4 71 <Anchors>
Nenue@4 72 <Anchor point="TOPLEFT" />
Nenue@4 73
Nenue@4 74 </Anchors>
Nenue@4 75 </Texture>
Nenue@4 76 </Layer>
Nenue@4 77 </Layers>
Nenue@4 78 </Frame>
Nenue@4 79
Nenue@4 80
Nenue@3 81 <Button name="ClassPlanBlock" mixin="ClassPlanBlockMixin" virtual="true" hidden="true">
Nenue@5 82 <Size x="400" y="24" />
Nenue@1 83 <Scripts>
Nenue@1 84 <OnUpdate method="OnUpdate" />
Nenue@1 85 <OnShow method="OnShow" />
Nenue@2 86 <OnEnter method="OnEnter" />
Nenue@2 87 <OnLeave method="OnLeave" />
Nenue@1 88 </Scripts>
Nenue@1 89 <Layers>
Nenue@1 90 <Layer level="BACKGROUND">
Nenue@1 91 <Texture setAllPoints="true" parentKey="Background">
Nenue@1 92 <Color a=".5" r="0" g="0" b="0" />
Nenue@1 93 </Texture>
Nenue@1 94 </Layer>
Nenue@1 95 <Layer level="ARTWORK">
Nenue@1 96 <Texture name="$parentIcon" parentKey="Icon">
Nenue@5 97 <Size x="24" y="24" />
Nenue@1 98 <Anchors>
Nenue@1 99 <Anchor point="TOPLEFT" />
Nenue@1 100 </Anchors>
Nenue@4 101 <TexCoords left="0.15" right=".85" top="0.15" bottom="0.85" />
Nenue@1 102 </Texture>
Nenue@1 103 </Layer>
Nenue@1 104 <Layer level="OVERLAY">
Nenue@5 105 <FontString name="$parentName" inherits="ClassPlanFont" parentKey="Name" text="base text">
Nenue@1 106 <Anchors>
Nenue@5 107 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.Icon" x="4" y="0" />
Nenue@1 108 </Anchors>
Nenue@1 109 </FontString>
Nenue@2 110 <FontString name="$parentTimeLeft" inherits="ClassPlanNumberFont" parentKey="TimeLeft" text="base text">
Nenue@1 111 <Anchors>
Nenue@5 112 <Anchor point="RIGHT" x="-4" y="0" />
Nenue@1 113 </Anchors>
Nenue@1 114 </FontString>
Nenue@2 115 </Layer>
Nenue@2 116 <Layer level="HIGHLIGHT">
Nenue@2 117 <Texture setAllPoints="true" alphaMode="ADD">
Nenue@2 118 <Color a="1" r="0.1" g="0.1" b="0.1" />
Nenue@2 119 </Texture>
Nenue@4 120 <FontString name="$parentOwner" inherits="ClassPlanFont" parentKey="Owner" text="base text">
Nenue@4 121 <Anchors>
Nenue@5 122 <Anchor point="RIGHT" relativePoint="LEFT" x="-4" y="0" relativeKey="$parent.TimeLeft" />
Nenue@4 123 </Anchors>
Nenue@4 124 </FontString>
Nenue@2 125 </Layer>
Nenue@2 126 </Layers>
Nenue@3 127 </Button>
Nenue@2 128
Nenue@3 129 <Button name="ClassPlanShipment" mixin="ClassPlanShipmentMixin" virtual="true">
Nenue@2 130 <Scripts>
Nenue@3 131 <OnClick method="OnClick" />
Nenue@2 132 <OnUpdate method="OnUpdate" />
Nenue@2 133 <OnShow method="OnShow" />
Nenue@2 134 <OnEnter method="OnEnter" />
Nenue@2 135 <OnLeave method="OnLeave" />
Nenue@2 136 </Scripts>
Nenue@2 137 <Size x="200" y="32" />
Nenue@2 138 <Layers>
Nenue@2 139 <Layer level="BACKGROUND">
Nenue@2 140 <Texture parentKey="Background" setAllPoints="true" />
Nenue@2 141 </Layer>
Nenue@2 142 <Layer level="BACKGROUND" textureSubLevel="1">
Nenue@4 143 <Texture parentKey="Icon" alpha="1" desaturated="true">
Nenue@4 144 <Size x="32" y="32"/>
Nenue@2 145 <Anchors>
Nenue@2 146 <Anchor point="LEFT"/>
Nenue@2 147 </Anchors>
Nenue@4 148 <TexCoords left="0.15" right=".85" top="0.15" bottom="0.85" />
Nenue@2 149 </Texture>
Nenue@2 150 </Layer>
Nenue@2 151 <Layer level="BORDER">
Nenue@2 152 <Texture parentKey="Done" atlas="GarrLanding-ShipmentCompleteGlow">
Nenue@5 153 <Size x="24" y="24" />
Nenue@2 154 <Anchors>
Nenue@5 155 <Anchor point="BOTTOMLEFT"/>
Nenue@2 156 </Anchors>
Nenue@2 157 </Texture>
Nenue@2 158 </Layer>
Nenue@2 159 <Layer level="ARTWORK">
Nenue@2 160 <FontString parentKey="Name" inherits="ClassPlanFont" justifyV="TOP" justifyH="CENTER">
Nenue@2 161 <Anchors>
Nenue@2 162 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeKey="$parent.Icon" x="2" y="-2"/>
Nenue@2 163 </Anchors>
Nenue@2 164 <Color r=".75" g=".75" b=".73"/>
Nenue@2 165 </FontString>
Nenue@2 166 </Layer>
Nenue@2 167 <Layer level="OVERLAY">
Nenue@2 168 <FontString parentKey="TimeLeft" inherits="ClassPlanFont" justifyH="CENTER">
Nenue@2 169 <Anchors>
Nenue@2 170 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.Name" x="0" y="-2"/>
Nenue@2 171 </Anchors>
Nenue@2 172 </FontString>
Nenue@2 173 <FontString parentKey="Count" inherits="WorldPlanFont" justifyH="CENTER">
Nenue@2 174 <Anchors>
Nenue@5 175 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon" x="0" y="0"/>
Nenue@2 176 </Anchors>
Nenue@2 177 </FontString>
Nenue@4 178 </Layer>
Nenue@4 179 <Layer level="HIGHLIGHT">
Nenue@4 180
Nenue@2 181 <FontString name="$parentOwner" inherits="WorldPlanFont" parentKey="Owner" text="base text">
Nenue@1 182 <Anchors>
Nenue@4 183 <Anchor point="TOPRIGHT" x="-2" y="-2" />
Nenue@1 184 </Anchors>
Nenue@1 185 </FontString>
Nenue@1 186 </Layer>
Nenue@1 187 </Layers>
Nenue@2 188 <Frames>
Nenue@4 189 <Cooldown parentKey="Swipe" inherits="CooldownFrameTemplate" reverse="true" hideCountdownNumbers="true">
Nenue@2 190 <Size x="32" y="32"/>
Nenue@2 191 <Anchors>
Nenue@4 192 <Anchor point="TOPLEFT"/>
Nenue@4 193 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="32" y="0" />
Nenue@2 194 </Anchors>
Nenue@2 195 <Scripts>
Nenue@2 196 <OnCooldownStart>
Nenue@2 197 self:Show()
Nenue@2 198 </OnCooldownStart>
Nenue@2 199 <OnCoolDownDone>
Nenue@2 200 -- update via event
Nenue@2 201 C_Garrison.RequestLandingPageShipmentInfo();
Nenue@2 202 </OnCoolDownDone>
Nenue@2 203 </Scripts>
Nenue@2 204 </Cooldown>
Nenue@2 205 </Frames>
Nenue@3 206 </Button>
Nenue@1 207 </Ui>