annotate Veneer.xml @ 76:83b3cdaae6a5

refactor into addons
author Nenue
date Sat, 27 Aug 2016 10:45:05 -0400
parents d9d16e67725c
children bb6b532c5d2f
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@75 162
Nenue@75 163
Nenue@75 164
Nenue@47 165 <Script file="Veneer.lua" />
Nenue@0 166
Nenue@0 167 </Ui>