vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<!-- Options Pane Definition -->

<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/"> 
        
        <!-- CHECKBUTTON TEMPLATE -->
        <CheckButton name="SCTCheckTemplate" inherits="OptionsCheckButtonTemplate" virtual="true">
                <HitRectInsets>
                        <AbsInset left="0" right="0" top="0" bottom="0"/>
                </HitRectInsets>
                <Scripts>
                        <OnClick>
                                if ( this:GetChecked() ) then
                                        PlaySound("igMainMenuOptionCheckBoxOff");
                                else
                                        PlaySound("igMainMenuOptionCheckBoxOn");
                                end
                                SCT_OptionsCheckButtonOnClick();
                        </OnClick>
                </Scripts>
        </CheckButton>
        
        <!-- SLIDER TEMPLATE -->
        <Slider name="SCTSliderTemplate" inherits="OptionsSliderTemplate" virtual="true">
                <Scripts>
                        <OnValueChanged>
                                SCT_OptionsSliderOnValueChanged();
                        </OnValueChanged>
                </Scripts>
        </Slider >
        
        <!-- DROPDOWN TEMPLATE -->
        <Frame name="SCTDropdownTemplate" inherits="UIDropDownMenuTemplate" virtual="true">
                <Size>
                        <AbsDimension x="128" y="16"/>
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <FontString name="$parentLabel" inherits="GameFontNormalSmall">
                                        <Anchors>
                                                <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="21" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnLoad>
                                UIDropDownMenu_Initialize(this, SCT_DropDown_Initialize);
                        </OnLoad>
                        <OnEnter>
                                if ( this.tooltipText ) then
                                        GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                        GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
                                end
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
        </Frame>
        
        <!-- EVENT TEMPLATE -->
        <Frame name="SCTEventOptionTemplate" virtual="true">
                <Size>
                        <AbsDimension x="160" y="22"/>
                </Size>
                <Frames>
                        <Button name="$parent_ColorSwatch">
                                <Size>
                                        <AbsDimension x="16" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="LEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parent_SwatchBg">
                                                        <Size>
                                                                <AbsDimension x="14" y="14"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="CENTER">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Color r="1.0" g="1.0" b="1.0"/>
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnClick>
                                                SCT_OpenColorPicker(this:GetParent());
                                        </OnClick>
                                        <OnEnter>
                                                getglobal(this:GetName().."_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
                                        </OnEnter>
                                        <OnLeave>
                                                getglobal(this:GetName().."_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
                                        </OnLeave>
                                </Scripts>
                                <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
                        </Button>
                        <CheckButton name="$parent_CritCheckButton" inherits="SCTCheckTemplate">
                                <Size>
                                        <AbsDimension x="25" y="25"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parent_ColorSwatch" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_MsgCheckButton" inherits="SCTCheckTemplate">
                                <Size>
                                        <AbsDimension x="25" y="25"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parent_CritCheckButton" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="-4" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="$parent_CheckButton" inherits="SCTCheckTemplate">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parent_MsgCheckButton" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="-4" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                </Frames>
        </Frame>
                
        <!-- SAVE TEMPLATE -->
        <Button name = "SCTSaveTemplate" virtual="true">
                <Size>
                        <AbsDimension x="140" y="20" />
                </Size>
                <Layers>
                        <Layer level="BORDER">
                                <FontString name="$parent_Name" inherits="GameFontHighlightSmall" wraponspaces="false" justifyH="LEFT" text="">
                                        <Size>
                                                <AbsDimension x="140" y="20"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT"/>
                                        </Anchors>
                                </FontString>
                                <Texture name="$parent_BackTexture" file="Interface\DialogFrame\UI-DialogBox-Background">
                                        <Size>
                                                <AbsDimension x="140" y="18"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-1"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
                                </Texture>
                        </Layer>
                </Layers>
        </Button>

        <!-- SAVE LIST TEMPLATE -->
        <Button name = "SCTSaveListTemplate" inherits="SCTSaveTemplate" virtual="true">
                <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
                <Scripts>
                        <OnClick>
                                SCTSaveList_OnClick();
                        </OnClick>
                </Scripts>
        </Button>
        
        <!-- BUTTON TEMPLATE -->
        <Button name="SCTButtonTemplate" inherits="OptionsButtonTemplate" virtual="true">
                <Scripts>
                        <OnClick>
                                PlaySound("igMainMenuOptionCheckBoxOn");
                        </OnClick>
                        <OnEnter>
                                if (this.tooltipText) then
                                        GameTooltip_AddNewbieTip(this:GetText(), 1.0, 1.0, 1.0, this.tooltipText);
                                end
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
        </Button>
        
        <!-- MAIN OPTION FRAME -->
        <Frame name="SCTOptions" toplevel="true" frameStrata="LOW" movable="false" enableMouse="true" hidden="true" parent="UIParent">
                <Size>
                        <AbsDimension x="620" y="594"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER" />
                </Anchors>
                <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border"
                        tile="true">
                        <BackgroundInsets>
                                <AbsInset left="11" right="12" top="12" bottom="11" />  
                                <Size>
                                        <AbsDimension x="128" y="17" />
                                </Size>
                        </BackgroundInsets>
                        <TileSize>
                                <AbsValue val="32" />
                        </TileSize>
                        <EdgeSize>
                                <AbsValue val="32" />
                        </EdgeSize>
                </Backdrop>
                
                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="SCTFrameTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
                                        <Size>
                                                <AbsDimension x="276" y="64" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="12" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                                <FontString name="SCTOptionsFrame_Misc1" inherits="GameFontNormal">
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="SCTOptions">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>                               

                <Frames>
                
                        <!-- EVENTS OPTION FRAME -->
                        <Frame name="SCTOptions_EventsFrame" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="385" y="305"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="-50"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                        </OnLoad>
                                </Scripts>
                                <Frames>
                                
                                        <Frame name="SCTOptions_EventsFrameTitle">
                                                <Size>
                                                        <AbsDimension x="140" y="20"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>                      
                                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <EdgeSize>
                                                                <AbsValue val="8"/>
                                                        </EdgeSize>
                                                        <TileSize>
                                                                <AbsValue val="8"/>
                                                        </TileSize>
                                                        <BackgroundInsets>
                                                                <AbsInset left="2" right="2" top="2" bottom="2"/>
                                                        </BackgroundInsets>
                                                </Backdrop>
                                                <Layers>
                                                        <Layer>
                <FontString name="SCTOptionsFrame_Misc2" inherits="GameFontHighlight">
                    <Anchors>
                        <Anchor point="CENTER">
                            <Offset>
                                <AbsDimension x="0" y="0"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                        
                                        <CheckButton name="SCTOptionsFrame_CheckButton1" inherits="SCTCheckTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_EventsFrame" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="30" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </CheckButton>
                
                                        <Frame name="SCTOptionsFrame1" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_EventsFrame" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="10" y="-32" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                
                                        <Frame name="SCTOptionsFrame2" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame1" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                
                                        <Frame name="SCTOptionsFrame3" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame2" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                
                                        <Frame name="SCTOptionsFrame4" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame3" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                
                                        <Frame name="SCTOptionsFrame5" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame4" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                
                                        <Frame name="SCTOptionsFrame6" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame5" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                
                                        <Frame name="SCTOptionsFrame7" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame6" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame21" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame7" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                
                                        <Frame name="SCTOptionsFrame8" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame21" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame19" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame8" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                
                                        <Frame name="SCTOptionsFrame9" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame1" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="180" y="0" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame17" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame9" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame18" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame17" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                
                                        <Frame name="SCTOptionsFrame10" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame18" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame13" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame10" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame14" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame13" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame15" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame14" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame16" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame15" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame20" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame16" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame22" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame20" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-27" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                </Frames>
                        </Frame>
                        
                        <!-- TEXT OPTION FRAME -->
                        <Frame name="SCTOptions_TextFrame" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="190" y="285"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_EventsFrame" relativePoint="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="5" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                        </OnLoad>
                                </Scripts>
                                <Frames>
                                
                                        <Frame name="SCTOptions_TextFrameTitle">
                                                <Size>
                                                        <AbsDimension x="140" y="20"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>                      
                                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <EdgeSize>
                                                                <AbsValue val="8"/>
                                                        </EdgeSize>
                                                        <TileSize>
                                                                <AbsValue val="8"/>
                                                        </TileSize>
                                                        <BackgroundInsets>
                                                                <AbsInset left="2" right="2" top="2" bottom="2"/>
                                                        </BackgroundInsets>
                                                </Backdrop>
                                                <Layers>
                                                        <Layer>
                <FontString name="SCTOptionsFrame_Misc3" inherits="GameFontHighlight">
                    <Anchors>
                        <Anchor point="CENTER">
                            <Offset>
                                <AbsDimension x="0" y="0"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                                        
                                        <Slider name="SCTOptionsFrame_Slider2" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptions_TextFrame" relativePoint="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-45" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                        
                                        <Slider name="SCTOptionsFrame_Slider5" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptionsFrame_Slider2" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-20" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                        
                                        <Slider name="SCTOptionsFrame_Slider7" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptionsFrame_Slider5" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-20" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                        
                                        <Slider name="SCTOptionsFrame_Slider8" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptionsFrame_Slider7" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-20" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                        
                                        <Frame name="SCTOptionsFrame_Selection3" inherits="SCTDropdownTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SCTOptionsFrame_Slider8">
                                                                <Offset>
                                                                        <AbsDimension x="-20" y="-25"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame_Selection4" inherits="SCTDropdownTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptionsFrame_Selection3" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                </Frames>
                        </Frame>
                        
                        <!-- MESSAGE OPTION FRAME -->
                        <Frame name="SCTOptions_MessageFrame" inherits="OptionFrameBoxTemplate" hidden="true">
                                <Size>
                                        <AbsDimension x="190" y="285"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_EventsFrame" relativePoint="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="5" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                        </OnLoad>
                                </Scripts>
                                <Frames>
                                
                                        <Frame name="SCTOptions_MessageFrameTitle">
                                                <Size>
                                                        <AbsDimension x="140" y="20"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>                      
                                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <EdgeSize>
                                                                <AbsValue val="8"/>
                                                        </EdgeSize>
                                                        <TileSize>
                                                                <AbsValue val="8"/>
                                                        </TileSize>
                                                        <BackgroundInsets>
                                                                <AbsInset left="2" right="2" top="2" bottom="2"/>
                                                        </BackgroundInsets>
                                                </Backdrop>
                                                <Layers>
                                                        <Layer>
                <FontString name="SCTOptionsFrame_Misc16" inherits="GameFontHighlight">
                    <Anchors>
                        <Anchor point="CENTER">
                            <Offset>
                                <AbsDimension x="0" y="0"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                                        
                                        <Slider name="SCTOptionsFrame_Slider12" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptions_MessageFrame" relativePoint="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-45" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                        
                                        <Slider name="SCTOptionsFrame_Slider11" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptionsFrame_Slider12" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-20" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                
                                        <Slider name="SCTOptionsFrame_Slider9" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptionsFrame_Slider11" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-20" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                        
                                        <Slider name="SCTOptionsFrame_Slider10" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptionsFrame_Slider9" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-20" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                        
                                        <Frame name="SCTOptionsFrame_Selection5" inherits="SCTDropdownTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SCTOptionsFrame_Slider10">
                                                                <Offset>
                                                                        <AbsDimension x="-20" y="-25"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame_Selection6" inherits="SCTDropdownTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptionsFrame_Selection5" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                </Frames>
                        </Frame>
                                                
                        <!-- MISC FLAG OPTION FRAME -->
                        <Frame name="SCTOptions_MiscFrame" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="190" y="165"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_EventsFrame" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-35"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                        </OnLoad>
                                </Scripts>
                                <Frames>
                                
                                        <Frame name="SCTOptions_MiscFrameTitle">
                                                <Size>
                                                        <AbsDimension x="140" y="20"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>                      
                                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <EdgeSize>
                                                                <AbsValue val="8"/>
                                                        </EdgeSize>
                                                        <TileSize>
                                                                <AbsValue val="8"/>
                                                        </TileSize>
                                                        <BackgroundInsets>
                                                                <AbsInset left="2" right="2" top="2" bottom="2"/>
                                                        </BackgroundInsets>
                                                </Backdrop>
                                                <Layers>
                                                        <Layer>
                <FontString name="SCTOptionsFrame_Misc4" inherits="GameFontHighlight">
                    <Anchors>
                        <Anchor point="CENTER">
                            <Offset>
                                <AbsDimension x="0" y="0"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                
                                        <CheckButton name="SCTOptionsFrame_CheckButton2" inherits="SCTCheckTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_MiscFrame" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="10" y="-30" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </CheckButton>
                                        
                                        <CheckButton name="SCTOptionsFrame_CheckButton5" inherits="SCTCheckTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame_CheckButton2" relativePoint="left">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-25" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </CheckButton>
                                        
                                        <CheckButton name="SCTOptionsFrame_CheckButton7" inherits="SCTCheckTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame_CheckButton5" relativePoint="left">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-25" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </CheckButton>
                                        
                                        <CheckButton name="SCTOptionsFrame_CheckButton9" inherits="SCTCheckTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame_CheckButton7" relativePoint="left">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-25" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </CheckButton>
                                        
                                </Frames>
                        </Frame>
                        
                        <!-- SPELL OPTION FRAME -->
                        <Frame name="SCTOptions_SpellFrame" inherits="OptionFrameBoxTemplate" hidden="true">
                                <Size>
                                        <AbsDimension x="190" y="165"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_EventsFrame" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-35"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                        </OnLoad>
                                </Scripts>
                                <Frames>
                                
                                        <Frame name="SCTOptions_SpellFrameTitle">
                                                <Size>
                                                        <AbsDimension x="140" y="20"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>                      
                                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <EdgeSize>
                                                                <AbsValue val="8"/>
                                                        </EdgeSize>
                                                        <TileSize>
                                                                <AbsValue val="8"/>
                                                        </TileSize>
                                                        <BackgroundInsets>
                                                                <AbsInset left="2" right="2" top="2" bottom="2"/>
                                                        </BackgroundInsets>
                                                </Backdrop>
                                                <Layers>
                                                        <Layer>
                <FontString name="SCTOptionsFrame_Misc17" inherits="GameFontHighlight">
                    <Anchors>
                        <Anchor point="CENTER">
                            <Offset>
                                <AbsDimension x="0" y="0"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                
                                        <CheckButton name="SCTOptionsFrame_CheckButton3" inherits="SCTCheckTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_MiscFrame" relativePoint="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="10" y="-30" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </CheckButton>
                                        
                                        <CheckButton name="SCTOptionsFrame_CheckButton6" inherits="SCTCheckTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame_CheckButton3" relativePoint="left">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-25" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </CheckButton>
                                                                                
                                        <CheckButton name="SCTOptionsFrame_CheckButton8" inherits="SCTCheckTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame_CheckButton6" relativePoint="left">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-25" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </CheckButton>
                                        
                                        <CheckButton name="SCTOptionsFrame_CheckButton10" inherits="SCTCheckTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame_CheckButton8" relativePoint="left">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-25" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </CheckButton>
                                </Frames>
                        </Frame>
                        
                        <!-- WARNING OPTION FRAME -->
                        <Frame name="SCTOptions_WarningFrame" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="190" y="195"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_MiscFrame" relativePoint="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="5" y="30"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                        </OnLoad>
                                </Scripts>
                                <Frames>
                                
                                        <Frame name="SCTOptions_WarningFrameTitle">
                                                <Size>
                                                        <AbsDimension x="140" y="20"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>                      
                                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <EdgeSize>
                                                                <AbsValue val="8"/>
                                                        </EdgeSize>
                                                        <TileSize>
                                                                <AbsValue val="8"/>
                                                        </TileSize>
                                                        <BackgroundInsets>
                                                                <AbsInset left="2" right="2" top="2" bottom="2"/>
                                                        </BackgroundInsets>
                                                </Backdrop>
                                                <Layers>
                                                        <Layer>
                <FontString name="SCTOptionsFrame_Misc5" inherits="GameFontHighlight">
                    <Anchors>
                        <Anchor point="CENTER">
                            <Offset>
                                <AbsDimension x="0" y="0"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame11" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptions_WarningFrame" relativePoint="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="10" y="-40" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Slider name="SCTOptionsFrame_Slider3" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame11" relativePoint="left">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-30" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                        
                                        <Frame name="SCTOptionsFrame12" inherits="SCTEventOptionTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame11" relativePoint="LEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-80" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Slider name="SCTOptionsFrame_Slider4" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="SCTOptionsFrame12" relativePoint="left">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-30" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                </Frames>
                        </Frame>
                        
                        <!-- ANIMATION  FRAME -->
                        <Frame name="SCTOptions_AnimationFrame" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="190" y="195"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_WarningFrame" relativePoint="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="5" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                        </OnLoad>
                                </Scripts>
                                <Frames>
                                
                                        <Frame name="SCTOptions_AnimationFrameTitle">
                                                <Size>
                                                        <AbsDimension x="140" y="20"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>                      
                                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <EdgeSize>
                                                                <AbsValue val="8"/>
                                                        </EdgeSize>
                                                        <TileSize>
                                                                <AbsValue val="8"/>
                                                        </TileSize>
                                                        <BackgroundInsets>
                                                                <AbsInset left="2" right="2" top="2" bottom="2"/>
                                                        </BackgroundInsets>
                                                </Backdrop>
                                                <Layers>
                                                        <Layer>
                <FontString name="SCTOptionsFrame_Misc6" inherits="GameFontHighlight">
                    <Anchors>
                        <Anchor point="CENTER">
                            <Offset>
                                <AbsDimension x="0" y="0"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>                                                           
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame_Selection1" inherits="SCTDropdownTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SCTOptions_AnimationFrameTitle">
                                                                <Offset>
                                                                        <AbsDimension x="-20" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <Frame name="SCTOptionsFrame_Selection2" inherits="SCTDropdownTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SCTOptionsFrame_Selection1">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        
                                        <CheckButton name="SCTOptionsFrame_CheckButton4" inherits="SCTCheckTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="SCTOptionsFrame_Selection1">
                                                                <Offset>
                                                                        <AbsDimension x="15" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </CheckButton>
                                        
                                        <Slider name="SCTOptionsFrame_Slider1" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptionsFrame_Selection2" relativePoint="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="20" y="-45" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                        
                                        <Slider name="SCTOptionsFrame_Slider6" inherits="SCTSliderTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTOptionsFrame_Slider1" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-20" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Slider>
                                        
                                </Frames>
                        </Frame>
                        
                        <!-- Profiles Frame -->
                        <Frame name="SCTOptions_ProfilesFrame">
                                <Size>
                                        <AbsDimension x="200" y="24"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="SCTOptions_AnimationFrame">
                                                <Offset>
                                                        <AbsDimension x="-130" y="25" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        
                                <Frames>
                                                <!-- Select Profile Button -->
                                                <Button name="SCTOptionsFrame_Misc10" inherits="SCTButtonTemplate">
                                                        <Size>
                                                                <AbsDimension x="50" y="22"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="SCTOptions_ProfilesFrame">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="-2" />
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnClick>
                                                                        if ( ColorPickerFrame:IsVisible() ) then
                                                                                ColorPickerFrame:Hide();
                                                                        end
                                                                        SCTOptions_SaveLoadFrame:Show()
                                                                </OnClick>
                                                        </Scripts>
                                                </Button>
                                                
                                                <!-- Profile Edit Box -->
                                                <EditBox name="SCTOptionsProfileEditBox" letters="1000" autoFocus="false" inherits="InputBoxTemplate" frameStrata="HIGH">
                                                        <Size>
                                                                <AbsDimension x="150" y="22"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="SCTOptionsFrame_Misc10">
                                                                        <Offset>
                                                                                <AbsDimension x="10" y="0" />
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <FontString inherits="ChatFontNormal" font="Fonts\ARIALN.TTF">
                                                                <Color r="1" g="1" b="0"/>
                                                                <FontHeight>
                                                                        <AbsValue val="12"/>
                                                                </FontHeight>
                                                        </FontString>
                                                </EditBox>
                                                
                                                <!-- Load Profile Button -->
                                                <Button name="SCTOptionsFrame_Misc11" inherits="SCTButtonTemplate">
                                                        <Size>
                                                                <AbsDimension x="50" y="22"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="SCTOptionsProfileEditBox">
                                                                        <Offset>
                                                                                <AbsDimension x="5" y="0" />
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnClick>
                                                                        SCTLoadProfile();
                                                                </OnClick>
                                                        </Scripts>
                                                </Button>
                                                
                                                <!-- Delete Profile Button -->
                                                <Button name="SCTOptionsFrame_Misc12" inherits="SCTButtonTemplate">
                                                        <Size>
                                                                <AbsDimension x="50" y="22"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="SCTOptionsFrame_Misc11">
                                                                        <Offset>
                                                                                <AbsDimension x="5" y="0" />
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnClick>
                                                                        SCTDeleteProfile();
                                                                </OnClick>
                                                        </Scripts>
                                                </Button>
                                        </Frames>
                        </Frame>
                        
                        <!-- LOAD OPTION FRAME (HIDDEN) -->
                        <Frame name="SCTOptions_SaveLoadFrame" inherits="OptionFrameBoxTemplate" hidden="true" frameStrata="DIALOG">
                                <Size>
                                        <AbsDimension x="190" y="275"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOM" relativeTo="SCTOptionsFrame_Misc10" relativePoint="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="10"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0, 0, 0);
                                        </OnLoad>
                                </Scripts>
                                <Frames>
                                
                                        <Frame name="SCTOptions_SaveLoadFrameTitle">
                                                <Size>
                                                        <AbsDimension x="140" y="20"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>                      
                                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <EdgeSize>
                                                                <AbsValue val="8"/>
                                                        </EdgeSize>
                                                        <TileSize>
                                                                <AbsValue val="8"/>
                                                        </TileSize>
                                                        <BackgroundInsets>
                                                                <AbsInset left="2" right="2" top="2" bottom="2"/>
                                                        </BackgroundInsets>
                                                </Backdrop>
                                                <Layers>
                                                        <Layer>
                <FontString name="SCTOptionsFrame_Misc7" inherits="GameFontHighlight">
                    <Anchors>
                        <Anchor point="CENTER">
                            <Offset>
                                <AbsDimension x="0" y="0"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                                        
                                        <Button name = "SCTList1" inherits="SCTSaveListTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTOptions_SaveLoadFrameTitle" relativePoint="BOTTOMLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-5"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Button>
                                        <Button name = "SCTList2" inherits="SCTSaveListTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTList1" relativePoint="BOTTOMLEFT"/>
                                                </Anchors>
                                        </Button>
                                        <Button name = "SCTList3" inherits="SCTSaveListTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTList2" relativePoint="BOTTOMLEFT"/>
                                                </Anchors>
                                        </Button>
                                        <Button name = "SCTList4" inherits="SCTSaveListTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTList3" relativePoint="BOTTOMLEFT"/>
                                                </Anchors>
                                        </Button>
                                        <Button name = "SCTList5" inherits="SCTSaveListTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTList4" relativePoint="BOTTOMLEFT"/>
                                                </Anchors>
                                        </Button>
                                        <Button name = "SCTList6" inherits="SCTSaveListTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTList5" relativePoint="BOTTOMLEFT"/>
                                                </Anchors>
                                        </Button>
                                        <Button name = "SCTList7" inherits="SCTSaveListTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTList6" relativePoint="BOTTOMLEFT"/>
                                                </Anchors>
                                        </Button>
                                        <Button name = "SCTList8" inherits="SCTSaveListTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTList7" relativePoint="BOTTOMLEFT"/>
                                                </Anchors>
                                        </Button>
                                        <Button name = "SCTList9" inherits="SCTSaveListTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTList8" relativePoint="BOTTOMLEFT"/>
                                                </Anchors>
                                        </Button>
                                        <Button name = "SCTList10" inherits="SCTSaveListTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="SCTList9" relativePoint="BOTTOMLEFT"/>
                                                </Anchors>
                                        </Button>
                                        
                                        <!-- Cancel Button -->
                                        <Button name="SCTOptionsFrame_Misc13" inherits="SCTButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="SCTList10" relativePoint="BOTTOM">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-5"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                SCTOptions_SaveLoadFrame:Hide()
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                </Frames>
                        </Frame>
                        
                        <!-- Example Frame  -->
                        <Frame name="SCT_EXAMPLETEXT" toplevel="true" frameStrata="HIGH" hidden="true">
                                <Size>
                                        <AbsDimension x="24" y="24"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="CENTER">
                                                <Offset>
                                                        <AbsDimension x="0" y="60"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <FontString name="SCTaniExampleData1" inherits="MasterFont"/>
                                        </Layer>                
                                </Layers>
                        </Frame>
                        
                        <!-- Example MSG Frame  -->
                        <Frame name="SCT_EXAMPLEMSG" toplevel="true" frameStrata="HIGH" hidden="true">
                                <Size>
                                        <AbsDimension x="24" y="24"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="CENTER">
                                                <Offset>
                                                        <AbsDimension x="0" y="210"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <FontString name="SCTMsgExample1" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" justifyH="CENTER" outline="NORMAL">
                                                        <FontHeight>
                                                                <AbsValue val="20"/>
                                                        </FontHeight>
                                                </FontString>
                                        </Layer>                
                                </Layers>
                        </Frame>
                        
                        <!-- Save Button -->
                        <Button name="SCTOptionsFrame_Misc8" inherits="SCTButtonTemplate">
                                <Size>
                                        <AbsDimension x="150" y="21"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="SCTOptions_MiscFrame">
                                                <Offset>
                                                        <AbsDimension x="5" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                if ( ColorPickerFrame:IsVisible() ) then
                                                        ColorPickerFrame:Hide();
                                                end
                                                SCTSaveCurrentSettings();
                                                SCT_aniInit();
                                                SCT_hideMenu();
                                        </OnClick>
                                </Scripts>
                        </Button>
                        
                        <!-- Reset Button -->
                        <Button name="SCTOptionsFrame_Misc9" inherits="SCTButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-20" y="-16"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                StaticPopupDialogs["SCT_RESET"] = {
                                                  text = SCT_OPTION_MISC9.tooltipText,
                                                  button1 = TEXT(OKAY) ,
                                                  button2 = TEXT(CANCEL) ,
                                                  OnAccept = function()
                                                      SCT_Reset();
                                                  end,
                                                  timeout = 0,
                                                  whileDead = 1,
                                                  hideOnEscape = 1,
                                                  showAlert = 1
                                                };
                                        </OnLoad>
                                        <OnClick>
                                                StaticPopup_Show("SCT_RESET");
                                        </OnClick>
                                </Scripts>
                        </Button>
                        
                        <!-- Scrolling Text Button -->
                        <Button name="SCTOptionsFrame_Misc14" inherits="TabButtonTemplate" text="test1234">
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeTo="SCTOptions_TextFrame">
                                                <Offset>
                                                        <AbsDimension x="10" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                PanelTemplates_SelectTab(this);
                                                PanelTemplates_DeselectTab(SCTOptionsFrame_Misc15);
                                                SCTOptions_MessageFrame:Hide();
                                                SCTOptions_TextFrame:Show();
                                        </OnClick>
                                        <OnLoad>
                                                <!-- Size it properly -->
                                                PanelTemplates_SelectTab(this);
                                                PanelTemplates_TabResize(-10, this);
                                                getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
                                        </OnLoad>
                                </Scripts>
                        </Button>
                        
                        <!-- Message Text Button -->
                        <Button name="SCTOptionsFrame_Misc15" inherits="TabButtonTemplate" text="test123456">
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" relativeTo="SCTOptions_TextFrame">
                                                <Offset>
                                                        <AbsDimension x="-10" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                PanelTemplates_SelectTab(this);
                                                PanelTemplates_DeselectTab(SCTOptionsFrame_Misc14);
                                                SCTOptions_TextFrame:Hide();
                                                SCTOptions_MessageFrame:Show();
                                        </OnClick>
                                        <OnLoad>
                                                <!-- Size it properly -->
                                                PanelTemplates_DeselectTab(this);
                                                PanelTemplates_TabResize(-10, this);
                                                getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
                                        </OnLoad>
                                </Scripts>
                        </Button>
                        
                        <!-- Misc Button -->
                        <Button name="SCTOptionsFrame_Misc18" inherits="TabButtonTemplate" text="test1234">
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeTo="SCTOptions_MiscFrame">
                                                <Offset>
                                                        <AbsDimension x="10" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                PanelTemplates_SelectTab(this);
                                                PanelTemplates_DeselectTab(SCTOptionsFrame_Misc19);
                                                SCTOptions_SpellFrame:Hide();
                                                SCTOptions_MiscFrame:Show();
                                        </OnClick>
                                        <OnLoad>
                                                <!-- Size it properly -->
                                                PanelTemplates_SelectTab(this);
                                                PanelTemplates_TabResize(-10, this);
                                                getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
                                        </OnLoad>
                                </Scripts>
                        </Button>
                        
                        <!-- Spell Button -->
                        <Button name="SCTOptionsFrame_Misc19" inherits="TabButtonTemplate" text="test123456">
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" relativeTo="SCTOptions_SpellFrame">
                                                <Offset>
                                                        <AbsDimension x="-10" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                PanelTemplates_SelectTab(this);
                                                PanelTemplates_DeselectTab(SCTOptionsFrame_Misc18);
                                                SCTOptions_MiscFrame:Hide();
                                                SCTOptions_SpellFrame:Show();
                                        </OnClick>
                                        <OnLoad>
                                                <!-- Size it properly -->
                                                PanelTemplates_DeselectTab(this);
                                                PanelTemplates_TabResize(-10, this);
                                                getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
                                        </OnLoad>
                                </Scripts>
                        </Button>
                        
                </Frames>
                <Scripts>
                        <OnShow>
                                SCTOptionsFrame_OnShow();
                        </OnShow>
                </Scripts>
        </Frame>
</Ui>

Generated by GNU Enscript 1.6.5.90.