<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="Banknon.lua"/>
	
	<Frame name="BanknonBagSlots" inherits="BagnonBagSlotsTemplate" virtual="true">
		<Size x="248" y="72"/>
		
		<Frames>
			<Button name="$parent5" inherits="BagnonBagTemplate" id="5">
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
						<Offset x="8" y="4"/>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent6" inherits="BagnonBagTemplate" id="6">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent5" relativePoint="RIGHT">
						<Offset x="2" y="0"/>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent7" inherits="BagnonBagTemplate" id="7">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent6" relativePoint="RIGHT">
						<Offset x="2" y="0"/>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent8" inherits="BagnonBagTemplate" id="8">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent7" relativePoint="RIGHT">
						<Offset x="2" y="0"/>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent9" inherits="BagnonBagTemplate" id="9">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent8" relativePoint="RIGHT">
						<Offset x="2" y="0"/>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent10" inherits="BagnonBagTemplate" id="10">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent9" relativePoint="RIGHT">
						<Offset x="2" y="0"/>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
	</Frame>
	
	<Button name="Banknon" inherits="BagnonFrameTemplate">
		<Anchors>
			<Anchor point="LEFT">
				<Offset x="4" y="-100"/>
			</Anchor>
		</Anchors>
		
		<Frames>
			<Frame name="$parentBags" inherits="BanknonBagSlots" hidden="true">
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="4" y="24"/>
					</Anchor>
				</Anchors>
			</Frame>
			
			<Button name="$parentPurchase" inherits="UIPanelButtonTemplate" text="BANKSLOTPURCHASE" hidden="true">
				<Size x="124" y="21"/>

				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentBags">
						<Offset x="8" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOption");
						StaticPopup_Show("CONFIRM_BUY_BANK_SLOT_BANKNON");
					</OnClick>
				</Scripts>
				<NormalFont font="GameFontNormal"/>
				<DisabledFont font="GameFontDisable"/>
				<HighlightFont font="GameFontHighlight"/>
			</Button>
						
			<Frame name="$parentCost" inherits="SmallMoneyFrameTemplate" hidden="true">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentPurchase" relativePoint="RIGHT">
						<Offset x="4" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						SmallMoneyFrame_OnLoad();
						MoneyFrame_SetType("STATIC");
					</OnLoad>
				</Scripts>
			</Frame>
			
			<!-- advanced options Item -->
			<Button name="$parentShowBags" text="BAGNON_SHOWBAGS">
				<Size x="72" y="32"/>
				
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="10" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Banknon_ToggleSlots();
					</OnClick>
				</Scripts>
				
				<ButtonText setAllPoints="true"/>
				<NormalFont font="GameFontNormal" justifyH="LEFT"/>
				<HighlightFont font="GameFontHighlight" justifyH="LEFT"/>
			</Button>
		</Frames>
		
		<Scripts>
			<OnLoad>
				Banknon_OnLoad();
			</OnLoad>
			<OnEvent>
				Banknon_OnEvent(event);
			</OnEvent>
			<OnShow>
				Banknon_OnShow();
			</OnShow>
			<OnHide>
				BagnonFrame_OnHide();
				Banknon_OnHide();
			</OnHide>
		</Scripts>
	</Button>
</Ui>
