<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="Bag.lua"/>
	
	<Frame name="BagnonBagSlotsTemplate" virtual="true"/>
	
	<!-- A Bagnon bag template, based off the normal one but with no XML dependencies -->
	<Button name="BagnonBagTemplate" virtual="true">
		<Size x="37" y="37"/>
		
		<Layers>
			<Layer level="BORDER">
				<Texture name="$parentIconTexture" setAllPoints="true"/>
				
				<FontString name="$parentCount" font="NumberFontNormalSmall" justifyH="RIGHT" hidden="true">
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="1" y="2"/>
						</Anchor>
						<FontHeight>
							<AbsValue val="10"/>
						</FontHeight>
					</Anchors>		
				</FontString>				
			</Layer>
		</Layers>
		
		<Frames>
			<Model name="$parentCooldown" file="Interface\Cooldown\UI-Cooldown-Indicator.mdx" scale="0.85" setAllPoints="true" hidden="true">
				<Scripts>
					<OnUpdateModel>
						CooldownFrame_OnUpdateModel();
					</OnUpdateModel>
					<OnAnimFinished>
						CooldownFrame_OnAnimFinished();
					</OnAnimFinished>
				</Scripts>
			</Model>
		</Frames>
		
		<NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
			<Size x="64" y="64"/>
			<Anchors>
				<Anchor point="CENTER">
					<Offset x="0" y="-1"/>
				</Anchor>
			</Anchors>
		</NormalTexture>
		<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
		<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
		
		<Scripts>
			<OnLoad>
				BagnonBag_OnLoad();
			</OnLoad>
			<OnShow>
				BagnonBag_OnShow();
			</OnShow>
			<OnEvent>
				BagnonBag_OnEvent();
			</OnEvent>
			<OnEnter>
				BagnonBag_OnEnter();
			</OnEnter>
			<OnLeave>
				BagnonBag_OnLeave();
			</OnLeave>
			<OnClick>
				BagnonBag_OnClick();
			</OnClick>
			<OnDragStart>
				BagnonBag_OnDrag();
			</OnDragStart>
			<OnReceiveDrag>
				BagnonBag_OnClick();
			</OnReceiveDrag>
		</Scripts>
	</Button>
</Ui>
