annotate Modules/BuffFrame.xml @ 108:a41f6b74709a

- Handler number and boolean cluster arguments as positioning priority layer and "always top" respectively - Use SetShown and IsShown instead of IsVisible in doing full re-anchor checks
author Nick@Zahhak
date Sat, 25 Feb 2017 11:42:07 -0500
parents 5476337198ec
children 7c77fde36287
rev   line source
Nenue@84 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@84 2 ..\FrameXML\UI.xsd">
Nenue@84 3 <Script file="BuffFrame.lua" />
Nenue@84 4
Nenue@90 5 <Frame name="VeneerBuffFrame" mixin="VeneerBuffFrameMixin" inherits="VeneerHandlerTemplate" frameStrata="BACKGROUND">
Nenue@90 6 <Size x="20" y="20" />
Nenue@90 7 </Frame>
Nenue@90 8
Nenue@90 9 <Frame name="VeneerBuffTemplate" virtual="true" mixin="VeneerBuffFrameButtonMixin" inherits="VeneerStatusButtonTemplate" hidden="true">
Nenue@84 10 <Scripts>
Nenue@90 11 <OnLoad method="OnLoad" />
Nenue@94 12 <OnHide method="OnHide" />
Nenue@95 13 <OnShow method="OnShow" />
Nenue@84 14 </Scripts>
Nenue@84 15 <Frames>
Nenue@84 16 <!--
Nenue@84 17
Nenue@84 18 frame.progress:SetPoint('BOTTOMLEFT', frame, 'BOTTOMLEFT', -1, -7)
Nenue@84 19 frame.progress:SetPoint('TOPRIGHT', frame, 'BOTTOMRIGHT', 1, -2)
Nenue@84 20 frame.progress:SetHeight(BUFF_PROGRESS_SIZE + (BUFF_PROGRESS_INSET * 2))
Nenue@84 21
Nenue@84 22 frame.progress.bg:SetColorTexture(0,0,0,1)
Nenue@84 23 frame.progress.fg:SetColorTexture(1,1,1,1)
Nenue@84 24 frame.progress.fg:ClearAllPoints()
Nenue@84 25 frame.progress.fg:SetPoint('BOTTOMLEFT', BUFF_PROGRESS_INSET,BUFF_PROGRESS_INSET)
Nenue@84 26 frame.progress.fg:SetPoint('TOP', 0, -BUFF_PROGRESS_INSET)
Nenue@84 27 -->
Nenue@84 28
Nenue@84 29 <Frame name="$parentUnderlay" parentKey="underlay" frameStrata="BACKGROUND">
Nenue@84 30 <Layers>
Nenue@84 31 <Layer level="BORDER">
Nenue@84 32 <Texture parentKey="bg" setAllPoints="true" hidden="true" />
Nenue@84 33 </Layer>
Nenue@84 34 </Layers>
Nenue@84 35 </Frame>
Nenue@84 36 <Cooldown name="$parentCooldown" parentKey="cooldown" inherits="CooldownFrameTemplate" reverse="true" setAllPoints="true">
Nenue@84 37 <EdgeTexture>
Nenue@84 38 <Color a="0" r="0" g="0" b="0" />
Nenue@84 39 </EdgeTexture>
Nenue@84 40 </Cooldown>
Nenue@84 41 <Frame name="$parentProgress" parentKey="progress" frameStrata="MEDIUM">
Nenue@84 42 <Layers>
Nenue@84 43 <Layer level="BACKGROUND">
Nenue@84 44 <Texture parentKey="bg" setAllPoints="true">
Nenue@84 45 <Color a="1" r="0" g="0" b="0" />
Nenue@84 46 </Texture>
Nenue@84 47 </Layer>
Nenue@84 48 <Layer level="ARTWORK">
Nenue@84 49 <Texture parentKey="fg" >
Nenue@84 50 <Color a="1" r="1" g="1" b="1" />
Nenue@84 51 </Texture>
Nenue@84 52 </Layer>
Nenue@84 53 <Layer level="OVERLAY">
Nenue@97 54 <FontString name="$parentDuration" parentKey="duration" inherits="VeneerTimeFont">
Nenue@84 55 <Anchors>
Nenue@86 56 <Anchor point="BOTTOMLEFT" x="5" y="9" />
Nenue@84 57 </Anchors>
Nenue@84 58 </FontString>
Nenue@86 59 </Layer>
Nenue@86 60 </Layers>
Nenue@86 61 </Frame>
Nenue@86 62 <Frame name="$parentOverlay" parentKey="overlay" setAllPoints="true">
Nenue@86 63 <Layers>
Nenue@86 64 <Layer level="OVERLAY">
Nenue@86 65 <FontString name="$parentCount" parentKey="count" inherits="VeneerNumberFontLarge">
Nenue@84 66 <Anchors>
Nenue@86 67 <Anchor point="TOPRIGHT" x="-2" y="-2" />
Nenue@84 68 </Anchors>
Nenue@84 69 </FontString>
Nick@108 70 <FontString name="$parentValue1" parentKey="Value1" inherits="VeneerNumberFont">
Nick@108 71 <Anchors>
Nick@108 72 <Anchor point="TOPLEFT" x="2" y="-2" />
Nick@108 73 </Anchors>
Nick@108 74 <Color r="0" g="1" b="0" />
Nick@108 75 </FontString>
Nick@108 76 <FontString name="$parentValue2" parentKey="Value2" inherits="VeneerNumberFont">
Nick@108 77 <Anchors>
Nick@108 78 <Anchor point="TOPLEFT" x="0" y="-2" relativeTo="BOTTOMELFT" relativeKey="$parent.Value1" />
Nick@108 79 </Anchors>
Nick@108 80 <Color r="0" g="1" b="1" />
Nick@108 81 </FontString>
Nick@108 82 <FontString name="$parentValue3" parentKey="Value3" inherits="VeneerNumberFont">
Nick@108 83 <Anchors>
Nick@108 84 <Anchor point="TOPLEFT" x="0" y="-2" relativeTo="BOTTOMELFT" relativeKey="$parent.Value1" />
Nick@108 85 </Anchors>
Nick@108 86 <Color r="1" g="1" b="0" />
Nick@108 87 </FontString>
Nenue@84 88 </Layer>
Nenue@84 89 </Layers>
Nenue@84 90 </Frame>
Nenue@84 91 </Frames>
Nenue@84 92 </Frame>
Nenue@84 93 </Ui>