<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="ClassDatabase.lua"/>
	<Button name="ClassDatabaseItemButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="300" y="16"/>
		</Size>
		<Scripts>
			<OnClick>
				CurrentSelection = this:GetText();
				ClassDatabase_Update();
			</OnClick>
			<OnEnter>
				ClassDatabaseItemButton_OnEnter();
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<NormalText name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
			<Size>
				<AbsDimension x="275" y="12"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="20" y="0"/>
					</Offset>
				</Anchor>
			</Anchors> 
		</NormalText>
	</Button>
	<Frame name="ClassDatabaseFrame" toplevel="true" enableMouse="true" movable="true" parent="UIParent" hidden="true">
		<Size>
			<AbsDimension x="384" y="512"/>
		</Size>
		<Anchors>
 			<Anchor point="TOPLEFT">
 				<Offset>
 					<AbsDimension x="0" y="-104"/>
 				</Offset>
 			</Anchor>
 		</Anchors>
		<HitRectInsets>
			<AbsInset left="0" right="35" top="0" bottom="75"/>
		</HitRectInsets>
		<Layers>
			<Layer level="BACKGROUND">
                <Texture name="ClassDatabaseFramePortrait" file="Interface\PetitionFrame\GuildCharter-Icon">
					<Size>
						<AbsDimension x="58" y="58"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="8" y="-9"/>
							</Offset>
						</Anchor>
					</Anchors>
                </Texture>
            </Layer>
			<Layer level="ARTWORK">
				<Texture file="Interface\TaxiFrame\UI-TaxiFrame-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture file="Interface\TaxiFrame\UI-TaxiFrame-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="256" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\TaxiFrame\UI-TaxiFrame-BotLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="-256"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\TaxiFrame\UI-TaxiFrame-BotRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="256" y="-256"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="ClassDatabaseTitleText" inherits="GameFontHighlight" text="ClassDatabaseTitle">
					<Size>
						<AbsDimension x="300" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="ClassDatabaseFrame" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="ClassDatabaseFrameCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="ClassDatabaseFrame" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-29" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>						
						ClassDatabase_BuildArray();
						ClassDatabaseFrame:Hide();
					</OnClick>
				</Scripts>				
			</Button>
			<Button name="ClassDatabaseFrameMakeFirstButton" inherits="UIPanelButtonTemplate" text="Make First">
				<Size>
					<AbsDimension x="75" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="70" y="-43"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						MakeFirstClass();
						ClassDatabase_Update();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="ClassDatabaseFrameMakeLastButton" inherits="UIPanelButtonTemplate" text="Make Last">
				<Size>
					<AbsDimension x="75" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="150" y="-43"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						MakeLastClass();
						ClassDatabase_Update();
					</OnClick>
				</Scripts>
			</Button>			
			
			<Button name="ClassDatabaseFrameMoveUpButton" inherits="UIPanelButtonTemplate" text="Up">
				<Size>
					<AbsDimension x="45" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="230" y="-43"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						MoveUpClass();
						ClassDatabase_Update();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="ClassDatabaseFrameMoveDownButton" inherits="UIPanelButtonTemplate" text="Down">
				<Size>
					<AbsDimension x="45" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="280" y="-43"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						MoveDownClass();
						ClassDatabase_Update();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="ClassDatabaseItem1" inherits="ClassDatabaseItemButtonTemplate" id="1" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseFrame">
						<Offset>
							<AbsDimension x="19" y="-75"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem2" inherits="ClassDatabaseItemButtonTemplate" id="2" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem3" inherits="ClassDatabaseItemButtonTemplate" id="3" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem4" inherits="ClassDatabaseItemButtonTemplate" id="4" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem3" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem5" inherits="ClassDatabaseItemButtonTemplate" id="5" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem4" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem6" inherits="ClassDatabaseItemButtonTemplate" id="6" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem5" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem7" inherits="ClassDatabaseItemButtonTemplate" id="7" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem6" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem8" inherits="ClassDatabaseItemButtonTemplate" id="8" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem7" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem9" inherits="ClassDatabaseItemButtonTemplate" id="9" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem8" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem10" inherits="ClassDatabaseItemButtonTemplate" id="10" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem9" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem11" inherits="ClassDatabaseItemButtonTemplate" id="11" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem10" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem12" inherits="ClassDatabaseItemButtonTemplate" id="12" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem11" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem13" inherits="ClassDatabaseItemButtonTemplate" id="13" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem12" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem14" inherits="ClassDatabaseItemButtonTemplate" id="14" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem13" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem15" inherits="ClassDatabaseItemButtonTemplate" id="15" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem14" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem16" inherits="ClassDatabaseItemButtonTemplate" id="16" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem15" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem17" inherits="ClassDatabaseItemButtonTemplate" id="17" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem16" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem18" inherits="ClassDatabaseItemButtonTemplate" id="18" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem17" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem19" inherits="ClassDatabaseItemButtonTemplate" id="19" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem18" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem20" inherits="ClassDatabaseItemButtonTemplate" id="20" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem19" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem21" inherits="ClassDatabaseItemButtonTemplate" id="21" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem20" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem22" inherits="ClassDatabaseItemButtonTemplate" id="22" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem21" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="ClassDatabaseItem23" inherits="ClassDatabaseItemButtonTemplate" id="23" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseItem22" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<ScrollFrame name="ClassDatabaseListScrollFrame" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="296" y="354"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ClassDatabaseFrame">
						<Offset>
							<AbsDimension x="19" y="-75"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentScrollBarTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="256"/>
							</Size>
							<Anchors>
								<Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton">
									<Offset>
										<AbsDimension x="0" y="5"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="106"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOM" relativeTo="$parentScrollBarScrollDownButton">
									<Offset>
										<AbsDimension x="0" y="-2"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(ClassDatabase_ITEM_HEIGHT, ClassDatabase_Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>
		</Frames>
		<Scripts>
			<OnShow>					
					ClassDatabase_Update();
			</OnShow>
		</Scripts>
	</Frame>
</Ui>
