vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
        <Script file="IMBA_Options.lua"/>

        <Frame name="IMBA_Options" toplevel="true" parent="UIParent" enableMouse="true" movable="true" hidden="true">
                <Size>
                        <AbsDimension x="600" y="365"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER"/>
                </Anchors>
                <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                        <EdgeSize>
                                <AbsValue val="16"/>
                        </EdgeSize>
                        <TileSize>
                                <AbsValue val="16"/>
                        </TileSize>
                        <BackgroundInsets>
                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                        </BackgroundInsets>
                </Backdrop>
                <Frames>
                        <Frame name="$parent_Title" inherits="IMBA_MainTitleTemplate">
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="-12"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>

                                
                        <Frame name="$parent_BossFrame" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="580" y="300"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="8"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Frames>
                                        <Frame name="$parent_BossMod1" id="1" inherits="IMBA_BossModTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="24" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        <Frame name="$parent_BossMod2" id="2" inherits="IMBA_BossModTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod1">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        <Frame name="$parent_BossMod3" id="3" inherits="IMBA_BossModTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod2">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        <Frame name="$parent_BossMod4" id="4" inherits="IMBA_BossModTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod3">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        <Frame name="$parent_BossMod5" id="5" inherits="IMBA_BossModTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod4">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        <Frame name="$parent_BossMod6" id="6" inherits="IMBA_BossModTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod5">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        <Frame name="$parent_BossMod7" id="7" inherits="IMBA_BossModTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod6">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        <Frame name="$parent_BossMod8" id="8" inherits="IMBA_BossModTemplate" hidden="false">
                                                <Anchors>
                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_BossMod7">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Frame>
                                        <ScrollFrame name="$parent_ScrollFrame" inherits="FauxScrollFrameTemplate">
                                                <Size>
                                                        <AbsDimension x="500" y="280"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="44" y="-10"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnVerticalScroll>
                                                                FauxScrollFrame_OnVerticalScroll(25, IMBA_Options_Update);
                                                        </OnVerticalScroll>
                                                </Scripts>
                                        </ScrollFrame>
                                </Frames>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.0, 0.0, 0.0,0.5);
                                        </OnLoad>
                                </Scripts>
                        </Frame>
                        <Frame name="$parent_GraphicsFrame" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="580" y="300"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="8"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>
                                                <AbsValue val="16"/>
                                        </EdgeSize>
                                        <TileSize>
                                                <AbsValue val="16"/>
                                        </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                        </BackgroundInsets>
                                </Backdrop>
                                <Frames>
                                        <Slider name="$parent_Slider_Scale" inherits="OptionsSliderTemplate">
                                                <Size>
                                                        <AbsDimension x="260" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="-140" y="-24"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetMinMaxValues(0.5,1.25);
                                                                getglobal(this:GetName().."High"):SetText("1.25");
                                                                getglobal(this:GetName().."Low"):SetText("0.5");
                                                                getglobal(this:GetName()):SetValue(1.0);
                                                                getglobal(this:GetName().."Text"):SetText(string.format("Window Scale Size : %.2f",this:GetValue()));
                                                                this:SetValueStep(0.05);                                                
                                                        </OnLoad>
                                                        <OnValueChanged>
                                                                IMBA_SavedVariables.Scale=this:GetValue();
                                                                getglobal(this:GetName().."Text"):SetText(string.format("Window Scale Size : %.2f",this:GetValue()));
                                                                IMBA_SetScale();                                        
                                                        </OnValueChanged>
                                                </Scripts>
                                        </Slider>
                                        <Slider name="$parent_Slider_Icon" inherits="OptionsSliderTemplate">
                                                <Size>
                                                        <AbsDimension x="260" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="140" y="-24"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetMinMaxValues(0,360);
                                                                getglobal(this:GetName().."High"):SetText("360");
                                                                getglobal(this:GetName().."Low"):SetText("0");
                                                                getglobal(this:GetName()):SetValue(0);
                                                                getglobal(this:GetName().."Text"):SetText(string.format("Minimap Icon Position : %.0f",this:GetValue()));
                                                                this:SetValueStep(1);                                           
                                                        </OnLoad>
                                                        <OnValueChanged>
                                                                IMBA_SavedVariables.ButtonPos=this:GetValue();
                                                                IMBA_OptionButton_MoveButton();
                                                                getglobal(this:GetName().."Text"):SetText(string.format("Minimap Icon Position : %.0f",this:GetValue()));                               
                                                        </OnValueChanged>
                                                </Scripts>
                                        </Slider>
                                        <Slider name="$parent_Slider_ScaleAlert" inherits="OptionsSliderTemplate">
                                                <Size>
                                                        <AbsDimension x="260" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="-140" y="-72"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetMinMaxValues(0.5,1.0);
                                                                getglobal(this:GetName().."High"):SetText("1.0");
                                                                getglobal(this:GetName().."Low"):SetText("0.5");
                                                                getglobal(this:GetName()):SetValue(1.0);
                                                                getglobal(this:GetName().."Text"):SetText(string.format("Alert Scale Size : %.2f",this:GetValue()));
                                                                this:SetValueStep(0.05);                                                
                                                        </OnLoad>
                                                        <OnValueChanged>
                                                                IMBA_SavedVariables.ScaleAlert=this:GetValue();
                                                                IMBA_SetScaleAlert();
                                                                IMBA_AddAlert("Alert Test Message 3");
                                                                IMBA_AddAlert("Alert Test Message 2");
                                                                IMBA_AddAlert("Alert Test Message 1");
                                                        </OnValueChanged>
                                                </Scripts>
                                        </Slider>
                                        
                                        <Slider name="$parent_Slider_CombatLogDist" inherits="OptionsSliderTemplate">
                                                <Size>
                                                        <AbsDimension x="260" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="140" y="-72"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetMinMaxValues(30,200);
                                                                getglobal(this:GetName().."High"):SetText("200");
                                                                getglobal(this:GetName().."Low"):SetText("30");
                                                                getglobal(this:GetName()):SetValue(1.0);
                                                                getglobal(this:GetName().."Text"):SetText(string.format("Combat Log Distance : %.0f",this:GetValue()));
                                                                this:SetValueStep(10);                                          
                                                        </OnLoad>
                                                        <OnValueChanged>
                                                                IMBA_SavedVariables.CombatLogDist=this:GetValue();
                                                                getglobal(this:GetName().."Text"):SetText(string.format("Combat Log Distance : %.0f",this:GetValue()));
                                                                if IMBA_Loaded then
                                                                        IMBA_SetLogDistance(IMBA_SavedVariables.CombatLogDist);
                                                                end
                                                        </OnValueChanged>
                                                </Scripts>
                                        </Slider>
                                        <CheckButton name="$parent_HideMinimapIcon" hidden="false" inherits="OptionsCheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="14" y="-106"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="0" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Size>
                                                        <AbsDimension x="24" y="24"/>
                                                </Size>
                                                <Layers>
                                                        <Layer level="OVERLAY">                         
                                                                <FontString name="$parent_Text" inherits="GameFontNormal" text="Hide Minimap Icon">
                                                                        <Anchors>
                                                                                <Anchor point="LEFT">
                                                                                        <Offset>
                                                                                                <AbsDimension x="28" y="1"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnClick>
                                                                if ( this:GetChecked() ) then
                                                                        PlaySound("igMainMenuOptionCheckBoxOff");
                                                                else
                                                                        PlaySound("igMainMenuOptionCheckBoxOn");
                                                                end
                                                                IMBA_HideMinimapIcon_Clicked();
                                                        </OnClick>
                                                </Scripts>
                                        </CheckButton>
                                        <CheckButton name="$parent_ShowAlertWindow" hidden="false" inherits="OptionsCheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="$parent_HideMinimapIcon" relativePoint="RIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="135" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="0" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Size>
                                                        <AbsDimension x="24" y="24"/>
                                                </Size>
                                                <Layers>
                                                        <Layer level="OVERLAY">                         
                                                                <FontString name="$parent_Text" inherits="GameFontNormal" text="Show Alert Window">
                                                                        <Anchors>
                                                                                <Anchor point="LEFT">
                                                                                        <Offset>
                                                                                                <AbsDimension x="28" y="1"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnClick>
                                                                if ( this:GetChecked() ) then
                                                                        PlaySound("igMainMenuOptionCheckBoxOff");
                                                                else
                                                                        PlaySound("igMainMenuOptionCheckBoxOn");
                                                                end
                                                                IMBA_ShowAlertWindow_Clicked();
                                                        </OnClick>
                                                </Scripts>
                                        </CheckButton>
                                        <CheckButton name="$parent_DontRaidBroadcast" hidden="false" inherits="OptionsCheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="$parent_ShowAlertWindow" relativePoint="RIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="135" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="0" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Size>
                                                        <AbsDimension x="24" y="24"/>
                                                </Size>
                                                <Layers>
                                                        <Layer level="OVERLAY">                         
                                                                <FontString name="$parent_Text" inherits="GameFontNormal" text="No Raid Warnings">
                                                                        <Anchors>
                                                                                <Anchor point="LEFT">
                                                                                        <Offset>
                                                                                                <AbsDimension x="28" y="1"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnClick>
                                                                if ( this:GetChecked() ) then
                                                                        PlaySound("igMainMenuOptionCheckBoxOff");
                                                                else
                                                                        PlaySound("igMainMenuOptionCheckBoxOn");
                                                                end
                                                                IMBA_DontRaidBroadcast_Clicked();
                                                        </OnClick>
                                                </Scripts>
                                        </CheckButton>

                                        <CheckButton name="$parent_UseSCTForAlerts" hidden="false" inherits="OptionsCheckButtonTemplate">
                                                <Anchors>
                                                        <Anchor point="LEFT" relativeTo="$parent_DontRaidBroadcast" relativePoint="RIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="130" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <HitRectInsets>
                                                        <AbsInset left="0" right="0" top="0" bottom="0"/>
                                                </HitRectInsets>
                                                <Size>
                                                        <AbsDimension x="24" y="24"/>
                                                </Size>
                                                <Layers>
                                                        <Layer level="OVERLAY">                         
                                                                <FontString name="$parent_Text" inherits="GameFontNormal" text="Use SCT">
                                                                        <Anchors>
                                                                                <Anchor point="LEFT">
                                                                                        <Offset>
                                                                                                <AbsDimension x="28" y="1"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnClick>
                                                                if ( this:GetChecked() ) then
                                                                        PlaySound("igMainMenuOptionCheckBoxOff");
                                                                else
                                                                        PlaySound("igMainMenuOptionCheckBoxOn");
                                                                end
                                                                IMBA_UseSCTForAlerts_Clicked();
                                                        </OnClick>
                                                </Scripts>
                                        </CheckButton>
                                        
                                        <Frame name="$parent_FrameSettings" inherits="OptionFrameBoxTemplate">
                                                <Size>
                                                        <AbsDimension x="280" y="140"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="BOTTOMLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="10" y="8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Frames>
                                                        <Frame name="$parent_Title" inherits="IMBA_TitleTemplate">
                                                                <Anchors>
                                                                        <Anchor point="BOTTOM" relativePoint="TOP">
                                                                                <Offset>
                                                                                        <AbsDimension x="0" y="2"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                        </Frame>
                                                        <Frame name="$parent_DropDown" inherits="UIDropDownMenuTemplate" id="1">
                                                                <Anchors>
                                                                        <Anchor point="TOPLEFT">
                                                                                <Offset>
                                                                                        <AbsDimension x="0" y="-20"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Layers>
                                                                        <Layer level="OVERLAY">
                                                                                <FontString inherits="GameFontHighlightSmall" text="Frame Type">
                                                                                        <Anchors>
                                                                                                <Anchor point="TOPLEFT">
                                                                                                        <Offset>
                                                                                                                <AbsDimension x="20" y="7"/>
                                                                                                        </Offset>
                                                                                                </Anchor>
                                                                                        </Anchors>
                                                                                </FontString>
                                                                        </Layer>
                                                                </Layers>
                                                                <Scripts>
                                                                        <OnLoad>
                                                                                IMBA_FrameSettingsDropDown_OnLoad();
                                                                        </OnLoad>
                                                                        <OnShow>
                                                                                IMBA_FrameSettingsDropDown_OnLoad();
                                                                        </OnShow>
                                                                </Scripts>
                                                        </Frame>
                                                        <Button name="$parent_BGColor" inherits="IMBA_ColorButton">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_DropDown">
                                                                                <Offset>
                                                                                        <AbsDimension x="135" y="8"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Scripts>
                                                                        <OnLoad>
                                                                                this.AttachFrame="IMBA_Options"
                                                                                this.color={r=1.0, g=0.0, b=0.0};
                                                                                this.callback=IMBA_FrameColorsChanged;
                                                                        </OnLoad>
                                                                </Scripts>
                                                        </Button>
                                                        <Button name="$parent_BorderColor" inherits="IMBA_ColorButton">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_BGColor">
                                                                                <Offset>
                                                                                        <AbsDimension x="8" y="0"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Scripts>
                                                                        <OnLoad>
                                                                                this.AttachFrame="IMBA_Options"
                                                                                this.color={r=1.0, g=0.0, b=0.0};
                                                                                this.callback=IMBA_FrameColorsChanged;
                                                                        </OnLoad>
                                                                </Scripts>
                                                        </Button>
                                                        <CheckButton name="$parent_CloseButtons" hidden="false" inherits="OptionsCheckButtonTemplate">
                                                                <Anchors>
                                                                        <Anchor point="TOPLEFT">
                                                                                <Offset>
                                                                                        <AbsDimension x="14" y="-54"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <HitRectInsets>
                                                                        <AbsInset left="0" right="0" top="0" bottom="0"/>
                                                                </HitRectInsets>
                                                                <Size>
                                                                        <AbsDimension x="24" y="24"/>
                                                                </Size>
                                                                <Layers>
                                                                        <Layer level="OVERLAY">                         
                                                                                <FontString name="$parent_Text" inherits="GameFontNormal" text="Hide Close Buttons">
                                                                                        <Anchors>
                                                                                                <Anchor point="LEFT">
                                                                                                        <Offset>
                                                                                                                <AbsDimension x="28" y="1"/>
                                                                                                        </Offset>
                                                                                                </Anchor>
                                                                                                
                                                                                        </Anchors>
                                                                                </FontString>
                                                                        </Layer>
                                                                </Layers>
                                                                <Scripts>
                                                                        <OnClick>
                                                                                if ( this:GetChecked() ) then
                                                                                        PlaySound("igMainMenuOptionCheckBoxOff");
                                                                                else
                                                                                        PlaySound("igMainMenuOptionCheckBoxOn");
                                                                                end
                                                                                IMBA_HideCloseButtons_Clicked()
                                                                        </OnClick>
                                                                </Scripts>
                                                        </CheckButton>
                                                        <Button name="$parent_Reset" inherits="OptionsButtonTemplate" text="Reset to Defaults">
                                                                <Anchors>
                                                                        <Anchor point="BOTTOM">
                                                                                <Offset>
                                                                                        <AbsDimension x="-67.5" y="8"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Size>
                                                                        <AbsDimension x="135" y="24"/>
                                                                </Size>
                                                                <Scripts>
                                                                        <OnClick>
                                                                                IMBA_LoadDefault_FrameSettings();
                                                                        </OnClick>
                                                                </Scripts>
                                                        </Button>
                                                        <Button name="$parent_ResetPos" inherits="OptionsButtonTemplate" text="Reset Positions">
                                                                <Anchors>
                                                                        <Anchor point="BOTTOM">
                                                                                <Offset>
                                                                                        <AbsDimension x="67.5" y="8"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Size>
                                                                        <AbsDimension x="135" y="24"/>
                                                                </Size>
                                                                <Scripts>
                                                                        <OnClick>
                                                                                IMBA_ResetPositions();
                                                                        </OnClick>
                                                                </Scripts>
                                                        </Button>       
                                                </Frames>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                                this:SetBackdropColor(0.0, 0.0, 0.0,0.5);
                                                                getglobal(this:GetName().."_Title"):SetText("Frame Settings");
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>


                                        <Frame name="$parent_BarSettings" inherits="OptionFrameBoxTemplate">
                                                <Size>
                                                        <AbsDimension x="280" y="140"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="BOTTOMRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-10" y="8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Frames>
                                                        <Frame name="$parent_Title" inherits="IMBA_TitleTemplate">
                                                                <Anchors>
                                                                        <Anchor point="BOTTOM" relativePoint="TOP">
                                                                                <Offset>
                                                                                        <AbsDimension x="0" y="2"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                        </Frame>
                                                        <Frame name="$parent_DropDown" inherits="UIDropDownMenuTemplate" id="1">
                                                                <Anchors>
                                                                        <Anchor point="TOPLEFT">
                                                                                <Offset>
                                                                                        <AbsDimension x="0" y="-20"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Layers>
                                                                        <Layer level="OVERLAY">
                                                                                <FontString inherits="GameFontHighlightSmall" text="Bar Type">
                                                                                        <Anchors>
                                                                                                <Anchor point="TOPLEFT">
                                                                                                        <Offset>
                                                                                                                <AbsDimension x="20" y="7"/>
                                                                                                        </Offset>
                                                                                                </Anchor>
                                                                                        </Anchors>
                                                                                </FontString>
                                                                        </Layer>
                                                                </Layers>
                                                                <Scripts>
                                                                        <OnLoad>
                                                                                IMBA_BarSettingsDropDown_OnLoad();
                                                                        </OnLoad>
                                                                        <OnShow>
                                                                                IMBA_BarSettingsDropDown_OnLoad();
                                                                        </OnShow>
                                                                </Scripts>
                                                        </Frame>
                                                        <Button name="$parent_EndColor" inherits="IMBA_ColorButton">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_DropDown">
                                                                                <Offset>
                                                                                        <AbsDimension x="135" y="12"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Scripts>
                                                                        <OnLoad>
                                                                                this.AttachFrame="IMBA_Options"
                                                                                this.color={r=1.0, g=0.0, b=0.0};
                                                                                this.callback=IMBA_BarColorsChanged;
                                                                        </OnLoad>
                                                                </Scripts>
                                                        </Button>
                                                        <Button name="$parent_StartColor" inherits="IMBA_ColorButton">
                                                                <Anchors>
                                                                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_EndColor">
                                                                                <Offset>
                                                                                        <AbsDimension x="8" y="0"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Scripts>
                                                                        <OnLoad>
                                                                                this.AttachFrame="IMBA_Options"
                                                                                this.color={r=1.0, g=0.0, b=0.0};
                                                                                this.callback=IMBA_BarColorsChanged;
                                                                        </OnLoad>
                                                                </Scripts>                              
                                                        </Button>
                                                        <Button name="$parent_InnerColor" inherits="IMBA_ColorButton">
                                                                <Anchors>
                                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_EndColor">
                                                                                <Offset>
                                                                                        <AbsDimension x="0" y="-4"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Scripts>
                                                                        <OnLoad>
                                                                                this.AttachFrame="IMBA_Options"
                                                                                this.color={r=1.0, g=0.0, b=0.0, a=0.0};
                                                                                this.callback=IMBA_BarColors2Changed;
                                                                        </OnLoad>
                                                                </Scripts>
                                                        </Button>
                                                        <Button name="$parent_BorderColor" inherits="IMBA_ColorButton">
                                                                <Anchors>
                                                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_StartColor">
                                                                                <Offset>
                                                                                        <AbsDimension x="0" y="-4"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Scripts>
                                                                        <OnLoad>
                                                                                this.AttachFrame="IMBA_Options"
                                                                                this.color={r=1.0, g=0.0, b=0.0, a=0.0};
                                                                                this.callback=IMBA_BarColors2Changed;
                                                                        </OnLoad>
                                                                </Scripts>                              
                                                        </Button>
                                                        <CheckButton name="$parent_CustomColors" hidden="false" inherits="OptionsCheckButtonTemplate">
                                                                <Anchors>
                                                                        <Anchor point="TOPLEFT">
                                                                                <Offset>
                                                                                        <AbsDimension x="14" y="-54"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <HitRectInsets>
                                                                        <AbsInset left="0" right="0" top="0" bottom="0"/>
                                                                </HitRectInsets>
                                                                <Size>
                                                                        <AbsDimension x="24" y="24"/>
                                                                </Size>
                                                                <Layers>
                                                                        <Layer level="OVERLAY">                         
                                                                                <FontString name="$parent_Text" inherits="GameFontNormal" text="Custom Colors">
                                                                                        <Anchors>
                                                                                                <Anchor point="LEFT">
                                                                                                        <Offset>
                                                                                                                <AbsDimension x="28" y="1"/>
                                                                                                        </Offset>
                                                                                                </Anchor>
                                                                                                
                                                                                        </Anchors>
                                                                                </FontString>
                                                                        </Layer>
                                                                </Layers>
                                                                <Scripts>
                                                                        <OnClick>
                                                                                if ( this:GetChecked() ) then
                                                                                        PlaySound("igMainMenuOptionCheckBoxOff");
                                                                                else
                                                                                        PlaySound("igMainMenuOptionCheckBoxOn");
                                                                                end
                                                                                IMBA_CustomColors_Clicked();
                                                                        </OnClick>
                                                                </Scripts>
                                                        </CheckButton>
                                                        
                                                        <StatusBar name="$parent_SampleBar" inherits="IMBA_BarTimerTemplate">
                                                                <Anchors>
                                                                        <Anchor point="BOTTOM">
                                                                                <Offset>
                                                                                        <AbsDimension x="0" y="12"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Size>
                                                                        <AbsDimension x="240" y="16"/>
                                                                </Size>
                                                        </StatusBar>
                                                        <Button name="$parent_Reset" inherits="OptionsButtonTemplate" text="Reset to Defaults">
                                                                <Anchors>
                                                                        <Anchor point="BOTTOM" relativeTo="$parent_SampleBar" relativePoint="TOP">
                                                                                <Offset>
                                                                                        <AbsDimension x="0" y="8"/>
                                                                                </Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                                <Size>
                                                                        <AbsDimension x="160" y="24"/>
                                                                </Size>
                                                                <Scripts>
                                                                        <OnClick>
                                                                                IMBA_LoadDefault_BarSettings();
                                                                        </OnClick>
                                                                </Scripts>
                                                        </Button>       
                                                </Frames>
                                                <Scripts>
                                                        <OnLoad>
                                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                                this:SetBackdropColor(0.0, 0.0, 0.0,0.5);
                                                                getglobal(this:GetName().."_Title"):SetText("Bar Settings");
                                                                getglobal(this:GetName().."_SampleBar"):SetBarText("Sample Bar");
                                                                getglobal(this:GetName().."_SampleBar"):StartTimer(10,true);
                                                                getglobal(this:GetName().."_SampleBarBG"):SetWidth(240)
                                                        </OnLoad>
                                                </Scripts>
                                        </Frame>
                                        
                                </Frames>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.0, 0.0, 0.0,0.5);
                                                this:Hide();
                                        </OnLoad>
                                </Scripts>
                        </Frame>

                        <Button name="$parent_Tab1" id="1" text="Mod Options">
                <Size>
                                        <AbsDimension x="115" y="42"/>
                                </Size>
                                <Anchors>
                    <Anchor point="BOTTOMLEFT" relativeTo="$parent_BossFrame" relativePoint="TOPLEFT">
                        <Offset>
                            <AbsDimension x="20" y="-4"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab">
                                                        <Size>
                                                                <AbsDimension x="16" y="42"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="BOTTOMLEFT"/>
                                                        </Anchors>
                                                        <TexCoords left="0" right="0.25" top="0" bottom="1.0"/>
                                                </Texture>
                                                <Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab">
                                                        <Size>
                                                                <AbsDimension x="32" y="42"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                                                        </Anchors>
                                                        <TexCoords left="0.25" right="0.75" top="0" bottom="1.0"/>
                                                </Texture>
                                                <Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab">
                                                        <Size>
                                                                <AbsDimension x="16" y="42"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
                                                        </Anchors>
                                                        <TexCoords left="0.75" right="1.0" top="0" bottom="1.0"/>
                                                </Texture>
                                        </Layer>
                                </Layers>
                <Scripts>
                                        <OnLoad>
                                                PanelTemplates_TabResize(0);
                                                getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31);
                                                --IMBA_Options_Tab1LeftDisabled:SetTexture("Interface\\OptionsFrame\\OptionsFrameTab-Active");
                                                --IMBA_Options_Tab1MiddleDisabled:SetTexture("Interface\\OptionsFrame\\OptionsFrameTab-Active");
                                                --IMBA_Options_Tab1RightDisabled:SetTexture("Interface\\OptionsFrame\\OptionsFrameTab-Active");
                                        </OnLoad>
                                        <OnClick>
                                                PanelTemplates_Tab_OnClick(UIOptionsFrame);
                                                IMBA_ShowModOptions();
                                                PlaySound("igCharacterInfoTab");
                                                IMBA_Options_Tab2:SetPoint("LEFT", "IMBA_Options_Tab1", "RIGHT", 3, -1);
                                                IMBA_Options_Tab1:SetPoint("BOTTOMLEFT", "IMBA_Options_BossFrame", "TOPLEFT", 20, -4);

                                                IMBA_Options_Tab1:SetAlpha(1.0);
                                                IMBA_Options_Tab2:SetAlpha(0.6);                                                
                                        </OnClick>
                </Scripts>
                                <ButtonText name="$parentText">
                                        <Size>
                                                <AbsDimension x="0" y="13"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="BOTTOM">
                                                        <Offset>
                                                                <AbsDimension x="0" y="5"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </ButtonText>
                                <NormalFont inherits="GameFontNormal"/>
                                <HighlightFont inherits="GameFontHighlight"/>
                                <DisabledFont inherits="GameFontHighlight"/>
                                <HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
                                        <Size>
                                                <AbsDimension x="5" y="32"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="BOTTOM">
                                                        <Offset>
                                                                <AbsDimension x="2" y="-8"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </HighlightTexture>
            </Button>
            <Button name="$parent_Tab2" id="2" text="IMBA Options">
                <Size>
                                        <AbsDimension x="115" y="42"/>
                                </Size>
                                <Anchors>
                   <Anchor point="LEFT" relativeTo="IMBA_Options_Tab1" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="3" y="-1"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab">
                                                        <Size>
                                                                <AbsDimension x="16" y="42"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="BOTTOMLEFT"/>
                                                        </Anchors>
                                                        <TexCoords left="0" right="0.25" top="0" bottom="1.0"/>
                                                </Texture>
                                                <Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab">
                                                        <Size>
                                                                <AbsDimension x="32" y="42"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                                                        </Anchors>
                                                        <TexCoords left="0.25" right="0.75" top="0" bottom="1.0"/>
                                                </Texture>
                                                <Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab">
                                                        <Size>
                                                                <AbsDimension x="16" y="42"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
                                                        </Anchors>
                                                        <TexCoords left="0.75" right="1.0" top="0" bottom="1.0"/>
                                                </Texture>
                                        </Layer>
                                </Layers>
                <Scripts>
                                        <OnLoad>
                                                PanelTemplates_TabResize(0);
                                                getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31);
                                                this:SetAlpha(0.6);
                                        </OnLoad>
                                        <OnClick>
                                                PanelTemplates_Tab_OnClick(UIOptionsFrame);
                                                IMBA_ShowGraphicsOptions();
                                                PlaySound("igCharacterInfoTab");
                                                IMBA_Options_Tab2:SetPoint("LEFT", "IMBA_Options_Tab1", "RIGHT", 3, 1);
                                                IMBA_Options_Tab1:SetPoint("BOTTOMLEFT", "IMBA_Options_GraphicsFrame", "TOPLEFT", 20, -4);

                                                IMBA_Options_Tab1:SetAlpha(0.6);
                                                IMBA_Options_Tab2:SetAlpha(1.0);                                                
                                        </OnClick>
                </Scripts>
                                <ButtonText name="$parentText">
                                        <Size>
                                                <AbsDimension x="0" y="13"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="BOTTOM">
                                                        <Offset>
                                                                <AbsDimension x="0" y="5"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </ButtonText>
                                <NormalFont inherits="GameFontNormal"/>
                                <HighlightFont inherits="GameFontHighlight"/>
                                <DisabledFont inherits="GameFontHighlight"/>
                                <HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
                                        <Size>
                                                <AbsDimension x="5" y="32"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="BOTTOM">
                                                        <Offset>
                                                                <AbsDimension x="2" y="-8"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </HighlightTexture>
            </Button>


                        <Frame name="$parent_Close" enableMouse="true">
                                <Size>
                                        <AbsDimension x="24" y="24"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="OVERLAY">
                                                <Texture name="$parent_Image" file="Interface\AddOns\IMBA\textures\close.blp">
                                                        <Size>
                                                                <AbsDimension x="32" y="32"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOPRIGHT"/>
                                                        </Anchors>
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(1, 1, 1, 1);
                                                this:SetBackdropColor(0.0,0.0,0.0,0.6);
                                        </OnLoad>
                                        <OnMouseDown>
                                                IMBA_Options:Hide();
                                        </OnMouseDown>
                                </Scripts>
                        </Frame>
                        
                </Frames>
                <Scripts>
                        <OnLoad>
                                IMBA_Options_OnLoad();
                                
                        </OnLoad>
                        <OnEvent>
                                IMBA_Options_OnEvent(event);
                        </OnEvent>
                        <OnMouseUp>
                         if ( this.isMoving ) then
                          this:StopMovingOrSizing();
                          this.isMoving = false;
                         end
                        </OnMouseUp>
                        <OnMouseDown>
                         if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
                          this:StartMoving();
                          this.isMoving = true;
                         end
                        </OnMouseDown>
                        <OnHide>
                         if ( this.isMoving ) then
                          this:StopMovingOrSizing();
                          this.isMoving = false;
                         end
                        </OnHide>
                </Scripts>
        </Frame>
</Ui>

Generated by GNU Enscript 1.6.5.90.