annotate Veneer.xml @ 73:95ed343c3a42

- VeneerBuffTemplate and members
author Nenue
date Tue, 23 Aug 2016 16:15:09 -0400
parents d80db9a9b7e4
children cd6e78091b04
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@0 6 <Font name="VeneerFont_Large" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="24" />
Nenue@61 7 <Font name="VeneerNumberFont" font="Fonts\ARIALN.ttf" outline="NORMAL" height="14" />
Nenue@61 8 <Font name="VeneerNumberFontLarge" font="Fonts\ARIALN.ttf" outline="NORMAL" height="24" />
Nenue@0 9
Nenue@0 10
Nenue@59 11 <Frame name="VeneerController" hidden="true" enableMouse="true" movable="true" parent="UIParent" frameStrata="DIALOG">
Nenue@0 12 <Size x="400" y="400" />
Nenue@0 13 <Anchors>
Nenue@0 14 <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" />
Nenue@0 15 </Anchors>
Nenue@0 16 <Scripts>
Nenue@0 17 <OnLoad>
Nenue@62 18 self.DEVIAN_PNAME = 'Veneer'
Nenue@0 19 self:RegisterForDrag('LeftButton')
Nenue@0 20 </OnLoad>
Nenue@0 21 <OnDragStart>
Nenue@0 22 self:StartMoving()
Nenue@0 23 </OnDragStart>
Nenue@0 24 <OnDragStop>
Nenue@0 25 self:StopMovingOrSizing()
Nenue@0 26 </OnDragStop>
Nenue@0 27 </Scripts>
Nenue@0 28 <Layers>
Nenue@0 29 <Layer level="BACKGROUND">
Nenue@0 30 <Texture setAllPoints="true">
Nenue@0 31 <Color r="0" g="0" b="0" a="0.7" />
Nenue@0 32 </Texture>
Nenue@0 33 </Layer>
Nenue@0 34 <Layer level="ARTWORK">
Nenue@0 35 <FontString name="$parentHeader" parentKey="header" inherits="VeneerFontHighlightLarge" text="Veneer">
Nenue@0 36 <Anchors>
Nenue@0 37 <Anchor point="TOPLEFT" x="3" y="-4" />
Nenue@0 38 </Anchors>
Nenue@0 39 </FontString>
Nenue@0 40 </Layer>
Nenue@0 41 </Layers>
Nenue@0 42 <Frames>
Nenue@0 43 <Button name="$parentCloseButton" parentKey="close" text="X">
Nenue@0 44 <ButtonText inherits="SystemFont_Small" />
Nenue@0 45 <Scripts>
Nenue@0 46 <OnClick>
Nenue@0 47 self:GetParent():Close()
Nenue@0 48 </OnClick>
Nenue@0 49 </Scripts>
Nenue@0 50 <Size x="24" y="24" />
Nenue@0 51 <Anchors>
Nenue@0 52 <Anchor point="TOPRIGHT" x="-5" y="-5" />
Nenue@0 53 </Anchors>
Nenue@0 54 <NormalTexture parentKey="normal" setAllPoints="true">
Nenue@0 55 <Color a="1" r="0" g="0" b="0" />
Nenue@0 56 </NormalTexture>
Nenue@0 57 <PushedTexture setAllPoints="true">
Nenue@0 58 <Color a="1" r="1" g="0" b="0" />
Nenue@0 59 </PushedTexture>
Nenue@0 60 <HighlightTexture setAllPoints="true" alphaMode="ADD">
Nenue@0 61 <Color a=".5" r="1" g=".7" b="0.5" />
Nenue@0 62 </HighlightTexture>
Nenue@0 63 </Button>
Nenue@0 64 <Button name="$parentGuidesButton" parentKey="guides" text="Guides">
Nenue@0 65 <ButtonText inherits="SystemFont_Small" />
Nenue@0 66 <Scripts>
Nenue@0 67 <OnClick>
Nenue@0 68 self:GetParent():ToggleGuides(self)
Nenue@0 69 </OnClick>
Nenue@0 70 </Scripts>
Nenue@0 71 <Size x="36" y="24" />
Nenue@0 72 <Anchors>
Nenue@0 73 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentCloseButton" x="-5" y="0" />
Nenue@0 74 </Anchors>
Nenue@0 75 <NormalTexture parentKey="normal" setAllPoints="true">
Nenue@0 76 <Color a="1" r="0" g="0" b="0" />
Nenue@0 77 </NormalTexture>
Nenue@0 78 <PushedTexture setAllPoints="true">
Nenue@0 79 <Color a="1" r="1" g="0" b="0" />
Nenue@0 80 </PushedTexture>
Nenue@0 81 <HighlightTexture setAllPoints="true" alphaMode="ADD">
Nenue@0 82 <Color a=".5" r="1" g=".7" b="0.5" />
Nenue@0 83 </HighlightTexture>
Nenue@0 84 </Button>
Nenue@0 85 </Frames>
Nenue@0 86 </Frame>
Nenue@0 87
Nenue@72 88 <Frame name="VeneerTemplate" virtual="true">
Nenue@72 89 <Layers>
Nenue@72 90 <Layer level="BACKGROUND">
Nenue@72 91 <Texture parentKey="bg" setAllPoints="true" parentArray="configLayers" />
Nenue@72 92 </Layer>
Nenue@72 93 <Layer level="OVERLAY">
Nenue@72 94 <FontString parentKey="label" inherits="VeneerNumberFontLarge" parentArray="configLayers">
Nenue@72 95 <Anchors>
Nenue@72 96 <Anchor point="TOPLEFT" />
Nenue@72 97 </Anchors>
Nenue@72 98 </FontString>
Nenue@72 99 </Layer>
Nenue@72 100 </Layers>
Nenue@72 101 <Frames>
Nenue@72 102 <Button parentKey="resize" parentArray="configLayers">
Nenue@72 103 <Size x="48" y="16" />
Nenue@72 104 <Anchors>
Nenue@72 105 <Anchor point="BOTTOMRIGHT" />
Nenue@72 106 </Anchors>
Nenue@72 107 <NormalTexture setAllPoints="true">
Nenue@72 108 <Color a="1" r="1" g="1" b="1" />
Nenue@72 109 </NormalTexture>
Nenue@72 110 <PushedTexture>
Nenue@72 111 <Color a="1" r="1" g="0.5" b="1" />
Nenue@72 112 </PushedTexture>
Nenue@72 113 </Button>
Nenue@72 114 </Frames>
Nenue@72 115 </Frame>
Nenue@72 116
Nenue@0 117
Nenue@73 118 <Frame name="VeneerBuffTemplate" virtual="true" inherits="VeneerTemplate">
Nenue@73 119 <Scripts>
Nenue@73 120 <OnLoad>
Nenue@73 121 self.duration = self.progress.duration
Nenue@73 122 self.count = self.progress.count
Nenue@73 123 self.border = self.underlay.bg
Nenue@73 124 </OnLoad>
Nenue@73 125 </Scripts>
Nenue@73 126 <Frames>
Nenue@73 127 <Frame name="$parentUnderlay" parentKey="underlay" frameStrata="BACKGROUND">
Nenue@73 128 <Layers>
Nenue@73 129 <Layer level="BACKGROUND">
Nenue@73 130 <Texture parentKey="bg" setAllPoints="true" />
Nenue@73 131 </Layer>
Nenue@73 132 </Layers>
Nenue@73 133 </Frame>
Nenue@73 134 <Cooldown name="$parentCooldown" parentKey="cooldown" inherits="CooldownFrameTemplate" reverse="true" setAllPoints="true">
Nenue@73 135
Nenue@73 136 </Cooldown>
Nenue@73 137 <Frame name="$parentProgress" parentKey="progress">
Nenue@73 138 <Layers>
Nenue@73 139 <Layer level="BACKGROUND">
Nenue@73 140 <Texture parentKey="bg" />
Nenue@73 141 </Layer>
Nenue@73 142 <Layer level="ARTWORK">
Nenue@73 143 <Texture parentKey="fg" />
Nenue@73 144 </Layer>
Nenue@73 145 <Layer level="OVERLAY">
Nenue@73 146 <FontString parentKey="duration" inherits="VeneerNumberFont" />
Nenue@73 147 <FontString parentKey="count" inherits="VeneerNumberFont" />
Nenue@73 148 </Layer>
Nenue@73 149 </Layers>
Nenue@73 150 </Frame>
Nenue@73 151 </Frames>
Nenue@73 152 </Frame>
Nenue@73 153
Nenue@47 154 <Script file="Veneer.lua" />
Nenue@0 155
Nenue@0 156 </Ui>