<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="profiles.lua"/>
	
	<Button name="BongosOptionsProfileButton" virtual="true">
		<Scripts>
			<OnClick>	
				BOptionsProfileButton_OnClick(this);
			</OnClick>
			<OnMouseWheel>
				BOptionsProfilesButton_OnMousewheel(BOptionsPanelProfilesScrollFrame, arg1);
			</OnMouseWheel>
		</Scripts>
		
		<ButtonText setAllPoints="true"/>
		<NormalFont font="GameFontNormal" justifyH="LEFT"/>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
	</Button>
	
	<!-- Profiles Panel -->
	<Frame name="BongosOptionsProfiles" inherits="BongosOptionsPanel" enableMouse="true" virtual="true">		
		<Frames>
			<ScrollFrame name="$parentScrollFrame" inherits="FauxScrollFrameTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset x="-48" y="-4"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
						<Offset x="-24" y="36"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(10, BOptionsProfilesScrollBar_Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>
			
			<!--List Items-->
			<Button name="$parent1" inherits="BongosOptionsProfileButton" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset x="5" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentScrollFrame" relativePoint="TOPLEFT">
						<Offset x="24" y="-16"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent2" inherits="BongosOptionsProfileButton" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent1" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent1" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent3" inherits="BongosOptionsProfileButton" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent2" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent2" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent4" inherits="BongosOptionsProfileButton" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent3" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent3" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent5" inherits="BongosOptionsProfileButton" id="5">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent4" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent4" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent6" inherits="BongosOptionsProfileButton" id="6">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent5" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent5" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent7" inherits="BongosOptionsProfileButton" id="7">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent6" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent6" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent8" inherits="BongosOptionsProfileButton" id="8">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent7" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent7" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent9" inherits="BongosOptionsProfileButton" id="9">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent8" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent8" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent10" inherits="BongosOptionsProfileButton" id="10">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent9" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent9" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent11" inherits="BongosOptionsProfileButton" id="11">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent10" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent10" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent12" inherits="BongosOptionsProfileButton" id="12">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent11" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-1"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent11" relativePoint="BOTTOMRIGHT">
						<Offset x="0" y="-19"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parentLoad" inherits="UIPanelButtonTemplate" text="Load">
				<Size x="42" y="24"/>
				
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="2" y="2"/>
					</Anchor>
				</Anchors>

				<Scripts>
					<OnClick>
						BOptionsProfiles_LoadProfile();
					</OnClick>
				</Scripts>
			</Button>
			
			<Button name="$parentSave" inherits="UIPanelButtonTemplate" text="Save">
				<Size x="44" y="24"/>
				
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentLoad" relativePoint="RIGHT">
						<Offset x="2" y="0"/>
					</Anchor>
				</Anchors>

				<Scripts>
					<OnClick>
						BOptionsProfiles_SaveProfile();
					</OnClick>
				</Scripts>
			</Button>
			
			<Button name="$parentDelete" inherits="UIPanelButtonTemplate" text="Delete">
				<Size x="52" y="24"/>
				
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentSave" relativePoint="RIGHT">
						<Offset x="2" y="0"/>
					</Anchor>
				</Anchors>

				<Scripts>
					<OnClick>
						BOptionsProfiles_DeleteProfile();
					</OnClick>
				</Scripts>
			</Button>
			
			<Button name="$parentSetDefault" inherits="UIPanelButtonTemplate" text="Set Default">
				<Size x="80" y="24"/>
				
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentDelete" relativePoint="RIGHT">
						<Offset x="2" y="0"/>
					</Anchor>
				</Anchors>

				<Scripts>
					<OnClick>
						BOptionsProfiles_SetDefaultProfile();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnShow>
				BOptionsProfiles_OnShow();
			</OnShow>
		</Scripts>
	</Frame>
</Ui>