<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="GuildMembers.lua"></Script>

	<Button name="AltoAltEquipmentTemplate" inherits="ItemButtonTemplate" virtual="true">
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonDown", "RightButtonDown");
			</OnLoad>
			<OnEnter>
				Altoholic:Item_OnEnter(self)
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnClick>
				Altoholic:Item_OnClick(self, button)
			</OnClick>
		</Scripts>
	</Button>
	
	<Button name="AltoGuildMembersTemplate" virtual="true">
		<Size>
			<AbsDimension x="460" y="22"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentLevel" inherits="GameFontNormalSmall" justifyH="CENTER">
					<Size>
						<AbsDimension x="55" y="18"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="150" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentVersion" inherits="GameFontNormalSmall" justifyH="CENTER">
					<Size>
						<AbsDimension x="80" y="18"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentLevel" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="70" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentClass" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="100" y="18"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentVersion" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentCollapse" hidden="true">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Altoholic.Guild.Members:Collapse_OnClick(self, button)
					</OnClick>
				</Scripts>
				<NormalTexture name="$parentIcon" file="Interface\Buttons\UI-MinusButton-UP" />
				<HighlightTexture file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD" />
			</Button>

			<Button name="$parentName">
				<Size>
					<AbsDimension x="170" y="18"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="25" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<ButtonText name="$parentNormalText" justifyH="LEFT">
					<Size>
						<AbsDimension x="170" y="18"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</ButtonText>
				<Scripts>
					<OnEnter>
						Altoholic.Guild.Members:Name_OnEnter(self)
					</OnEnter>
					<OnLeave>
						AltoTooltip:Hide();
					</OnLeave>
				</Scripts>
				<NormalFont style="GameFontNormalSmallLeft"/>
				<HighlightFont style="GameFontHighlightSmallLeft"/>
			</Button>
			<Button name="$parentAvgILevel">
				<Size>
					<AbsDimension x="65" y="18"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="$parentLevel" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<ButtonText name="$parentNormalText" justifyH="CENTER">
					<Size>
						<AbsDimension x="60" y="18"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</ButtonText>
				<Scripts>
					<OnClick>
						Altoholic.Guild.Members:Level_OnClick(self, button)
					</OnClick>
					<OnEnter>
						Altoholic.Guild.Members:Level_OnEnter(self)
					</OnEnter>
					<OnLeave>
						AltoTooltip:Hide();
					</OnLeave>
				</Scripts>
				<NormalFont style="GameFontNormalSmallLeft"/>
				<HighlightFont style="GameFontHighlightSmallLeft"/>
			</Button>
		</Frames>
	</Button>

	<Frame name="AltoholicFrameGuildMembers" parent="AltoholicTabSummary" hidden="true">
		<Size>
			<AbsDimension x="615" y="414"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT">
				<Offset>
					<AbsDimension x="39" y="-105"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$Parent_Name" inherits="DialogButtonNormalText" justifyH="Center">
					<Size>
						<AbsDimension x="150" />
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="20"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self.InitRequired = true
			</OnLoad>
		</Scripts>
		<Frames>
			<ScrollFrame name="$parentScrollFrame" inherits="FauxScrollFrameTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" />
					<Anchor point="BOTTOMRIGHT" />
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="256"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
									<Offset>
										<AbsDimension x="-2" 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="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="-2" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(self, offset, 18, Altoholic.Guild.Members.Update)
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>
			
			<!-- Scrollframe entries -->
			<Button name="$parentEntry1" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentScrollFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry2" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry1" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry3" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry2" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry4" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry3" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry5" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry4" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry6" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry5" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry7" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry6" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry8" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry7" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry9" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry8" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry10" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry9" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry11" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry10" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry12" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry11" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry13" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry12" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry14" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry13" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry15" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry14" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry16" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry15" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry17" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry16" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry18" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry17" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry19" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry18" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>
			<Button name="$parentEntry20" inherits="AltoGuildMembersTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEntry19" relativePoint="BOTTOMLEFT" />
				</Anchors>
			</Button>

			<!-- Equipment Icons on the right of the frame -->
			<Button name="$parentItem1" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="470" y="-10"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem2" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem3" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem4" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem3" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parentItem5" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem1" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="10" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem6" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem5" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem7" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem6" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem8" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem7" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parentItem9" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem5" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="10" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem10" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem9" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem11" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem10" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem12" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem11" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parentItem13" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parentItem8" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="15" y="-10"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem14" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem8" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-15" y="-10"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem15" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parentItem13" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem16" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem14" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parentItem18" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem8" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-56"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem17" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parentItem18" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentItem19" inherits="AltoAltEquipmentTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentItem18" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
	
		</Frames>
	</Frame>

</Ui>