Mercurial > wow > buffalo2
view Veneer.xml @ 82:be813a9d99c0
- order of operations regarding frame visibility checking
- interaction with WorldPlan OrderHall module
- fancy shmancy transition fades resulting from above
author | Nenue |
---|---|
date | Mon, 17 Oct 2016 13:00:26 -0400 |
parents | 65ec88b30eb8 |
children | 4ec4fd89fced |
line wrap: on
line source
<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/ ..\FrameXML\UI.xsd"> <Font name="VeneerFont" /> <Font name="VeneerFont_Small" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" /> <Font name="VeneerFont_Large" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="24" /> <Font name="VeneerNumberFontSmall" font="Fonts\ARIALN.ttf" outline="NORMAL" height="12" /> <Font name="VeneerNumberFont" font="Fonts\ARIALN.ttf" outline="NORMAL" height="14" /> <Font name="VeneerNumberFontLarge" font="Fonts\ARIALN.ttf" outline="NORMAL" height="24" /> <Font name="VeneerHeaderFont" font="Fonts\FRIZQT__.TTF" outline="THICK" height="14" /> <Font name="VeneerHeader2Font" font="Fonts\FRIZQT__.TTF" outline="THICK" height="14"> <Color a="1" r="1" g="0.4" b="0" /> </Font> <Frame name="Veneer" hidden="true" enableMouse="true" movable="true" parent="UIParent" frameStrata="DIALOG"> <Size x="400" y="400" /> <Anchors> <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" /> </Anchors> <Scripts> <OnLoad> self.DEVIAN_PNAME = 'Veneer' self:RegisterForDrag('LeftButton') </OnLoad> <OnDragStart> self:StartMoving() </OnDragStart> <OnDragStop> self:StopMovingOrSizing() </OnDragStop> </Scripts> <Layers> <Layer level="BACKGROUND"> <Texture setAllPoints="true"> <Color r="0" g="0" b="0" a="0.7" /> </Texture> </Layer> <Layer level="ARTWORK"> <FontString name="$parentHeader" parentKey="header" inherits="VeneerFontHighlightLarge" text="Veneer"> <Anchors> <Anchor point="TOPLEFT" x="3" y="-4" /> </Anchors> </FontString> </Layer> </Layers> <Frames> <Button name="$parentCloseButton" parentKey="close" text="X"> <ButtonText inherits="SystemFont_Small" /> <Scripts> <OnClick> self:GetParent():Close() </OnClick> </Scripts> <Size x="24" y="24" /> <Anchors> <Anchor point="TOPRIGHT" x="-5" y="-5" /> </Anchors> <NormalTexture parentKey="normal" setAllPoints="true"> <Color a="1" r="0" g="0" b="0" /> </NormalTexture> <PushedTexture setAllPoints="true"> <Color a="1" r="1" g="0" b="0" /> </PushedTexture> <HighlightTexture setAllPoints="true" alphaMode="ADD"> <Color a=".5" r="1" g=".7" b="0.5" /> </HighlightTexture> </Button> <Button name="$parentGuidesButton" parentKey="guides" text="Guides"> <ButtonText inherits="SystemFont_Small" /> <Scripts> <OnClick> self:GetParent():ToggleGuides(self) </OnClick> </Scripts> <Size x="36" y="24" /> <Anchors> <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentCloseButton" x="-5" y="0" /> </Anchors> <NormalTexture parentKey="normal" setAllPoints="true"> <Color a="1" r="0" g="0" b="0" /> </NormalTexture> <PushedTexture setAllPoints="true"> <Color a="1" r="1" g="0" b="0" /> </PushedTexture> <HighlightTexture setAllPoints="true" alphaMode="ADD"> <Color a=".5" r="1" g=".7" b="0.5" /> </HighlightTexture> </Button> </Frames> </Frame> <Frame name="VeneerTemplate" virtual="true"> <Layers> <Layer level="BORDER"> <Texture parentKey="bg" setAllPoints="true" parentArray="configLayers" /> </Layer> <Layer level="OVERLAY"> <FontString parentKey="label" inherits="VeneerNumberFontLarge" parentArray="configLayers"> <Anchors> <Anchor point="TOPLEFT" /> </Anchors> </FontString> </Layer> </Layers> <Frames> <Button parentKey="resize" parentArray="configLayers"> <Size x="48" y="16" /> <Anchors> <Anchor point="BOTTOMRIGHT" /> </Anchors> <NormalTexture setAllPoints="true"> <Color a="1" r="1" g="1" b="1" /> </NormalTexture> <PushedTexture> <Color a="1" r="1" g="0.5" b="1" /> </PushedTexture> </Button> </Frames> </Frame> <Frame name="VeneerBuffTemplate" virtual="true" inherits="VeneerTemplate" hidden="true"> <Scripts> <OnLoad> self.duration = self.progress.duration self.count = self.progress.count self.border = self.underlay.bg </OnLoad> </Scripts> <Frames> <Frame name="$parentUnderlay" parentKey="underlay" frameStrata="BACKGROUND"> <Layers> <Layer level="BORDER"> <Texture parentKey="bg" setAllPoints="true" hidden="true" /> </Layer> </Layers> </Frame> <Cooldown name="$parentCooldown" parentKey="cooldown" inherits="CooldownFrameTemplate" reverse="true" setAllPoints="true"> <EdgeTexture> <Color a="0" r="0" g="0" b="0" /> </EdgeTexture> </Cooldown> <Frame name="$parentProgress" parentKey="progress" frameStrata="MEDIUM"> <Layers> <Layer level="BACKGROUND"> <Texture parentKey="bg" /> </Layer> <Layer level="ARTWORK"> <Texture parentKey="fg" /> </Layer> <Layer level="OVERLAY"> <FontString name="$parentDuration" parentKey="duration" inherits="VeneerNumberFont" /> <FontString name="$parentCount" parentKey="count" inherits="VeneerNumberFontLarge" /> </Layer> </Layers> </Frame> </Frames> </Frame> <Frame name="VeneerMixinScripts" virtual="true"> <Scripts> <OnLoad method="OnLoad" /> <OnEvent method="OnEvent" /> <OnUpdate method="OnUpdate" /> </Scripts> </Frame> <Frame name="VeneerStatusBarTemplate" virtual="true" hidden="true" inherits="VeneerMixinScripts"> <Scripts> <OnShow> if self.OnShow then self:OnShow() end if self.Header:IsVisible() then self.ProgressBG:ClearAllPoints() self.ProgressBG:SetPoint('TOP', self.GlowLine, 'BOTTOM', 0, -1) self.ProgressBG:SetPoint('LEFT') self.ProgressBG:SetPoint('RIGHT') self.ProgressBG:SetPoint('BOTTOM') else self.ProgressBG:ClearAllPoints() self.ProgressBG:SetAllPoints(self) end </OnShow> <OnSizeChanged> </OnSizeChanged> </Scripts> <Layers> <Layer level="BACKGROUND"> <Texture parentKey="UnderLay"> </Texture> </Layer> <Layer level="BORDER"> <Texture parentKey="ProgressBG" setAllPoints="true"> <Color a=".7" r="0" g="0" b="0" /> </Texture> <Texture parentKey="GlowLine" atlas="AftLevelup-GlowLine" useAtlasSize="false"> <Size y="3" /> <Anchors> <Anchor point="TOPLEFT" x="-27" y="-11" /> <Anchor point="RIGHT" x="27" y="0" /> </Anchors> </Texture> </Layer> <Layer level="ARTWORK"> <Texture parentKey="ProgressBar"> <Anchors> <Anchor point="BOTTOMLEFT" /> </Anchors> <Color a="1" r=".7" g=".7" b=".7" /> </Texture> </Layer> <Layer level="OVERLAY" > <FontString parentKey="Header" inherits="VeneerNumberFontSmall"> <Anchors> <Anchor point="TOP" /> </Anchors> </FontString> <FontString parentKey="Level" inherits="GameFontNormal"> <Anchors> <Anchor point="TOP" x="0" y="14" /> </Anchors> </FontString> <FontString parentKey="ProgressText" inherits="VeneerNumberFont"> <Anchors> <Anchor point="CENTER" relativeKey="$parent.ProgressBG" /> </Anchors> </FontString> </Layer> </Layers> </Frame> <Script file="Veneer.lua" /> <Script file="Modules\OrderHall.lua" /> <Frame name="VeneerWorldState" mixin="VeneerWorldStateMixin" parent="UIParent" inherits="VeneerMixinScripts"> <Anchors> <Anchor point="TOP" /> </Anchors> <Size x="600" y="24" /> <Frames> <Frame name="$parentProgress" parentKey="Progress" mixin="VeneerWorldStateProgressMixin" inherits="VeneerMixinScripts"> <Anchors> <Anchor point="TOPLEFT" /> </Anchors> <Layers> <Layer level="BORDER"> <Texture setAllPoints="true" parentKey="ProgressBG"> <Color r="0" g="0" b="0" a="0.5" /> </Texture> </Layer> <Layer level="ARTWORK"> <Texture parentKey="ProgressBar"> <Anchors> <Anchor point="BOTTOMLEFT" /> </Anchors> <Color r="1" g="1" b="1" a="0.8" /> </Texture> <Texture parentKey="OverflowBar" hidden="true"> <Anchors> <Anchor point="BOTTOMLEFT" /> </Anchors> <Color a=".6" r="1" g="0" b=".5" /> </Texture> <Texture parentKey="ProgressAdded" hidden="true"> <Color a="1" r="1" g="1" b="1" /> </Texture> </Layer> <Layer level="OVERLAY"> <FontString parentKey="Label" inherits="VeneerNumberFont"> <Anchors> <Anchor point="CENTER" /> </Anchors> </FontString> </Layer> </Layers> <Animations> <AnimationGroup parentKey="TransitionFadeOut" setToFinalAlpha="true"> <Alpha fromAlpha="1" toAlpha="0" duration="0.15" order="1" /> <Scripts> <OnPlay> print('VnWorldState','fade out') </OnPlay> <OnFinished> self:GetParent():Hide() self:GetParent():Update() </OnFinished> </Scripts> </AnimationGroup> <AnimationGroup parentKey="TransitionFadeIn" setToFinalAlpha="true"> <Alpha fromAlpha="0" toAlpha="1" duration="0.15" order="1" /> <Scripts> <OnPlay> self:GetParent():ShowPanel() self:GetParent().timeLived = 0 print('VnWorldState', 'fade in') </OnPlay> <OnFinished> self:GetParent().timeLived = 0 </OnFinished> </Scripts> </AnimationGroup> <AnimationGroup parentKey="ProgressFlash" setToFinalAlpha="true"> <Alpha fromAlpha="0" toAlpha="1" duration="0.15" order="1" childKey="ProgressAdded" /> <Alpha fromAlpha="1" toAlpha="0" duration="0.45" order="2" childKey="ProgressAdded" /> </AnimationGroup> </Animations> </Frame> <Frame name="$parentZoneCurrency" parentKey="ZoneCurrency" mixin="VeneerWorldStateCurrencyMixin" hidden="true" inherits="VeneerMixinScripts"> <Anchors> <Anchor point="TOPRIGHT" /> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture parentKey="Icon" > <Size x="24" y="24" /> <Anchors> <Anchor point="LEFT" /> </Anchors> </Texture> </Layer> <Layer level="OVERLAY"> <FontString parentKey="Label" inherits="VeneerNumberFont"> <Anchors> <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.Icon" x="2" y="0" /> </Anchors> </FontString> </Layer> </Layers> </Frame> </Frames> </Frame> </Ui>