Files
moonwell-client/reference/FrameXML/BuffFrame.xml
T

226 lines
6.3 KiB
XML

<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">
<Script file="BuffFrame.lua"/>
<Button name="AuraButtonTemplate" virtual="true">
<Size x="30" y="30"/>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentIcon" nonBlocking="true"/>
<FontString name="$parentCount" inherits="NumberFontNormal" parentKey="count">
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-2" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentDuration" inherits="GameFontNormalSmall" hidden="true" parentKey="duration">
<Anchors>
<Anchor point="TOP" relativePoint="BOTTOM" />
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT");
GameTooltip:SetFrameLevel(self:GetFrameLevel() + 2);
GameTooltip:SetUnitAura(PlayerFrame.unit, self:GetID(), self.filter);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Button name="BuffButtonTemplate" inherits="AuraButtonTemplate" virtual="true">
<Scripts>
<OnLoad>
BuffButton_OnLoad(self);
</OnLoad>
<OnClick>
BuffButton_OnClick(self, button, down);
</OnClick>
</Scripts>
</Button>
<Button name="DebuffButtonTemplate" inherits="AuraButtonTemplate" virtual="true">
<Layers>
<Layer level="OVERLAY">
<Texture name="$parentBorder" file="Interface\Buttons\UI-Debuff-Overlays">
<Size>
<AbsDimension x="33" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<TexCoords left="0.296875" right="0.5703125" top="0" bottom="0.515625"/>
</Texture>
<FontString parentKey="symbol" inherits="TextStatusBarText">
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="2" y="-2"/>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Button>
<Button name="TempEnchantButtonTemplate" inherits="AuraButtonTemplate" virtual="true">
<Layers>
<Layer level="OVERLAY">
<Texture name="$parentBorder" file="Interface\Buttons\UI-TempEnchant-Border">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
TempEnchantButton_OnLoad(self);
</OnLoad>
<OnUpdate>
TempEnchantButton_OnUpdate(self, elapsed);
</OnUpdate>
<OnClick>
TempEnchantButton_OnClick(self, button, down);
</OnClick>
<OnEnter>
TempEnchantButton_OnEnter(self, motion);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Frame name="BuffFrame" parent="UIParent" frameStrata="LOW" toplevel="true">
<Size>
<AbsDimension x="50" y="50"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-205" y="-13"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad function="BuffFrame_OnLoad"/>
<OnEvent function="BuffFrame_OnEvent"/>
<OnUpdate function="BuffFrame_OnUpdate"/>
</Scripts>
</Frame>
<Button name="ConsolidatedBuffs" parent="UIParent" inherits="AuraButtonTemplate" hidden="true">
<Anchors>
<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-180" y="-13"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
ConsolidatedBuffsIcon:SetTexture("Interface\\Buttons\\BuffConsolidation");
ConsolidatedBuffsIcon:SetTexCoord(0, 0.5, 0, 1);
ConsolidatedBuffsIcon:ClearAllPoints();
ConsolidatedBuffsIcon:SetPoint("CENTER");
ConsolidatedBuffsIcon:SetWidth(64);
ConsolidatedBuffsIcon:SetHeight(64);
</OnLoad>
<OnUpdate function="ConsolidatedBuffs_OnUpdate" />
<OnEnter function="ConsolidatedBuffs_OnEnter" />
<OnShow function="ConsolidatedBuffs_OnShow" />
<OnHide function="ConsolidatedBuffs_OnHide" />
</Scripts>
</Button>
<Frame name="ConsolidatedBuffsTooltip" frameStrata="TOOLTIP" clampedToScreen="true" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" />
</Anchors>
<Size>
<AbsDimension x="60" y="60"/>
</Size>
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="4" right="4" top="4" bottom="4"/>
</BackgroundInsets>
</Backdrop>
<Frames>
<Frame name="ConsolidatedBuffsContainer">
<Size>
<AbsDimension x="60" y="60"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="16" y="-16"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
</Frames>
<Scripts>
<OnLoad>
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
ConsolidatedBuffsContainer:SetScale(0.66);
</OnLoad>
<OnEnter>
self.mousedOver = true;
</OnEnter>
<OnUpdate>
if ( self.mousedOver and not ConsolidatedBuffs.mousedOver and not self:IsMouseOver() ) then
self.mousedOver = nil;
self:Hide();
end
</OnUpdate>
<OnHide>
self.mousedOver = nil;
</OnHide>
</Scripts>
</Frame>
<Frame name="TemporaryEnchantFrame" parent="UIParent" frameStrata="LOW" toplevel="true">
<Size>
<AbsDimension x="36" y="36"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="ConsolidatedBuffs" relativePoint="TOPRIGHT" />
</Anchors>
<Frames>
<Button name="TempEnchant1" inherits="TempEnchantButtonTemplate">
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TempEnchant2" inherits="TempEnchantButtonTemplate">
<Anchors>
<Anchor point="RIGHT" relativeTo="TempEnchant1" relativePoint="LEFT">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
</Frames>
<Scripts>
<OnUpdate function="TemporaryEnchantFrame_OnUpdate"/>
</Scripts>
</Frame>
</Ui>