annotate Veneer.xml @ 80:bb6b532c5d2f

- added "world state" frame for zone-specific currencies and context-based artifact/experience progress
author Nenue
date Tue, 11 Oct 2016 08:03:41 -0400
parents d9d16e67725c
children 65ec88b30eb8
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@0 3 <Font name="VeneerFont" />
Nenue@0 4
Nenue@0 5 <Font name="VeneerFont_Small" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" />
Nenue@75 6
Nenue@0 7 <Font name="VeneerFont_Large" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="24" />
Nenue@75 8 <Font name="VeneerNumberFontSmall" font="Fonts\ARIALN.ttf" outline="NORMAL" height="12" />
Nenue@61 9 <Font name="VeneerNumberFont" font="Fonts\ARIALN.ttf" outline="NORMAL" height="14" />
Nenue@61 10 <Font name="VeneerNumberFontLarge" font="Fonts\ARIALN.ttf" outline="NORMAL" height="24" />
Nenue@75 11 <Font name="VeneerHeaderFont" font="Fonts\FRIZQT__.TTF" outline="THICK" height="14" />
Nenue@75 12 <Font name="VeneerHeader2Font" font="Fonts\FRIZQT__.TTF" outline="THICK" height="14">
Nenue@75 13 <Color a="1" r="1" g="0.4" b="0" />
Nenue@75 14 </Font>
Nenue@0 15
Nenue@0 16
Nenue@75 17 <Frame name="Veneer" hidden="true" enableMouse="true" movable="true" parent="UIParent" frameStrata="DIALOG">
Nenue@0 18 <Size x="400" y="400" />
Nenue@0 19 <Anchors>
Nenue@0 20 <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" />
Nenue@0 21 </Anchors>
Nenue@0 22 <Scripts>
Nenue@0 23 <OnLoad>
Nenue@62 24 self.DEVIAN_PNAME = 'Veneer'
Nenue@0 25 self:RegisterForDrag('LeftButton')
Nenue@0 26 </OnLoad>
Nenue@0 27 <OnDragStart>
Nenue@0 28 self:StartMoving()
Nenue@0 29 </OnDragStart>
Nenue@0 30 <OnDragStop>
Nenue@0 31 self:StopMovingOrSizing()
Nenue@0 32 </OnDragStop>
Nenue@0 33 </Scripts>
Nenue@0 34 <Layers>
Nenue@0 35 <Layer level="BACKGROUND">
Nenue@0 36 <Texture setAllPoints="true">
Nenue@0 37 <Color r="0" g="0" b="0" a="0.7" />
Nenue@0 38 </Texture>
Nenue@0 39 </Layer>
Nenue@0 40 <Layer level="ARTWORK">
Nenue@0 41 <FontString name="$parentHeader" parentKey="header" inherits="VeneerFontHighlightLarge" text="Veneer">
Nenue@0 42 <Anchors>
Nenue@0 43 <Anchor point="TOPLEFT" x="3" y="-4" />
Nenue@0 44 </Anchors>
Nenue@0 45 </FontString>
Nenue@0 46 </Layer>
Nenue@0 47 </Layers>
Nenue@0 48 <Frames>
Nenue@0 49 <Button name="$parentCloseButton" parentKey="close" text="X">
Nenue@0 50 <ButtonText inherits="SystemFont_Small" />
Nenue@0 51 <Scripts>
Nenue@0 52 <OnClick>
Nenue@0 53 self:GetParent():Close()
Nenue@0 54 </OnClick>
Nenue@0 55 </Scripts>
Nenue@0 56 <Size x="24" y="24" />
Nenue@0 57 <Anchors>
Nenue@0 58 <Anchor point="TOPRIGHT" x="-5" y="-5" />
Nenue@0 59 </Anchors>
Nenue@0 60 <NormalTexture parentKey="normal" setAllPoints="true">
Nenue@0 61 <Color a="1" r="0" g="0" b="0" />
Nenue@0 62 </NormalTexture>
Nenue@0 63 <PushedTexture setAllPoints="true">
Nenue@0 64 <Color a="1" r="1" g="0" b="0" />
Nenue@0 65 </PushedTexture>
Nenue@0 66 <HighlightTexture setAllPoints="true" alphaMode="ADD">
Nenue@0 67 <Color a=".5" r="1" g=".7" b="0.5" />
Nenue@0 68 </HighlightTexture>
Nenue@0 69 </Button>
Nenue@0 70 <Button name="$parentGuidesButton" parentKey="guides" text="Guides">
Nenue@0 71 <ButtonText inherits="SystemFont_Small" />
Nenue@0 72 <Scripts>
Nenue@0 73 <OnClick>
Nenue@0 74 self:GetParent():ToggleGuides(self)
Nenue@0 75 </OnClick>
Nenue@0 76 </Scripts>
Nenue@0 77 <Size x="36" y="24" />
Nenue@0 78 <Anchors>
Nenue@0 79 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentCloseButton" x="-5" y="0" />
Nenue@0 80 </Anchors>
Nenue@0 81 <NormalTexture parentKey="normal" setAllPoints="true">
Nenue@0 82 <Color a="1" r="0" g="0" b="0" />
Nenue@0 83 </NormalTexture>
Nenue@0 84 <PushedTexture setAllPoints="true">
Nenue@0 85 <Color a="1" r="1" g="0" b="0" />
Nenue@0 86 </PushedTexture>
Nenue@0 87 <HighlightTexture setAllPoints="true" alphaMode="ADD">
Nenue@0 88 <Color a=".5" r="1" g=".7" b="0.5" />
Nenue@0 89 </HighlightTexture>
Nenue@0 90 </Button>
Nenue@0 91 </Frames>
Nenue@0 92 </Frame>
Nenue@0 93
Nenue@72 94 <Frame name="VeneerTemplate" virtual="true">
Nenue@72 95 <Layers>
Nenue@74 96 <Layer level="BORDER">
Nenue@72 97 <Texture parentKey="bg" setAllPoints="true" parentArray="configLayers" />
Nenue@72 98 </Layer>
Nenue@72 99 <Layer level="OVERLAY">
Nenue@72 100 <FontString parentKey="label" inherits="VeneerNumberFontLarge" parentArray="configLayers">
Nenue@72 101 <Anchors>
Nenue@72 102 <Anchor point="TOPLEFT" />
Nenue@72 103 </Anchors>
Nenue@72 104 </FontString>
Nenue@72 105 </Layer>
Nenue@72 106 </Layers>
Nenue@72 107 <Frames>
Nenue@72 108 <Button parentKey="resize" parentArray="configLayers">
Nenue@72 109 <Size x="48" y="16" />
Nenue@72 110 <Anchors>
Nenue@72 111 <Anchor point="BOTTOMRIGHT" />
Nenue@72 112 </Anchors>
Nenue@72 113 <NormalTexture setAllPoints="true">
Nenue@72 114 <Color a="1" r="1" g="1" b="1" />
Nenue@72 115 </NormalTexture>
Nenue@72 116 <PushedTexture>
Nenue@72 117 <Color a="1" r="1" g="0.5" b="1" />
Nenue@72 118 </PushedTexture>
Nenue@72 119 </Button>
Nenue@72 120 </Frames>
Nenue@72 121 </Frame>
Nenue@72 122
Nenue@0 123
Nenue@74 124 <Frame name="VeneerBuffTemplate" virtual="true" inherits="VeneerTemplate" hidden="true">
Nenue@73 125 <Scripts>
Nenue@73 126 <OnLoad>
Nenue@73 127 self.duration = self.progress.duration
Nenue@73 128 self.count = self.progress.count
Nenue@73 129 self.border = self.underlay.bg
Nenue@73 130 </OnLoad>
Nenue@73 131 </Scripts>
Nenue@73 132 <Frames>
Nenue@73 133 <Frame name="$parentUnderlay" parentKey="underlay" frameStrata="BACKGROUND">
Nenue@73 134 <Layers>
Nenue@74 135 <Layer level="BORDER">
Nenue@74 136 <Texture parentKey="bg" setAllPoints="true" hidden="true" />
Nenue@73 137 </Layer>
Nenue@73 138 </Layers>
Nenue@73 139 </Frame>
Nenue@73 140 <Cooldown name="$parentCooldown" parentKey="cooldown" inherits="CooldownFrameTemplate" reverse="true" setAllPoints="true">
Nenue@75 141 <EdgeTexture>
Nenue@75 142 <Color a="0" r="0" g="0" b="0" />
Nenue@75 143 </EdgeTexture>
Nenue@73 144 </Cooldown>
Nenue@74 145 <Frame name="$parentProgress" parentKey="progress" frameStrata="MEDIUM">
Nenue@73 146 <Layers>
Nenue@73 147 <Layer level="BACKGROUND">
Nenue@73 148 <Texture parentKey="bg" />
Nenue@73 149 </Layer>
Nenue@73 150 <Layer level="ARTWORK">
Nenue@73 151 <Texture parentKey="fg" />
Nenue@73 152 </Layer>
Nenue@73 153 <Layer level="OVERLAY">
Nenue@74 154 <FontString name="$parentDuration" parentKey="duration" inherits="VeneerNumberFont" />
Nenue@74 155 <FontString name="$parentCount" parentKey="count" inherits="VeneerNumberFontLarge" />
Nenue@73 156 </Layer>
Nenue@73 157 </Layers>
Nenue@73 158 </Frame>
Nenue@73 159 </Frames>
Nenue@73 160 </Frame>
Nenue@73 161
Nenue@80 162 <Frame name="VeneerMixinScripts" virtual="true">
Nenue@80 163 <Scripts>
Nenue@80 164 <OnLoad method="OnLoad" />
Nenue@80 165 <OnEvent method="OnEvent" />
Nenue@80 166 <OnShow method="OnShow" />
Nenue@80 167 </Scripts>
Nenue@80 168 </Frame>
Nenue@75 169
Nenue@80 170 <Frame name="VeneerStatusBarTemplate" virtual="true" hidden="true" inherits="VeneerMixinScripts">
Nenue@80 171 <Scripts>
Nenue@80 172 <OnShow>
Nenue@80 173 if self.OnShow then self:OnShow() end
Nenue@80 174 if self.Header:IsVisible() then
Nenue@80 175 self.ProgressBG:ClearAllPoints()
Nenue@80 176 self.ProgressBG:SetPoint('TOP', self.GlowLine, 'BOTTOM', 0, -1)
Nenue@80 177 self.ProgressBG:SetPoint('LEFT')
Nenue@80 178 self.ProgressBG:SetPoint('RIGHT')
Nenue@80 179 self.ProgressBG:SetPoint('BOTTOM')
Nenue@80 180 else
Nenue@80 181 self.ProgressBG:ClearAllPoints()
Nenue@80 182 self.ProgressBG:SetAllPoints(self)
Nenue@80 183 end
Nenue@80 184 </OnShow>
Nenue@80 185 <OnSizeChanged>
Nenue@80 186 </OnSizeChanged>
Nenue@80 187 </Scripts>
Nenue@80 188 <Layers>
Nenue@80 189 <Layer level="BACKGROUND">
Nenue@80 190 <Texture parentKey="UnderLay">
Nenue@75 191
Nenue@80 192 </Texture>
Nenue@80 193 </Layer>
Nenue@80 194 <Layer level="BORDER">
Nenue@80 195 <Texture parentKey="ProgressBG" setAllPoints="true">
Nenue@80 196 <Color a=".7" r="0" g="0" b="0" />
Nenue@80 197 </Texture>
Nenue@80 198 <Texture parentKey="GlowLine" atlas="AftLevelup-GlowLine" useAtlasSize="false">
Nenue@80 199 <Size y="3" />
Nenue@80 200 <Anchors>
Nenue@80 201 <Anchor point="TOPLEFT" x="-27" y="-11" />
Nenue@80 202 <Anchor point="RIGHT" x="27" y="0" />
Nenue@80 203 </Anchors>
Nenue@80 204 </Texture>
Nenue@80 205 </Layer>
Nenue@80 206 <Layer level="ARTWORK">
Nenue@80 207 <Texture parentKey="ProgressBar">
Nenue@80 208 <Anchors>
Nenue@80 209 <Anchor point="BOTTOMLEFT" />
Nenue@80 210 </Anchors>
Nenue@80 211 <Color a="1" r=".7" g=".7" b=".7" />
Nenue@80 212 </Texture>
Nenue@80 213 </Layer>
Nenue@80 214 <Layer level="OVERLAY" >
Nenue@80 215 <FontString parentKey="Header" inherits="VeneerNumberFontSmall">
Nenue@80 216 <Anchors>
Nenue@80 217 <Anchor point="TOP" />
Nenue@80 218 </Anchors>
Nenue@80 219 </FontString>
Nenue@80 220 <FontString parentKey="Level" inherits="GameFontNormal">
Nenue@80 221 <Anchors>
Nenue@80 222 <Anchor point="TOPLEFT" />
Nenue@80 223 </Anchors>
Nenue@80 224 </FontString>
Nenue@80 225 <FontString parentKey="ProgressText" inherits="VeneerNumberFont">
Nenue@80 226 <Anchors>
Nenue@80 227 <Anchor point="CENTER" relativeKey="$parent.ProgressBG" />
Nenue@80 228 </Anchors>
Nenue@80 229 </FontString>
Nenue@80 230 </Layer>
Nenue@80 231 </Layers>
Nenue@80 232 </Frame>
Nenue@75 233
Nenue@47 234 <Script file="Veneer.lua" />
Nenue@80 235 <Script file="Modules\OrderHall.lua" />
Nenue@80 236
Nenue@80 237 <Frame name="VeneerWorldState" mixin="VeneerWorldStateMixin" parent="UIParent" inherits="VeneerMixinScripts">
Nenue@80 238 <Anchors>
Nenue@80 239 <Anchor point="TOP" />
Nenue@80 240 </Anchors>
Nenue@80 241 <Size x="500" y="24" />
Nenue@80 242 <Frames>
Nenue@80 243 <Frame name="$parentProgress" parentKey="Progress" mixin="VeneerWorldStateProgressMixin" hidden="true" inherits="VeneerMixinScripts">
Nenue@80 244
Nenue@80 245 <Size x="500" y="24" />
Nenue@80 246 <Anchors>
Nenue@80 247 <Anchor point="TOPLEFT" />
Nenue@80 248 </Anchors>
Nenue@80 249 <Layers>
Nenue@80 250 <Layer level="BORDER">
Nenue@80 251 <Texture setAllPoints="true" parentKey="ProgressBG">
Nenue@80 252 <Color r="0" g="0" b="0" a="0.5" />
Nenue@80 253 </Texture>
Nenue@80 254 </Layer>
Nenue@80 255 <Layer level="ARTWORK">
Nenue@80 256 <Texture parentKey="ProgressBar">
Nenue@80 257 <Anchors>
Nenue@80 258 <Anchor point="BOTTOMLEFT" />
Nenue@80 259 </Anchors>
Nenue@80 260 <Color r="1" g="1" b="1" a="0.8" />
Nenue@80 261 </Texture>
Nenue@80 262 </Layer>
Nenue@80 263 <Layer level="OVERLAY">
Nenue@80 264 <FontString parentKey="Label" inherits="VeneerNumberFont">
Nenue@80 265 <Anchors>
Nenue@80 266 <Anchor point="CENTER" />
Nenue@80 267 </Anchors>
Nenue@80 268 </FontString>
Nenue@80 269 </Layer>
Nenue@80 270 </Layers>
Nenue@80 271 </Frame>
Nenue@80 272
Nenue@80 273 <Frame name="$parentZoneCurrency" parentKey="ZoneCurrency" mixin="VeneerWorldStateCurrencyMixin" hidden="true" inherits="VeneerMixinScripts">
Nenue@80 274 <Anchors>
Nenue@80 275 <Anchor point="TOPRIGHT" />
Nenue@80 276 </Anchors>
Nenue@80 277 <Size x="200" y="24" />
Nenue@80 278 <Layers>
Nenue@80 279 <Layer level="ARTWORK">
Nenue@80 280 <Texture parentKey="Icon" >
Nenue@80 281 <Size x="24" y="24" />
Nenue@80 282 <Anchors>
Nenue@80 283 <Anchor point="LEFT" />
Nenue@80 284 </Anchors>
Nenue@80 285 </Texture>
Nenue@80 286 </Layer>
Nenue@80 287 <Layer level="OVERLAY">
Nenue@80 288 <FontString parentKey="Label" inherits="VeneerNumberFont">
Nenue@80 289 <Anchors>
Nenue@80 290 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.Icon" x="2" y="0" />
Nenue@80 291 </Anchors>
Nenue@80 292 </FontString>
Nenue@80 293 </Layer>
Nenue@80 294 </Layers>
Nenue@80 295 </Frame>
Nenue@80 296 </Frames>
Nenue@80 297 </Frame>
Nenue@0 298
Nenue@0 299 </Ui>