<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="localization.lua" />
  <Script file="localization.tw.lua" />
  <Script file="localization.cn.lua" />
  <Script file="MCP.lua" />

	<Frame name="MCP" enableMouse="false" parent="UIParent" >
       		<Scripts>
        		<OnLoad>
            			MCP_OnLoad();
			</OnLoad>
		</Scripts>
    	</Frame>
	<Button name="MCP_AddonListEntryTemplate" virtual="true">
		<Size>
			<AbsDimension x="520" y="16"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentTitle" inherits="SystemFont" justifyH="LEFT">
					<Size>
						<AbsDimension x="200" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="42" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentStatus" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="120" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentTitle" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="30" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentSecurity">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture name="$parentIcon" file="Interface\Glues\CharacterSelect\Glues-AddOn-Icons"/>
			</Button>
			<Button name="$parentLoadNow" inherits="UIPanelButtonTemplate" text="MCP_LOAD">
				<Size>
					<AbsDimension x="80" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentStatus" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						MCP_AddonList_LoadNow(this:GetParent().addon);
					</OnClick>
				</Scripts>
			</Button>
			<CheckButton name="$parentEnabled">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						MCP_AddonList_Enable(this:GetParent().addon, this:GetChecked());
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
				<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
				<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
				<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
				<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
			</CheckButton>
		</Frames>
                <Scripts>
                  <OnEnter>
                    MCP_TooltipShow(this.addon);
                  </OnEnter>
                  <OnLeave>
                    GameTooltip:Hide();
                  </OnLeave>
                </Scripts>
        </Button>
	<Button name="GameMenuButtonAddOns" inherits="GameMenuButtonTemplate" text="MCP_ADDONS" parent="GameMenuFrame">
		<Anchors>
			<Anchor point="TOP" relativeTo="GameMenuButtonMacros" relativePoint="BOTTOM">
				<Offset>
					<AbsDimension x="0" y="-1"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				GameMenuButtonLogout:SetPoint("TOP",this:GetName(),"BOTTOM",0,-1);
				GameMenuFrame:SetHeight(GameMenuFrame:GetHeight()+25);
			</OnLoad>
			<OnClick>
				PlaySound("igMainMenuOption");
				HideUIPanel(GameMenuFrame);
				ShowUIPanel(MCP_AddonList);
			</OnClick>
		</Scripts>
	</Button>
	<Frame name="MCP_AddonList" hidden="true" toplevel="true" enableMouse="true" enableKeyboard="false" movable="true">
		<Size>
			<AbsDimension x="640" y="512"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<HitRectInsets>
			<AbsInset left="0" right="44" top="0" bottom="13"/>
		</HitRectInsets>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\HelpFrame\HelpFrame-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture file="Interface\HelpFrame\HelpFrame-Top">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="256" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\HelpFrame\HelpFrame-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
				</Texture>
				<Texture file="Interface\HelpFrame\HelpFrame-BotLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
                                                <Anchor point="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
				<Texture file="Interface\HelpFrame\HelpFrame-Bottom">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="256" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\HelpFrame\HelpFrame-BotRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
                                                <Anchor point="BOTTOMRIGHT" />
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="536" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="-12" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentHeaderTitle" inherits="GameFontNormal" text="ADDON_LIST">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentHeader">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-42" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(MCP_AddonList);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentEntry1" inherits="MCP_AddonListEntryTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="37" y="-62"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry2" inherits="MCP_AddonListEntryTemplate" id="2">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry1" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry3" inherits="MCP_AddonListEntryTemplate" id="3">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry2" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry4" inherits="MCP_AddonListEntryTemplate" id="4">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry3" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry5" inherits="MCP_AddonListEntryTemplate" id="5">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry4" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry6" inherits="MCP_AddonListEntryTemplate" id="6">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry5" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry7" inherits="MCP_AddonListEntryTemplate" id="7">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry6" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry8" inherits="MCP_AddonListEntryTemplate" id="8">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry7" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry9" inherits="MCP_AddonListEntryTemplate" id="9">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry8" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry10" inherits="MCP_AddonListEntryTemplate" id="10">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry9" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry11" inherits="MCP_AddonListEntryTemplate" id="11">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry10" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry12" inherits="MCP_AddonListEntryTemplate" id="12">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry11" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry13" inherits="MCP_AddonListEntryTemplate" id="13">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry12" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry14" inherits="MCP_AddonListEntryTemplate" id="14">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry13" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry15" inherits="MCP_AddonListEntryTemplate" id="15">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry14" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry16" inherits="MCP_AddonListEntryTemplate" id="16">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry15" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry17" inherits="MCP_AddonListEntryTemplate" id="17">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry16" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry18" inherits="MCP_AddonListEntryTemplate" id="18">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry17" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry19" inherits="MCP_AddonListEntryTemplate" id="19">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry18" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentEntry20" inherits="MCP_AddonListEntryTemplate" id="20">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentEntry19" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<ScrollFrame name="$parent_ScrollFrame" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="510" y="410"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="49" y="-53"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentTop" 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 name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="106"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="-2" y="-2"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
						</Texture>
						<Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="60"/>
							</Size>
							<Anchors>
								<Anchor point="TOP" relativeTo="$parentTop" relativePoint="BOTTOM"/>
								<Anchor point="BOTTOM" relativeTo="$parentBottom" relativePoint="TOP"/>
							</Anchors>
							<TexCoords left="0" right="0.484375" top=".75" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(MCP_LINEHEIGHT, MCP_AddonList_OnShow);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>
			<Button name="$parent_ReloadUI" inherits="UIPanelButtonTemplate" text="MCP_RELOADUI">
				<Size>
					<AbsDimension x="160" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="14" y="-25"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						StaticPopup_Show("MCP_RELOADUI");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parent_EnableAll" inherits="UIPanelButtonTemplate" text="MCP_ENABLE_ALL">
				<Size>
					<AbsDimension x="160" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-70" y="-25"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						MCP_EnableAll();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parent_DisableAll" inherits="UIPanelButtonTemplate" text="MCP_DISABLE_ALL">
				<Size>
					<AbsDimension x="160" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-225" y="-25"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						MCP_DisableAll();
					</OnClick>
				</Scripts>
			</Button>
                        <Frame name="$parent_ProfileSelection" inherits="UIDropdownMenuTemplate" enableMouse="true">
                          <Anchors>
                            <Anchor point="BOTTOMLEFT">
                              <Offset>
                                <AbsDimension x="0" y="13" />
                              </Offset>
                            </Anchor>
                          </Anchors>
                          <Scripts>
                            <OnLoad>
                              MCP_ResetProfiles();
                            </OnLoad>
                            <OnShow>
                              MCP_ResetProfiles();
                            </OnShow>
                          </Scripts>
                        </Frame>
			<Button name="$parent_SaveProfile" inherits="UIPanelButtonTemplate" text="MCP_SAVE_PROFILE">
				<Size>
					<AbsDimension x="160" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-209" y="18"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						MCP_SaveDialog();
					</OnClick>
				</Scripts>
			</Button>
      			<Button name="$parent_DeleteProfile" inherits="UIPanelButtonTemplate" text="MCP_DELETE_PROFILE">
				<Size>
					<AbsDimension x="160" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-56" y="18"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						MCP_DeleteDialog();
					</OnClick>
				</Scripts>
			</Button>
                </Frames>
		<Scripts>
			<OnLoad>
				getglobal(this:GetName().."HeaderTitle"):SetText("Master Control Program "..MCP_VERSION);
			</OnLoad>
			<OnShow>
				MCP_AddonList_OnShow();
			</OnShow>
                        <OnMouseDown>
                                MCP_AddonList:StartMoving();
                        </OnMouseDown>
                        <OnDragStop>
                                MCP_AddonList:StopMovingOrSizing();
                        </OnDragStop>
                        <OnMouseUp>
                                MCP_AddonList:StopMovingOrSizing();
                        </OnMouseUp>
		</Scripts>
	</Frame>
</Ui>
