vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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="Parchment.lua"/>
        <Button name="Parchment_TabTemplate" virtual="true" hidden="false">
        <Size>
            <AbsDimension x="128" y="64"/>
        </Size>
                <HitRectInsets>
                        <AbsInset left="15" right="14" top="13" bottom="15"/>
                </HitRectInsets>
          <Scripts>
                        <OnClick>
                                ParchmentTab_OnClick();
                        </OnClick>
                        <OnEnter>
                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
                <NormalText inherits="GameFontNormalSmall">
                        <Anchors>
                                <Anchor point="CENTER">
                                        <Offset>
                                                <AbsDimension x="0" y="3"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </NormalText>
                <HighlightText inherits="GameFontHighlightSmall">
                        <Anchors>
                                <Anchor point="CENTER">
                                        <Offset>
                                                <AbsDimension x="0" y="3"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </HighlightText>
                <DisabledText inherits="GameFontHighlightSmall">
                        <Anchors>
                                <Anchor point="CENTER">
                                        <Offset>
                                                <AbsDimension x="0" y="6"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </DisabledText>
                <NormalTexture file="Interface\SpellBook\UI-SpellBook-Tab-Unselected"/>
        <HighlightTexture file="Interface\SpellBook\UI-SpellbookPanel-Tab-Highlight"/>
    </Button>

        <Frame name="ParchmentFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true">
                <Size>
                        <AbsDimension x="384" y="512"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="-104"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Layers>
                        <Layer level="BACKGROUND">
                <Texture name="ParchmentFramePortrait" file="Interface\FriendsFrame\FriendsFrameScrollIcon">
                                        <Size>
                                                <AbsDimension x="60" y="60"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="8" y="-9"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                </Texture>
                        </Layer>
                        <Layer level="ARTWORK">
                                <FontString name="ParchmentTitleText" inherits="GameFontNormal">
                                        <Anchors>
                                                <Anchor point="CENTER">
                                                        <Offset>
                                                                <AbsDimension x="6" y="226"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                        <Layer level="BACKGROUND">
                                <Texture file="Interface\QuestFrame\UI-QuestGreeting-TopLeft">
                                        <Size>
                                                <AbsDimension x="256" y="256"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT"/>
                                        </Anchors>
                                </Texture>
                                <Texture file="Interface\QuestFrame\UI-QuestGreeting-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\QuestFrame\UI-QuestGreeting-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\QuestFrame\UI-QuestGreeting-BotRight">
                                        <Size>
                                                <AbsDimension x="128" y="256"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="256" y="-256"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                        </Layer>
                </Layers>
                <Frames>
                        <Button name="ParchmentFrameCloseButton" inherits="UIPanelCloseButton">
                                        <Anchors>
                                                <Anchor point="TOPRIGHT">
                                                        <Offset>
                                                                <AbsDimension x="-26" y="-15"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnClick>
                                                        HideUIPanel(ParchmentFrame);
                                                </OnClick>
                                        </Scripts>
                        </Button>
                        <!-- Tabs -->
                        <Button name="ParchmentFrameTab1" inherits="Parchment_TabTemplate" id="1" text="Parchment">
                <Anchors>
                    <Anchor point="CENTER" relativePoint="BOTTOMLEFT">
                        <Offset>
                            <AbsDimension x="79" y="55"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                                <DisabledTexture file="Interface\SpellBook\UI-SpellBook-Tab1-Selected"/>
            </Button>
                        <Button name="ParchmentFrameTab2" inherits="Parchment_TabTemplate" id="2" text="Options">
                <Anchors>
                    <Anchor point="LEFT" relativeTo="ParchmentFrameTab1" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="-20" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                                <DisabledTexture file="Interface\SpellBook\UI-SpellBook-Tab1-Selected"/>
            </Button>

                        <Frame name="ParchmentDataFrame" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT"/>
                                </Anchors>
                                <Size>
                                        <AbsDimension x="384" y="512"/>
                                </Size>
                                <Frames>
                                        <Button name="ParchmentDeleteButton" inherits="UIPanelButtonTemplate" text="Delete">
                                                <Size>
                                                        <AbsDimension x="65" y="22"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentFrame" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="70" y="-50"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                        <OnClick>
                                                                Parchment_Delete_Character();
                                                        </OnClick>
                                                </Scripts>
                                        </Button>

                                        <Frame name="Parchment_UserDropdown" inherits="UIDropDownMenuTemplate" enableMouse="true">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentDeleteButton" relativePoint="TOPRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-7" y="2"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                </Scripts>
                                        </Frame>

                                        <CheckButton name="Parchment_Tack" inherits="UICheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="Parchment_UserDropdown" relativePoint="TOPRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-8" y="2"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="-100" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Scripts>
                                                        <OnClick>
                                                                Parchment_Tack_Character();
                                                        </OnClick>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                </Scripts>
                                        </CheckButton>
                                        <Button name="ParchmentCancelButton" inherits="UIPanelButtonTemplate" text="Cancel">
                                                <Size>
                                                        <AbsDimension x="77" y="21"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="BOTTOMLEFT" relativeTo="ParchmentFrame" relativePoint="BOTTOMLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="20" y="74"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                Parchment_Cancel();
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                        <Button name="ParchmentClearButton" inherits="UIPanelButtonTemplate" text="Clear">
                                                <Size>
                                                        <AbsDimension x="77" y="21"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="BOTTOM" relativeTo="ParchmentFrame" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="73"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                Parchment_Clear();
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                        <Button name="ParchmentSaveButton" inherits="UIPanelButtonTemplate" text="Save">
                                                <Size>
                                                        <AbsDimension x="77" y="21"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="BOTTOMRIGHT" relativeTo="ParchmentFrame" relativePoint="BOTTOMRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-39" y="74"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                HideUIPanel(ParchmentFrame);
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                        <ScrollFrame name="ParchmentScrollFrame" inherits="UIPanelScrollFrameTemplate">
                                                <Size>
                                                        <AbsDimension x="300" y="334"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="23" y="-81"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Layers>
                                                        <Layer level="ARTWORK">
                                                                <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                                                                        <Size>
                                                                                <AbsDimension x="30" y="256"/>
                                                                        </Size>
                                                                        <Anchors>
                                                                                <Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton">
                                                                                        <Offset>
                                                                                                <AbsDimension x="0" y="5"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                        <TexCoords left="1" right="1" top="1" bottom="1"/>
                                                                </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="1" right="1" top="1" bottom="1"/>
                                                                </Texture>
                                                                <FontString name="Parchment_Text_Length" inherits="GameFontNormal">
                                                                        <Anchors>
                                                                                <Anchor point="BOTTOMRIGHT" relativeTo="ParchmentSaveButton">
                                                                                        <Offset>
                                                                                                <AbsDimension x="0" y="-25" />
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <ScrollChild>
                                                        <Frame name="ParchmentScrollChildFrame" enableMouse="true">
                                                                <Size>
                                                                        <AbsDimension x="300" y="255"/>
                                                                </Size>
                                                                <Anchors>
                                                                        <Anchor point="TOPLEFT">
                                                                                <Offset>
                                                                                        <AbsDimension x="0" y="0"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Frames>
                                                                        <EditBox name="ParchmentEditBox" multiLine="true" enableMouse="true" autoFocus="false">
                                                                                <Size>
                                                                                        <AbsDimension x="270" y="200"/>
                                                                                </Size>
                                                                                <Anchors>
                                                                                        <Anchor point="TOPLEFT">
                                                                                                <Offset>
                                                                                                        <AbsDimension x="20" y="-10"/>
                                                                                                </Offset>
                                                                                        </Anchor>
                                                                                </Anchors>
                                                                                <Scripts>
                                                                                        <OnEscapePressed>
                                                                                                HideUIPanel(ParchmentFrame);
                                                                                        </OnEscapePressed>
                                                                                        <OnTextChanged>
                                                                                                local scrollBar = getglobal(this:GetParent():GetParent():GetName().."ScrollBar")
                                                                                                this:GetParent():GetParent():UpdateScrollChildRect();
                                                                                                local min;
                                                                                                local max;
                                                                                                min, max = scrollBar:GetMinMaxValues();
                                                                                                if ( max > 0 and (this.max ~= max) ) then
                                                                                                        this.max = max;
                                                                                                end
                                                                                                Parchment_UpdateTextLength(); <!-- Might not be needed if the dropdown change is considered ontextchanged -->
                                                                                        </OnTextChanged>
                                                                                        <OnClick>
                                                                                                this:SetFocus();
                                                                                        </OnClick>
                                                                                </Scripts>
                                                                                <FontString inherits="ItemTextFontNormal"/>
                                                                        </EditBox>
                                                                </Frames>
                                                                <Scripts>
                                                                        <OnMouseUp>
                                                                                ParchmentEditBox:SetFocus();
                                                                        </OnMouseUp>
                                                                </Scripts>
                                                        </Frame>
                                                </ScrollChild>
                                        </ScrollFrame>
                                </Frames>
                                <Scripts>
                                        <OnShow>
                                                ParchmentDataFrame_OnShow();
                                        </OnShow>
                                        <OnHide>
                                                ParchmentSaveText();
                                        </OnHide>
                                </Scripts>
                        </Frame>

                        <Frame name="ParchmentOptionsFrame" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT"/>
                                </Anchors>
                                <Size>
                                        <AbsDimension x="384" y="512"/>
                                </Size>
                                <Frames>
                                        <CheckButton name="ParchmentLock_Check" inherits="UICheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="50" y="-100"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="-100" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Scripts>
                                                        <OnClick>
                                                                ParchmentLock_CheckOnClick();
                                                        </OnClick>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                </Scripts>
                                        </CheckButton>
                                        <Button name="ParchmentResetButton" inherits="UIPanelButtonTemplate" text="Reset">
                                                <Size>
                                                        <AbsDimension x="77" y="21"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentLock_Check" relativePoint="TOPRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="120" y="-5"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                        <OnClick>
                                                                Parchment_SlashCommandHandler("reset");
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                        <CheckButton name="ParchmentAllRealms" inherits="UICheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentLock_Check" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-30"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="-100" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Scripts>
                                                        <OnClick>
                                                                ParchmentAllRealms_CheckOnClick();
                                                        </OnClick>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                </Scripts>
                                        </CheckButton>

                                        <CheckButton name="ParchmentShowButton" inherits="UICheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentAllRealms" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-30"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="-100" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Scripts>
                                                        <OnClick>
                                                                ParchmentButton_Toggle();
                                                        </OnClick>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                </Scripts>
                                        </CheckButton>

                                        <CheckButton name="ParchmentShowTackButton" inherits="UICheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentShowButton" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-30"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="-100" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Scripts>
                                                        <OnClick>
                                                                ParchmentTack_OnClick();
                                                        </OnClick>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                </Scripts>
                                        </CheckButton>

                                        <CheckButton name="ParchmentLockTackButton" inherits="UICheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentShowTackButton" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-30"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="-100" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Scripts>
                                                        <OnClick>
                                                                ParchmentLockTack_OnClick();
                                                        </OnClick>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                </Scripts>
                                        </CheckButton>

                                        <Button name="ParchmentTackResetButton" inherits="UIPanelButtonTemplate" text="Reset">
                                                <Size>
                                                        <AbsDimension x="77" y="21"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentLockTackButton" relativePoint="TOPRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="120" y="-5"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                        <OnClick>
                                                                Parchment_SlashCommandHandler("resettack");
                                                        </OnClick>
                                                </Scripts>
                                        </Button>

                                        <CheckButton name="ParchmentTackBorder" inherits="UICheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentLockTackButton" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-30"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="-100" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Scripts>
                                                        <OnClick>
                                                                ParchmentTackBorder_OnClick();
                                                        </OnClick>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                </Scripts>
                                        </CheckButton>

                                        <Button name="ParchmentAddChapterButton" inherits="UIPanelButtonTemplate" text="Add a Chapter">
                                                <Size>
                                                        <AbsDimension x="120" y="21"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentTackBorder" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-40"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnEnter>
                                                                GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
                                                                GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
                                                        </OnEnter>
                                                        <OnLeave>
                                                                GameTooltip:Hide();
                                                        </OnLeave>
                                                        <OnClick>
                                                                ParchmentAddChapterButton_OnClick();
                                                        </OnClick>
                                                </Scripts>
                                        </Button>

                                        <Slider name="Parchment_Slider" inherits="OptionsSliderTemplate">
                                                <Size>
                                                        <AbsDimension x="220" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="ParchmentAddChapterButton" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-50"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnLoad>
                                                                Parchment_Slider:SetMinMaxValues(0,360);
                                                                Parchment_Slider:SetValueStep(1);
                                                        </OnLoad>
                                                        <OnValueChanged>
                                                                Parchment_Config.ButtonPos = Parchment_Slider:GetValue();
                                                                ParchmentButton_UpdatePosition();
                                                        </OnValueChanged>
                                                </Scripts>
                                        </Slider>

                                        <Slider name="Parchment_Alpha" inherits="OptionsSliderTemplate">
                                                <Size>
                                                        <AbsDimension x="220" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="Parchment_Slider" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-40" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnLoad>
                                                                Parchment_Alpha:SetMinMaxValues(0.0,1.0);
                                                                Parchment_Alpha:SetValueStep(0.01);
                                                        </OnLoad>
                                                        <OnValueChanged>
                                                                Parchment_Config.Alpha = Parchment_Alpha:GetValue();
                                                                Parchment_UpdateAlpha();
                                                        </OnValueChanged>
                                                </Scripts>
                                        </Slider>

                                        <Button name="ParchmentDefaultButton" inherits="UIPanelButtonTemplate" text="Defaults">
                                                <Size>
                                                        <AbsDimension x="77" y="21"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="BOTTOMLEFT" relativeTo="ParchmentFrame" relativePoint="BOTTOMLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="20" y="74"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                Parchment_Load_Defaults();
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                        <Button name="ParchmentOptionsCloseButton" inherits="UIPanelButtonTemplate" text="Close">
                                                <Size>
                                                        <AbsDimension x="77" y="21"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="BOTTOMRIGHT" relativeTo="ParchmentFrame" relativePoint="BOTTOMRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-39" y="74"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                HideUIPanel(ParchmentFrame);
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                </Frames>
                                <Scripts>
                                        <OnShow>
                                                ParchmentOptionsFrame_OnShow();
                                        </OnShow>
                                </Scripts>
                        </Frame>
                </Frames>
                <Scripts>
                        <OnLoad>
                                Parchment_OnLoad();
                        </OnLoad>
                        <OnEvent>
                                Parchment_OnEvent(event);
                        </OnEvent>
                        <OnShow>
                                Parchment_OnShow();
                        </OnShow>
                        <OnHide>
                                Parchment_OnHide();
                        </OnHide>
                         <OnDragStart>
                                Parchment_OnDragStart();
                        </OnDragStart>
                        <OnDragStop>
                                Parchment_OnDragStop();
                        </OnDragStop>
                        <OnMouseUp>
                                Parchment_OnDragStop();
                        </OnMouseUp>
                </Scripts>
        </Frame>
</Ui>