Mercurial > wow > buffalo2
comparison Veneer.xml @ 90:6e2cb847c3c6
Implement a mixin template for the basic visual config widgets.
| author | Nenue |
|---|---|
| date | Mon, 24 Oct 2016 18:28:40 -0400 |
| parents | b107b4df7eb6 |
| children | 3f4794dca91b |
comparison
equal
deleted
inserted
replaced
| 89:74e714637d6a | 90:6e2cb847c3c6 |
|---|---|
| 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/ | 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/ |
| 2 ..\FrameXML\UI.xsd"> | 2 ..\FrameXML\UI.xsd"> |
| 3 | 3 |
| 4 <Script file="Veneer.lua" /> | 4 <Script file="Veneer.lua" /> |
| 5 <Include file="Templates.xml" /> | |
| 5 | 6 |
| 6 <Font name="VeneerFont" /> | |
| 7 | 7 |
| 8 <Font name="VeneerFont_Small" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" /> | |
| 9 | 8 |
| 10 <Font name="VeneerFont_Large" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="24" /> | |
| 11 <Font name="VeneerNumberFontSmall" font="Fonts\ARIALN.ttf" outline="NORMAL" height="12" /> | |
| 12 <Font name="VeneerNumberFont" font="Fonts\ARIALN.ttf" outline="NORMAL" height="14" /> | |
| 13 <Font name="VeneerNumberFontLarge" font="Fonts\ARIALN.ttf" outline="NORMAL" height="24" /> | |
| 14 <Font name="VeneerHeaderFont" font="Fonts\FRIZQT__.TTF" outline="THICK" height="14" /> | |
| 15 <Font name="VeneerHeader2Font" font="Fonts\FRIZQT__.TTF" outline="THICK" height="14"> | |
| 16 <Color a="1" r="1" g="0.4" b="0" /> | |
| 17 </Font> | |
| 18 | 9 |
| 19 <Frame name="VeneerAnimations" virtual="true"> | |
| 20 | 10 |
| 21 <Animations> | |
| 22 <AnimationGroup parentKey="BlockFade" looping="NONE" setToFinalAlpha="false"> | |
| 23 <Alpha parentKey="alpha" order="1" duration="1" fromAlpha="0.5" toAlpha="1" /> | |
| 24 <Scripts> | |
| 25 <OnPlay> | |
| 26 VeneerAnimationMixin.OnPlay(self) | |
| 27 </OnPlay> | |
| 28 </Scripts> | |
| 29 </AnimationGroup> | |
| 30 </Animations> | |
| 31 </Frame> | |
| 32 | 11 |
| 33 <Frame name="VeneerMixinScripts" virtual="true"> | |
| 34 <Scripts> | |
| 35 <OnLoad method="OnLoad" /> | |
| 36 <OnEvent method="OnEvent" /> | |
| 37 <OnUpdate method="OnUpdate" /> | |
| 38 <OnShow method="OnShow" /> | |
| 39 <OnHide method="OnHide" /> | |
| 40 <OnMouseDown method="OnMouseDown" /> | |
| 41 <OnSizeChanged method="OnSizeChanged" /> | |
| 42 </Scripts> | |
| 43 </Frame> | |
| 44 | 12 |
| 45 <Frame name="Veneer" inherits="VeneerMixinScripts" mixin="VeneerCore" hidden="true" enableMouse="true" movable="true" frameStrata="DIALOG"> | 13 <Frame name="Veneer" inherits="VeneerMixinScripts" mixin="VeneerCore" hidden="true" enableMouse="true" movable="true" frameStrata="DIALOG"> |
| 46 <Size x="400" y="400" /> | 14 <Size x="400" y="400" /> |
| 47 <Anchors> | 15 <Anchors> |
| 48 <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" /> | 16 <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" /> |
| 109 </HighlightTexture> | 77 </HighlightTexture> |
| 110 </Button> | 78 </Button> |
| 111 </Frames> | 79 </Frames> |
| 112 </Frame> | 80 </Frame> |
| 113 | 81 |
| 114 <Frame name="VeneerTemplate" virtual="true"> | |
| 115 <Layers> | |
| 116 <Layer level="BORDER"> | |
| 117 <Texture parentKey="bg" setAllPoints="true" parentArray="configLayers" /> | |
| 118 </Layer> | |
| 119 <Layer level="OVERLAY"> | |
| 120 <FontString parentKey="label" inherits="VeneerNumberFontLarge" parentArray="configLayers"> | |
| 121 <Anchors> | |
| 122 <Anchor point="TOPLEFT" /> | |
| 123 </Anchors> | |
| 124 </FontString> | |
| 125 </Layer> | |
| 126 </Layers> | |
| 127 <Frames> | |
| 128 <Button parentKey="resize" parentArray="configLayers"> | |
| 129 <Size x="48" y="16" /> | |
| 130 <Anchors> | |
| 131 <Anchor point="BOTTOMRIGHT" /> | |
| 132 </Anchors> | |
| 133 <NormalTexture setAllPoints="true"> | |
| 134 <Color a="1" r="1" g="1" b="1" /> | |
| 135 </NormalTexture> | |
| 136 <PushedTexture> | |
| 137 <Color a="1" r="1" g="0.5" b="1" /> | |
| 138 </PushedTexture> | |
| 139 </Button> | |
| 140 </Frames> | |
| 141 </Frame> | |
| 142 | |
| 143 | |
| 144 | |
| 145 <Frame name="VeneerStatusBarTemplate" virtual="true" hidden="true" inherits="VeneerMixinScripts"> | |
| 146 <Scripts> | |
| 147 <OnShow> | |
| 148 if self.OnShow then self:OnShow() end | |
| 149 if self.Header:IsVisible() then | |
| 150 self.ProgressBG:ClearAllPoints() | |
| 151 self.ProgressBG:SetPoint('TOP', self.GlowLine, 'BOTTOM', 0, -1) | |
| 152 self.ProgressBG:SetPoint('LEFT') | |
| 153 self.ProgressBG:SetPoint('RIGHT') | |
| 154 self.ProgressBG:SetPoint('BOTTOM') | |
| 155 else | |
| 156 self.ProgressBG:ClearAllPoints() | |
| 157 self.ProgressBG:SetAllPoints(self) | |
| 158 end | |
| 159 </OnShow> | |
| 160 <OnSizeChanged> | |
| 161 </OnSizeChanged> | |
| 162 </Scripts> | |
| 163 <Layers> | |
| 164 <Layer level="BACKGROUND"> | |
| 165 <Texture parentKey="UnderLay"> | |
| 166 | |
| 167 </Texture> | |
| 168 </Layer> | |
| 169 <Layer level="BORDER"> | |
| 170 <Texture parentKey="ProgressBG" setAllPoints="true"> | |
| 171 <Color a=".7" r="0" g="0" b="0" /> | |
| 172 </Texture> | |
| 173 <Texture parentKey="GlowLine" atlas="AftLevelup-GlowLine" useAtlasSize="false"> | |
| 174 <Size y="3" /> | |
| 175 <Anchors> | |
| 176 <Anchor point="TOPLEFT" x="-27" y="-11" /> | |
| 177 <Anchor point="RIGHT" x="27" y="0" /> | |
| 178 </Anchors> | |
| 179 </Texture> | |
| 180 </Layer> | |
| 181 <Layer level="ARTWORK"> | |
| 182 <Texture parentKey="ProgressBar"> | |
| 183 <Anchors> | |
| 184 <Anchor point="BOTTOMLEFT" /> | |
| 185 </Anchors> | |
| 186 <Color a="1" r=".7" g=".7" b=".7" /> | |
| 187 </Texture> | |
| 188 </Layer> | |
| 189 <Layer level="OVERLAY" > | |
| 190 <FontString parentKey="Header" inherits="VeneerNumberFontSmall"> | |
| 191 <Anchors> | |
| 192 <Anchor point="TOP" /> | |
| 193 </Anchors> | |
| 194 </FontString> | |
| 195 <FontString parentKey="Level" inherits="GameFontNormal"> | |
| 196 <Anchors> | |
| 197 <Anchor point="TOP" x="0" y="14" /> | |
| 198 </Anchors> | |
| 199 </FontString> | |
| 200 <FontString parentKey="ProgressText" inherits="VeneerNumberFont"> | |
| 201 <Anchors> | |
| 202 <Anchor point="CENTER" relativeKey="$parent.ProgressBG" /> | |
| 203 </Anchors> | |
| 204 </FontString> | |
| 205 </Layer> | |
| 206 </Layers> | |
| 207 </Frame> | |
| 208 | |
| 209 | |
| 210 | 82 |
| 211 </Ui> | 83 </Ui> |
