Mercurial > wow > buffalo2
comparison Veneer.xml @ 84:16b300d96724
rewritten using mixin attributes
| author | Nenue |
|---|---|
| date | Tue, 18 Oct 2016 13:07:21 -0400 |
| parents | 4ec4fd89fced |
| children | b107b4df7eb6 |
comparison
equal
deleted
inserted
replaced
| 83:4ec4fd89fced | 84:16b300d96724 |
|---|---|
| 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 | |
| 4 <Script file="Veneer.lua" /> | |
| 5 | |
| 3 <Font name="VeneerFont" /> | 6 <Font name="VeneerFont" /> |
| 4 | 7 |
| 5 <Font name="VeneerFont_Small" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" /> | 8 <Font name="VeneerFont_Small" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" /> |
| 6 | 9 |
| 7 <Font name="VeneerFont_Large" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="24" /> | 10 <Font name="VeneerFont_Large" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="24" /> |
| 12 <Font name="VeneerHeader2Font" font="Fonts\FRIZQT__.TTF" outline="THICK" height="14"> | 15 <Font name="VeneerHeader2Font" font="Fonts\FRIZQT__.TTF" outline="THICK" height="14"> |
| 13 <Color a="1" r="1" g="0.4" b="0" /> | 16 <Color a="1" r="1" g="0.4" b="0" /> |
| 14 </Font> | 17 </Font> |
| 15 | 18 |
| 16 | 19 |
| 17 <Frame name="Veneer" hidden="true" enableMouse="true" movable="true" parent="UIParent" frameStrata="DIALOG"> | 20 <Frame name="VeneerMixinScripts" virtual="true"> |
| 21 <Scripts> | |
| 22 <OnLoad method="OnLoad" /> | |
| 23 <OnEvent method="OnEvent" /> | |
| 24 <OnUpdate method="OnUpdate" /> | |
| 25 <OnShow method="OnShow" /> | |
| 26 <OnHide method="OnHide" /> | |
| 27 <OnMouseDown method="OnMouseDown" /> | |
| 28 <OnSizeChanged method="OnSizeChanged" /> | |
| 29 </Scripts> | |
| 30 </Frame> | |
| 31 | |
| 32 <Frame name="Veneer" inherits="VeneerMixinScripts" mixin="VeneerCore" hidden="true" enableMouse="true" movable="true" frameStrata="DIALOG"> | |
| 18 <Size x="400" y="400" /> | 33 <Size x="400" y="400" /> |
| 19 <Anchors> | 34 <Anchors> |
| 20 <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" /> | 35 <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" /> |
| 21 </Anchors> | 36 </Anchors> |
| 22 <Scripts> | 37 <Scripts> |
| 23 <OnLoad> | 38 <OnDragStart method="OnDragStart" /> |
| 24 self.DEVIAN_PNAME = 'Veneer' | 39 <OnDragStop method="OnDragStop" /> |
| 25 self:RegisterForDrag('LeftButton') | |
| 26 </OnLoad> | |
| 27 <OnDragStart> | |
| 28 self:StartMoving() | |
| 29 </OnDragStart> | |
| 30 <OnDragStop> | |
| 31 self:StopMovingOrSizing() | |
| 32 </OnDragStop> | |
| 33 </Scripts> | 40 </Scripts> |
| 34 <Layers> | 41 <Layers> |
| 35 <Layer level="BACKGROUND"> | 42 <Layer level="BACKGROUND"> |
| 36 <Texture setAllPoints="true"> | 43 <Texture setAllPoints="true"> |
| 37 <Color r="0" g="0" b="0" a="0.7" /> | 44 <Color r="0" g="0" b="0" a="0.7" /> |
| 119 </Button> | 126 </Button> |
| 120 </Frames> | 127 </Frames> |
| 121 </Frame> | 128 </Frame> |
| 122 | 129 |
| 123 | 130 |
| 124 <Frame name="VeneerBuffTemplate" virtual="true" inherits="VeneerTemplate" hidden="true"> | |
| 125 <Scripts> | |
| 126 <OnLoad> | |
| 127 self.duration = self.progress.duration | |
| 128 self.count = self.progress.count | |
| 129 self.border = self.underlay.bg | |
| 130 </OnLoad> | |
| 131 </Scripts> | |
| 132 <Frames> | |
| 133 <Frame name="$parentUnderlay" parentKey="underlay" frameStrata="BACKGROUND"> | |
| 134 <Layers> | |
| 135 <Layer level="BORDER"> | |
| 136 <Texture parentKey="bg" setAllPoints="true" hidden="true" /> | |
| 137 </Layer> | |
| 138 </Layers> | |
| 139 </Frame> | |
| 140 <Cooldown name="$parentCooldown" parentKey="cooldown" inherits="CooldownFrameTemplate" reverse="true" setAllPoints="true"> | |
| 141 <EdgeTexture> | |
| 142 <Color a="0" r="0" g="0" b="0" /> | |
| 143 </EdgeTexture> | |
| 144 </Cooldown> | |
| 145 <Frame name="$parentProgress" parentKey="progress" frameStrata="MEDIUM"> | |
| 146 <Layers> | |
| 147 <Layer level="BACKGROUND"> | |
| 148 <Texture parentKey="bg" /> | |
| 149 </Layer> | |
| 150 <Layer level="ARTWORK"> | |
| 151 <Texture parentKey="fg" /> | |
| 152 </Layer> | |
| 153 <Layer level="OVERLAY"> | |
| 154 <FontString name="$parentDuration" parentKey="duration" inherits="VeneerNumberFont" /> | |
| 155 <FontString name="$parentCount" parentKey="count" inherits="VeneerNumberFontLarge" /> | |
| 156 </Layer> | |
| 157 </Layers> | |
| 158 </Frame> | |
| 159 </Frames> | |
| 160 </Frame> | |
| 161 | |
| 162 <Frame name="VeneerMixinScripts" virtual="true"> | |
| 163 <Scripts> | |
| 164 <OnLoad method="OnLoad" /> | |
| 165 <OnEvent method="OnEvent" /> | |
| 166 <OnUpdate method="OnUpdate" /> | |
| 167 </Scripts> | |
| 168 </Frame> | |
| 169 | 131 |
| 170 <Frame name="VeneerStatusBarTemplate" virtual="true" hidden="true" inherits="VeneerMixinScripts"> | 132 <Frame name="VeneerStatusBarTemplate" virtual="true" hidden="true" inherits="VeneerMixinScripts"> |
| 171 <Scripts> | 133 <Scripts> |
| 172 <OnShow> | 134 <OnShow> |
| 173 if self.OnShow then self:OnShow() end | 135 if self.OnShow then self:OnShow() end |
| 229 </FontString> | 191 </FontString> |
| 230 </Layer> | 192 </Layer> |
| 231 </Layers> | 193 </Layers> |
| 232 </Frame> | 194 </Frame> |
| 233 | 195 |
| 234 <Script file="Veneer.lua" /> | |
| 235 <Script file="Modules\OrderHall.lua" /> | |
| 236 | 196 |
| 237 <Frame name="VeneerWorldState" mixin="VeneerWorldStateMixin" parent="UIParent" inherits="VeneerMixinScripts"> | |
| 238 <Anchors> | |
| 239 <Anchor point="TOP" /> | |
| 240 </Anchors> | |
| 241 <Size x="600" y="24" /> | |
| 242 <Frames> | |
| 243 <Frame name="$parentProgress" parentKey="Progress" mixin="VeneerWorldStateProgressMixin" inherits="VeneerMixinScripts"> | |
| 244 | |
| 245 <Anchors> | |
| 246 <Anchor point="TOPLEFT" /> | |
| 247 </Anchors> | |
| 248 <Layers> | |
| 249 <Layer level="BORDER"> | |
| 250 <Texture setAllPoints="true" parentKey="ProgressBG"> | |
| 251 <Color r="0" g="0" b="0" a="0.5" /> | |
| 252 </Texture> | |
| 253 </Layer> | |
| 254 <Layer level="ARTWORK"> | |
| 255 <Texture parentKey="ProgressBar"> | |
| 256 <Anchors> | |
| 257 <Anchor point="BOTTOMLEFT" /> | |
| 258 </Anchors> | |
| 259 <Color r="1" g="1" b="1" a="0.8" /> | |
| 260 </Texture> | |
| 261 <Texture parentKey="OverflowBar" hidden="true"> | |
| 262 <Anchors> | |
| 263 <Anchor point="BOTTOMLEFT" /> | |
| 264 </Anchors> | |
| 265 <Color a=".6" r="1" g="0" b=".5" /> | |
| 266 </Texture> | |
| 267 <Texture parentKey="ProgressAdded" hidden="true"> | |
| 268 | |
| 269 <Color a="1" r="1" g="1" b="1" /> | |
| 270 </Texture> | |
| 271 </Layer> | |
| 272 <Layer level="OVERLAY"> | |
| 273 <FontString parentKey="Label" inherits="VeneerNumberFont"> | |
| 274 <Anchors> | |
| 275 <Anchor point="CENTER" /> | |
| 276 </Anchors> | |
| 277 </FontString> | |
| 278 </Layer> | |
| 279 </Layers> | |
| 280 <Animations> | |
| 281 <AnimationGroup parentKey="TransitionFadeOut" setToFinalAlpha="true"> | |
| 282 <Alpha fromAlpha="1" toAlpha="0" duration="1.12" order="1" /> | |
| 283 <Scripts> | |
| 284 <OnPlay> | |
| 285 --print('VnWorldState','fade out') | |
| 286 </OnPlay> | |
| 287 <OnFinished> | |
| 288 self:GetParent():Hide() | |
| 289 self:GetParent():Update() | |
| 290 </OnFinished> | |
| 291 </Scripts> | |
| 292 </AnimationGroup> | |
| 293 <AnimationGroup parentKey="TransitionFadeIn" setToFinalAlpha="true"> | |
| 294 <Alpha fromAlpha="0" toAlpha="1" duration="0.15" order="1" /> | |
| 295 <Scripts> | |
| 296 <OnPlay> | |
| 297 self:GetParent():ShowPanel() | |
| 298 self:GetParent().timeLived = 0 | |
| 299 --print('VnWorldState', 'fade in') | |
| 300 </OnPlay> | |
| 301 <OnFinished> | |
| 302 self:GetParent().timeLived = 0 | |
| 303 </OnFinished> | |
| 304 </Scripts> | |
| 305 </AnimationGroup> | |
| 306 <AnimationGroup parentKey="ProgressFlash" setToFinalAlpha="true"> | |
| 307 <Alpha fromAlpha="0" toAlpha="1" duration="0.15" order="1" childKey="ProgressAdded" /> | |
| 308 <Alpha fromAlpha="1" toAlpha="0" duration="0.45" order="2" childKey="ProgressAdded" /> | |
| 309 </AnimationGroup> | |
| 310 </Animations> | |
| 311 </Frame> | |
| 312 | |
| 313 <Frame name="$parentZoneCurrency" parentKey="ZoneCurrency" mixin="VeneerWorldStateCurrencyMixin" hidden="true" inherits="VeneerMixinScripts"> | |
| 314 <Anchors> | |
| 315 <Anchor point="TOPRIGHT" /> | |
| 316 </Anchors> | |
| 317 <Layers> | |
| 318 <Layer level="ARTWORK"> | |
| 319 <Texture parentKey="Icon" > | |
| 320 <Size x="24" y="24" /> | |
| 321 <Anchors> | |
| 322 <Anchor point="LEFT" /> | |
| 323 </Anchors> | |
| 324 </Texture> | |
| 325 </Layer> | |
| 326 <Layer level="OVERLAY"> | |
| 327 <FontString parentKey="Label" inherits="VeneerNumberFont"> | |
| 328 <Anchors> | |
| 329 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.Icon" x="2" y="0" /> | |
| 330 </Anchors> | |
| 331 </FontString> | |
| 332 </Layer> | |
| 333 </Layers> | |
| 334 </Frame> | |
| 335 </Frames> | |
| 336 </Frame> | |
| 337 | 197 |
| 338 </Ui> | 198 </Ui> |
