<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"/>
				<FontString name="$parentCount" inherits="NumberFontNormal">
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-2" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentDuration" inherits="GameFontNormalSmall" hidden="true">
					<Anchors>
						<Anchor point="TOP" relativePoint="BOTTOM" />
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT");
				GameTooltip:SetUnitAura(PlayerFrame.unit, self:GetID(), self.filter);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnShow>
				if ( self.namePrefix ) then
					AuraButton_Update(self.namePrefix, self:GetID(), self.filter);
				end
			</OnShow>
		</Scripts>
	</Button>
	<Button name="BuffButtonTemplate" inherits="AuraButtonTemplate" virtual="true">
		<Scripts>
			<OnLoad>
				BuffButton_OnLoad(self);
			</OnLoad>
			<OnClick>
				BuffButton_OnClick(self);
			</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">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.296875" right="0.5703125" top="0" bottom="0.515625"/>
				</Texture>	
			</Layer>
		</Layers>
	</Button>
	<Button name="BuffButtonTempEnchant" 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>
				BuffFrame_EnchantButton_OnLoad(self);
			</OnLoad>
			<OnUpdate>
				BuffFrame_EnchantButton_OnUpdate(self, elapsed);
			</OnUpdate>
			<OnClick>
				BuffFrame_EnchantButton_OnClick(self, button);
			</OnClick>
			<OnEnter>
				BuffFrame_EnchantButton_OnEnter(self);
			</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>
				BuffFrame_OnLoad(self);
			</OnLoad>
			<OnEvent>
				BuffFrame_OnEvent(self, event, ...);
			</OnEvent>
			<OnUpdate>
				BuffFrame_OnUpdate(self, elapsed);
			</OnUpdate>
		</Scripts>
	</Frame>
	<Frame name="TemporaryEnchantFrame" parent="UIParent" frameStrata="LOW" toplevel="true">
		<Size>
			<AbsDimension x="36" y="36"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
				<Offset>
					<AbsDimension x="-180" y="-13"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
			<Button name="TempEnchant1" inherits="BuffButtonTempEnchant">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="TempEnchant2" inherits="BuffButtonTempEnchant">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="TempEnchant1" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				TempEnchant1Duration:SetPoint("TOP", "TempEnchant1", "BOTTOM", 0, 0);
				TempEnchant2Duration:SetPoint("TOP", "TempEnchant2", "BOTTOM", 0, 0);
			</OnLoad>
			<OnUpdate>
				BuffFrame_Enchant_OnUpdate(self, elapsed);
			</OnUpdate>
		</Scripts>
	</Frame>
</Ui>
