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">
        <!-- Internationalized Text File -->
        <Script file="localization.lua"/>
        <Script file="localization.de.lua"/>
        <Script file="localization.fr.lua"/>
        
        <Include file="UltimateUIButton.xml"/>
        <Script file="UltimateUICommonFunctions.lua"/>
        <Script file="UltimateUICVar.lua"/>
        <Script file="UltimateUIGuiConfig.lua"/>
        
        <!-- Main Script File -->
        <Script file="UltimateUIMaster.lua" />
        
        <!-- Graphical Templates used -->
        
        <Include file="UltimateUITooltip.xml" />
        
        <!-- updated the menu look, sleeker and more elegant - nathanmx -->
        <Button name="UltimateUISectionButtonTemplate" virtual="true">
                <Size>
                        <AbsDimension x="132" y="23"/>
                </Size>
                <NormalText name="$parentNormalText" inherits="GameFontNormalSmall" justifyH="LEFT">
                        <Anchors>
                                <Anchor point="LEFT">
                                        <Offset>
                                                <AbsDimension x="4" y="2"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </NormalText>
                <HighlightText name="$parentHighlightText" inherits="GameFontHighlightSmall" justifyH="LEFT">
                        <Anchors>
                                <Anchor point="LEFT">
                                        <Offset>
                                                <AbsDimension x="4" y="2"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </HighlightText>
                <Scripts>
                        <OnClick>
                                UltimateUIMaster_Section_OnClick(this:GetID());
                        </OnClick>
                        <OnEnter>
                                UltimateUIMaster_SetSectionInfo(this:GetID());
                        </OnEnter>
                </Scripts>
                <HighlightTexture file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD">
                        <TexCoords left="0" right="1.0" top="0" bottom="0.578125"/>
                </HighlightTexture>
        </Button>
        <!--
        <Button name="UltimateUISectionButtonTemplate" virtual="true">
                <Size>
                        <AbsDimension x="132" y="20"/>
                </Size>
                <Scripts>
                        <OnClick>
                                UltimateUIMaster_Section_OnClick(this:GetID());
                        </OnClick>
                        <OnEnter>
                                UltimateUIMaster_SetSectionInfo(this:GetID());
                        </OnEnter>
                </Scripts>
                <NormalTexture name="$parentNormalTexture" file="Interface\AuctionFrame\UI-AuctionFrame-FilterBg">
                        <TexCoords left="0" right="0.53125" top="0" bottom="0.625"/>
                </NormalTexture>
                <HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD"/>
                <NormalText name="$parentNormalText" inherits="GameFontNormalSmall" justifyH="LEFT">
                        <Anchors>
                                <Anchor point="LEFT">
                                        <Offset>
                                                <AbsDimension x="4" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </NormalText>
                <HighlightText name="$parentHighlightText" inherits="GameFontHighlightSmall" justifyH="LEFT">
                        <Anchors>
                                <Anchor point="LEFT">
                                        <Offset>
                                                <AbsDimension x="4" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </HighlightText>
        </Button>
        -->
        <Frame name="UltimateUIMasterTextSubFrameTemplate" movable="false" virtual="true">
                <Anchors>
                        <Anchor point="CENTER" relativePoint="CENTER">
                                <Offset>
                                        <AbsDimension x="-70" y="0" />
                                </Offset>
                        </Anchor>
                </Anchors>
                <Size>
                        <AbsDimension x="215" y="32" />
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentBackground" setAllPoints="true">
                                        <Color r="0" g="1" b="0" a="0.0" />
                                </Texture>
                        </Layer>
                        <Layer level="ARTWORK">
                                <FontString name="$parentText" inherits="GameFontNormalSmall" text="">
                                        <Anchors>
                                                <Anchor point="LEFT">
                                                        <Offset>
                                                                <AbsDimension x="4" y="0" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
        </Frame>
        
        <CheckButton name="UltimateUIMasterCheckButtonTemplate" hidden="false" virtual="true">
                <Anchors>
                        <Anchor point="LEFT">
                                <Offset>
                                        <AbsDimension x="0" y="0" />
                                </Offset>
                        </Anchor>
                </Anchors>
                <Size>
                        <AbsDimension x="32" y="32" />
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentCheckbuttonBackground" setAllPoints="true">
                                        <Color r="0" g="0" b="1" a="0.0" />
                                </Texture>
                        </Layer>
                </Layers>
                <NormalTexture file="Interface\Buttons\UI-CheckBox-Up" />
                <PushedTexture file="Interface\Buttons\UI-CheckBox-Down" />
                <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD" />
                <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check" />
                <CheckedDisabledTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled" />
                <DisabledTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled" />
        </CheckButton>  
        <Button name="UltimateUIMasterButtonTemplate" inherits="GameMenuButtonTemplate" virtual="true">
                <Size>
                        <AbsDimension x="128" y="20" />
                </Size>
                <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM">
                                <Offset>
                                        <AbsDimension x="13" y="7" />
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                        <OnLoad>
                                this:SetText("EMPTY");
                        </OnLoad>
                        <OnClick>
                                UltimateUIMaster_Button(this:GetParent():GetID());
                        </OnClick>
                </Scripts>
        </Button>
        <Slider name="UltimateUIMasterSliderTemplate" orientation="HORIZONTAL" virtual="true">
                <Size>
                        <AbsDimension x="128" y="17" />
                </Size>
                <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border"
                        tile="true">
                        <EdgeSize>
                                <AbsValue val="8" />
                        </EdgeSize>
                        <TileSize>
                                <AbsValue val="8" />
                        </TileSize>
                        <BackgroundInsets>
                                <AbsInset left="3" right="3" top="6" bottom="6" />
                        </BackgroundInsets>
                </Backdrop>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentSliderBackground" setAllPoints="true">
                                        <Color r="0" g="1" b="1" a="0.0" />
                                </Texture>
                        </Layer>
                        <Layer level="ARTWORK">
                                <FontString name="$parentText" inherits="GameFontNormalSmall">
                                        <Anchors>
                                                <Anchor point="BOTTOM" relativePoint="TOP" />
                                        </Anchors>
                                </FontString>
                                <FontString name="$parentValueText" inherits="GameFontNormalSmall">
                                        <Color r=".4" g=".6" b="1" a="1" />
                                        <Anchors>
                                                <Anchor point="BOTTOM" relativePoint="BOTTOM">
                                                        <Offset>
                                                                <AbsDimension x="2" y="-6" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <FontString inherits="GameFontHighlightSmall" text="LOW">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
                                                        <Offset>
                                                                <AbsDimension x="2" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <FontString inherits="GameFontHighlightSmall" text="HIGH">
                                        <Anchors>
                                                <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
                                                        <Offset>
                                                                <AbsDimension x="-2" y="3" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <ThumbTexture file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
                        <Size>
                                <AbsDimension x="32" y="32" />
                        </Size>
                </ThumbTexture>
        </Slider>
        <Frame name="UltimateUIMasterDividerTemplate" hidden="false" virtual="true">
                <Size>
                        <AbsDimension x="524" y="19" />
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentLeft" file="Interface\HelpFrame\HelpFrameDivider">
                                        <Size>
                                                <AbsDimension x="134" y="10" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" />
                                        </Anchors>
                                        <TexCoords left="0" right="1.0" top="0" bottom="0.3125" />
                                </Texture>
                                <Texture name="$parentMiddle" file="Interface\HelpFrame\HelpFrameDivider">
                                        <Size>
                                                <AbsDimension x="304" y="10" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
                                                        <Offset>
                                                                <AbsDimension x="0" y="1" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <TexCoords left="0" right="1.0" top="0.3125" bottom="0.625" />
                                </Texture>
                                <Texture name="$parentRight" file="Interface\HelpFrame\HelpFrameDivider">
                                        <Size>
                                                <AbsDimension x="101" y="10" />
                                        </Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT" />
                                        </Anchors>
                                        <TexCoords left="0" right="0.25390625" top="0.625" bottom="0.9375" />
                                </Texture>
                        </Layer>
                </Layers>
        </Frame>
        <Frame name="UltimateUIMasterSeparatorTemplate" hidden="false" virtual="true">
                <Size>
                        <AbsDimension x="280" y="32" />
                </Size>
                <Layers>
                        <Layer level="ARTWORK">
                                <FontString name="$parentText" inherits="GameFontNormalSmall" text="">
                                        <Anchors>
                                                <Anchor point="CENTER">
                                                        <Offset>
                                                                <AbsDimension x="0" y="2" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Color r="1.0" g="0.5" b="0.2" a="1.0" />
                                </FontString>
                        </Layer>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentSeparatorBackground" file="Interface\Tooltips\UI-StatusBar-Border"></Texture>
                        </Layer>
                </Layers>
        </Frame>
        <Frame name="UltimateUIMasterConfigurationTemplate" hidden="false" virtual="true">
                <Size>
                        <AbsDimension x="200" y="32" />
                </Size>
                <Frames>
                        <Frame name="$parentFrame" inherits="UltimateUIMasterTextSubFrameTemplate"/>
                        <CheckButton name="$parentCheckbox" inherits="UltimateUIMasterCheckButtonTemplate">
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="LEFT">
                                        <Offset>
                                                <AbsDimension x="-100" y="0" />
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                if (not UltimateUIMasterFrame_IsLoading) then
                                        if ( this:GetChecked() ) then
                                                        UltimateUIMaster_CheckBox(this:GetParent():GetID(), 1.0);
                                                else
                                                        UltimateUIMaster_CheckBox(this:GetParent():GetID(), 0.0);
                                                end     
                                        end
                                </OnClick>
                        <OnEnter>
                                UltimateUIMaster_SetInfo(this:GetParent():GetID());
                        </OnEnter>
                        <OnLeave>
                                --UltimateUIMaster_ClearInfo();
                        </OnLeave>
                                </Scripts>
                        </CheckButton>
                        <Frame name="$parentSeparator" movable="false" inherits="UltimateUIMasterSeparatorTemplate">
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="-12" y="0" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnEnter>
                                                UltimateUIMaster_SetInfo(this:GetParent():GetID());
                                        </OnEnter>
                                </Scripts>                              
                        </Frame>

                        <Button name="$parentButton" inherits="UltimateUIMasterButtonTemplate">
                                <!--<Anchors>
                                        <Anchor point="CENTER">
                                                <Offset>
                                                        <AbsDimension x="70" y="1" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>-->
                                <Scripts>
                                        <OnClick>
                                                PlaySound("igMainMenuOption");
                                                UltimateUIMaster_Button(this:GetParent():GetID());
                                        </OnClick>
                                </Scripts>
                        </Button>
                        <Slider name="$parentSlider" inherits="UltimateUIMasterSliderTemplate">
                                <Anchors>
                                        <Anchor point="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="40" y="-8" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnValueChanged>
                                                if (not UltimateUIMasterFrame_IsLoading) then
                                                UltimateUIMaster_Slider(this:GetParent():GetID(), arg1);
                                                end
                                        </OnValueChanged>
                                        <OnEnter>
                                                UltimateUIMaster_SetInfo(this:GetParent():GetID());
                                        </OnEnter>
                                        <OnLeave>
                                                --UltimateUIMaster_ClearInfo();
                                        </OnLeave>
                                </Scripts>
                        </Slider>
                </Frames>
        </Frame>
        <!-- Frame Definition  -->

        <Frame name="UltimateUIMasterFrame" hidden="true" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" parent="UIParent">
                <Size>
                        <AbsDimension x="550" y="480" />
                </Size>
                <Anchors>
                        <Anchor point="CENTER" />
                </Anchors>
                <Backdrop name="UUIMasterFrameBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                        <EdgeSize>
                                <AbsValue val="16"/>
                        </EdgeSize>
                        <!--<TileSize>
                                <AbsValue val="24"/>
                        </TileSize>-->
                        <BackgroundInsets>
                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                        </BackgroundInsets>
                </Backdrop>

                <!-- UltimateUI Master Controls-->
                <Frames>
        <Frame name="UUITitleFrameBg">
                                <Size>
                                        <AbsDimension x="367" y="25"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-10" y="-10"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                <Backdrop name="UUITitleFrameBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                        <EdgeSize>
                                <AbsValue val="16"/>
                        </EdgeSize>
                        <BackgroundInsets>
                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                        </BackgroundInsets>
                </Backdrop>
                <Layers>
                        <Layer level="ARTWORK">
                                <FontString inherits="GameFontNormal" text="UltimateUI">
                                        <Anchors>
                                                <Anchor point="CENTER" relativeTo="UUITitleFrameBg">
                                                        <Offset>
                                                                <AbsDimension x="0" y="0" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnLoad>
                        </OnLoad>
                </Scripts>
        </Frame>
                        <ScrollFrame name="UltimateUIMasterSectionScrollFrame" inherits="FauxScrollFrameTemplate">
                                <Size>
                                        <AbsDimension x="125" y="360" />
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIMasterFrame">
                                                <Offset>
                                                        <AbsDimension x="16" y="-16" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <Texture name="$parentScrollBarTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                                                        <Size>
                                                                <AbsDimension x="31" y="288" />
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="5" />
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0" right="0.484375" top="0" bottom="1.0" />
                                                </Texture>
                                                <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                                                        <Size>
                                                                <AbsDimension x="31" y="128" />
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="BOTTOM" relativeTo="$parentScrollBarScrollDownButton">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="-2" />
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625" />
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnVerticalScroll>
                                                        FauxScrollFrame_OnVerticalScroll(32, UltimateUIMaster_Update);
                                        </OnVerticalScroll>
                                </Scripts>
                        </ScrollFrame>
        <Frame name="UUIAddonFrameBg">
                                <Size>
                                        <AbsDimension x="168" y="369"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="5" y="-5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                <Backdrop name="UUIAddonFrameBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                        <EdgeSize>
                                <AbsValue val="16"/>
                        </EdgeSize>
                        <BackgroundInsets>
                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                        </BackgroundInsets>
                </Backdrop>
                
                <Scripts>
                        <OnLoad>
                        </OnLoad>
                </Scripts>
        </Frame>
        
        <Frame name="UUIMainFrameBg">
                                <Size>
                                        <AbsDimension x="376" y="369"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-5" y="-5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                <Backdrop name="UUIMainFrameBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                        <EdgeSize>
                                <AbsValue val="16"/>
                        </EdgeSize>
                        <BackgroundInsets>
                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                        </BackgroundInsets>
                </Backdrop>
                
                <Scripts>
                        <OnLoad>
                        </OnLoad>
                </Scripts>
        </Frame>
                        <Button name="UltimateUISection1" inherits="UltimateUISectionButtonTemplate" id="1">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="10" y="-15"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection2" inherits="UltimateUISectionButtonTemplate" id="2">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection1">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection3" inherits="UltimateUISectionButtonTemplate" id="3">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection2">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection4" inherits="UltimateUISectionButtonTemplate" id="4">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection3">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection5" inherits="UltimateUISectionButtonTemplate" id="5">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection4">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection6" inherits="UltimateUISectionButtonTemplate" id="6">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection5">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection7" inherits="UltimateUISectionButtonTemplate" id="7">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection6">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection8" inherits="UltimateUISectionButtonTemplate" id="8">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection7">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection9" inherits="UltimateUISectionButtonTemplate" id="9">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection8">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection10" inherits="UltimateUISectionButtonTemplate" id="10">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection9">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection11" inherits="UltimateUISectionButtonTemplate" id="11">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection10">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection12" inherits="UltimateUISectionButtonTemplate" id="12">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection11">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection13" inherits="UltimateUISectionButtonTemplate" id="13">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection12">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection14" inherits="UltimateUISectionButtonTemplate" id="14">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection13">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection15" inherits="UltimateUISectionButtonTemplate" id="15">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection14">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection16" inherits="UltimateUISectionButtonTemplate" id="16">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection15">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection17" inherits="UltimateUISectionButtonTemplate" id="17">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection16">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="UltimateUISection18" inherits="UltimateUISectionButtonTemplate" id="18">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="UltimateUISection17">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        
                        <Frame name="UltimateUI1" inherits="UltimateUIMasterConfigurationTemplate" id="1">
                                <Anchors>
                                        <Anchor point="CENTER" relativePoint="TOP">
                                                <Offset>
                                                        <AbsDimension x="94" y="-48" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="UltimateUI2" inherits="UltimateUIMasterConfigurationTemplate" id="2">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="UltimateUI1" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="UltimateUI3" inherits="UltimateUIMasterConfigurationTemplate" id="3">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="UltimateUI2" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="UltimateUI4" inherits="UltimateUIMasterConfigurationTemplate" id="4">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="UltimateUI3" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2" />
                                                </Offset>
                                                <Size>
                                                        <AbsDimension x="128" y="17" />
                                                </Size>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="UltimateUI5" inherits="UltimateUIMasterConfigurationTemplate" id="5">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="UltimateUI4" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="UltimateUI6" inherits="UltimateUIMasterConfigurationTemplate" id="6">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="UltimateUI5" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="UltimateUI7" inherits="UltimateUIMasterConfigurationTemplate" id="7">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="UltimateUI6" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="UltimateUI8" inherits="UltimateUIMasterConfigurationTemplate" id="8">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="UltimateUI7" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="UltimateUI9" inherits="UltimateUIMasterConfigurationTemplate" id="9">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="UltimateUI8" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <Frame name="UltimateUI10" inherits="UltimateUIMasterConfigurationTemplate" id="10">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="UltimateUI9" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>

                <!-- Divider -->
                        <Frame name="UltimateUIMasterMainDivider" inherits="UltimateUIMasterDividerTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="6" y="-372" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                        <ScrollingMessageFrame name="UltimateUIMasterTextbox" ignoreArrows="true" maxLines="4" historyLines="0" fade="true"
                                displayDuration="3" fadeDuration="3" letters="256" hidden="false">
                                <Size>
                                        <AbsDimension x="450" y="50" />
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="48" y="48" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="UltimateUIMasterTextboxBackground" setAllPoints="true">
                                                        <Color r="0" g="0" b="0" a="0.0" />
                                                </Texture>
                                        </Layer>
                                        <Layer level="ARTWORK">
                                                <FontString name="UltimateUIMasterTextboxHeader" inherits="GameFontNormal">
                                                        <Anchors>
                                                                <Anchor point="TOP">
                                                                        <Offset>
                                                                                <AbsDimension x="13" y="0" />
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <FontString inherits="GameFontNormal"></FontString>
                        </ScrollingMessageFrame>
                        <Frame name="UltimateUIMasterSubDivider" inherits="UltimateUIMasterDividerTemplate">
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="6" y="32" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                <!-- Okay and Cancel -->
                        <Button name="UltimateUIMasterFrameOkay" inherits="GameMenuButtonTemplate">
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="14" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetText(OKAY);
                                        </OnLoad>
                                        <OnClick>
                                                UltimateUIMaster_OnOkayClick();
                                        </OnClick>
                                </Scripts>
                        </Button>
                        <Button name="UltimateUIMasterFrameCancel" inherits="GameMenuButtonTemplate" text="CANCEL">
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="14" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                UltimateUIMaster_Reset();
                                                PlaySound("gsTitleOptionExit");
                                                HideUIPanel(UltimateUIMasterFrame);
                                        </OnClick>
                                </Scripts>
                        </Button>
                        
                <!-- Scrollbar -->
                
                        <ScrollFrame name="UltimateUIMasterScrollFrame" inherits="FauxScrollFrameTemplate">
                                <Size>
                                        <AbsDimension x="296" y="360" />
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT" relativeTo="UltimateUIMasterFrame">
                                                <Offset>
                                                        <AbsDimension x="-40" y="-16" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <Texture name="$parentScrollBarTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                                                        <Size>
                                                                <AbsDimension x="31" y="288" />
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="5" />
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0" right="0.484375" top="0" bottom="1.0" />
                                                </Texture>
                                                <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                                                        <Size>
                                                                <AbsDimension x="31" y="128" />
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="BOTTOM" relativeTo="$parentScrollBarScrollDownButton">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="-2" />
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625" />
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnVerticalScroll>
                                                        FauxScrollFrame_OnVerticalScroll(32, UltimateUIMaster_Update);
                                        </OnVerticalScroll>
                                </Scripts>
                        </ScrollFrame>

                </Frames>
                <!-- UltimateUI Loads -->
                <Scripts>
                        <OnShow>
                                
                                UltimateUIMasterFrame_IsLoading = true;
                                UltimateUIMasterFrame_Show();
                                UltimateUIMasterFrame_IsLoading = false;

                        </OnShow>
                        <OnMouseDown>
                                if(arg1 == "LeftButton") then
                                        this:StartMoving();
                                end
                        </OnMouseDown>
                        
                        <OnMouseUp>
                                if(arg1 == "LeftButton") then
                                        this:StopMovingOrSizing();
                                end
                        </OnMouseUp>
                </Scripts>
        </Frame>
        <!-- Extra commands -->
        <!-- <Script file="ShapeshiftCommands.lua" /> -->
        <Script file="UltimateUICommands.lua" />
        <Frame name="PureScriptEventsFrame" parent="UIParent" hidden="false">
                <Scripts>
                        <OnEvent>
                                UltimateUIMaster_OnEvent(event);
                        </OnEvent>

                        <OnLoad>
                                UltimateUIMaster_Init();
                                PureScriptEventsFrame:Show();
                                UltimateUI_Registers();
                                <!--ShapeshiftCommands_Register();-->
                                <!--UltimateUICommands_Register();-->
                        </OnLoad>
                        <OnUpdate>
                                UltimateUIMaster_OnUpdate(arg1);
                        </OnUpdate>
                </Scripts>
        </Frame>
        
        <!-- UltimateUI Menu Button START -->
        <Button name="GameMenuButtonUltimateUI" inherits="GameMenuButtonTemplate" text="ULTIMATEUI_OPTIONS_TITLE" parent="GameMenuFrame">
                <Anchors>
                        <Anchor point="CENTER" relativePoint="TOP">
                                <Offset>
                                        <AbsDimension x="0" y="-37"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                        <OnLoad>
                                if ( ULTIMATEUI_OPTIONS_TITLE ) then
                                        this:SetText(ULTIMATEUI_OPTIONS_TITLE);
                                else
                                        this:SetText("[Outdated UltimateUI]");
                                end
                                GameMenuFrame:SetHeight(GameMenuFrame:GetHeight()+24);
                                GameMenuButtonOptions:ClearAllPoints();
                                GameMenuButtonOptions:SetPoint("TOP", "GameMenuButtonUltimateUI", "BOTTOM", 0, -16);
                        </OnLoad>
                        <OnClick>
                                PlaySound("igMainMenuOption");
                                HideUIPanel(GameMenuFrame);
                                ShowUIPanel(UltimateUIMasterFrame);
                        </OnClick>
                </Scripts>
        </Button>
        <!-- UltimateUI Menu Button END -->
</Ui>