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="CCWatch_Options.lua"/>
        <Frame name="CCWatchOptionsFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent" enableKeyboard="true">
                <Size>
                        <AbsDimension x="300" y="340"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER"/>
                </Anchors>
                <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
                        <BackgroundInsets>
                                <AbsInset left="11" right="12" top="12" bottom="11"/>
                        </BackgroundInsets>
                        <TileSize>
                                <AbsValue val="32"/>
                        </TileSize>
                        <EdgeSize>
                                <AbsValue val="32"/>
                        </EdgeSize>
                </Backdrop>
                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="CCWatchOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
                                        <Size>
                                                <AbsDimension x="300" y="64"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="12"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                                <FontString inherits="GameFontNormal" text="CCWATCH_OPTIONS_TITLE">
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="CCWatchOptionsFrameHeader">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-14"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Frames>
                        <CheckButton name="CCWatchOptionsFrameMageCC" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_MAGE);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_MageCCToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="CCWatchOptionsFramePriestCC" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="-40"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_PRIEST);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_PriestCCToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="CCWatchOptionsFrameDruidCC" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="-60"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_DRUID);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_DruidCCToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="CCWatchOptionsFrameHunterCC" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="-80"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_HUNTER);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_HunterCCToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="CCWatchOptionsFramePaladinCC" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="-100"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_PALADIN);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_PaladinCCToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="CCWatchOptionsFrameWarlockCC" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="160" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_WARLOCK);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_WarlockCCToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="CCWatchOptionsFrameWarriorCC" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="160" y="-40"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_WARRIOR);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_WarriorCCToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="CCWatchOptionsFrameRogueCC" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="160" y="-60"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_ROGUE);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_RogueCCToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="CCWatchOptionsFrameMiscCC" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="160" y="-80"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_MISC);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_MiscCCToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <Slider name="CCWatchSliderScale" inherits="OptionsSliderTemplate">
                                <Size>
                                        <AbsDimension x="220" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="-130" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_SCALE);
                                                getglobal(this:GetName().."High"):SetText("3.0");
                                                getglobal(this:GetName().."Low"):SetText("0.5");
                                                CCWatchSliderScale:SetMinMaxValues(0.5,3.0);
                                                CCWatchSliderScale:SetValueStep(0.01);
                                        </OnLoad>
                                        <OnValueChanged>
                                                CCWATCH.SCALE = CCWatchSliderScale:GetValue();
                                                CCWatch_Save[CCWATCH.PROFILE].scale = CCWATCH.SCALE;
                                                CCWatch:SetScale(CCWATCH.SCALE * UIParent:GetScale());
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>

                        <Slider name="CCWatchSliderWidth" inherits="OptionsSliderTemplate">
                                <Size>
                                        <AbsDimension x="220" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="-170" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_WIDTH);
                                                getglobal(this:GetName().."High"):SetText("300");
                                                getglobal(this:GetName().."Low"):SetText("50");
                                                CCWatchSliderWidth:SetMinMaxValues(50,300);
                                                CCWatchSliderWidth:SetValueStep(2);
                                        </OnLoad>
                                        <OnValueChanged>
                                                CCWATCH.WIDTH = CCWatchSliderWidth:GetValue();
                                                CCWatch_Save[CCWATCH.PROFILE].width = CCWATCH.WIDTH;
                                                CCWatch_SetWidth(CCWATCH.WIDTH);
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>


                        <Slider name="CCWatchSliderAlpha" inherits="OptionsSliderTemplate">
                                <Size>
                                        <AbsDimension x="220" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="-210" />
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_TRANS);
                                                getglobal(this:GetName().."High"):SetText("1.0");
                                                getglobal(this:GetName().."Low"):SetText("0.0");
                                                CCWatchSliderAlpha:SetMinMaxValues(0.0,1.0);
                                                CCWatchSliderAlpha:SetValueStep(0.01);
                                        </OnLoad>
                                        <OnValueChanged>
                                                CCWATCH.ALPHA = CCWatchSliderAlpha:GetValue();
                                                CCWatch_Save[CCWATCH.PROFILE].alpha = CCWATCH.ALPHA;
                                                CCWatchBar1:SetAlpha(CCWATCH.ALPHA);
                                                CCWatchBar2:SetAlpha(CCWATCH.ALPHA);
                                                CCWatchBar3:SetAlpha(CCWATCH.ALPHA);
                                                CCWatchBar4:SetAlpha(CCWATCH.ALPHA);
                                                CCWatchBar5:SetAlpha(CCWATCH.ALPHA);
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>

                        <CheckButton name="CCWatchOptionsFrameUnlock" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="-240"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_UNLOCK);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_UnlockToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="CCWatchOptionsFrameInvert" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="160" y="-240"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_INVERT);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_InvertToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <Frame name="CCWatchTimersSelectDropDown" inherits="UIDropDownMenuTemplate" hidden="false">
                                <Size>
                                        <AbsDimension x="108" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="6" y="-270"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                UIDropDownMenu_Initialize(this, CCWatchTimersDropDown_OnInit);
                                                UIDropDownMenu_SetWidth(110);
                                        </OnLoad>
                                </Scripts>
                        </Frame>


                        <CheckButton name="CCWatchOptionsFrameArcanist" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="160" y="-270"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_ARCANIST);
                                        </OnLoad>
                                        <OnClick>
                                                CCWatchOptions_ArcanistToggle();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <Frame name="CCWatchGrowthSelectDropDown" inherits="UIDropDownMenuTemplate" hidden="false">
                                <Size>
                                        <AbsDimension x="118" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="6" y="10"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                UIDropDownMenu_Initialize(this, CCWatchGrowthDropDown_OnInit);
                                                UIDropDownMenu_SetWidth(130);
                                        </OnLoad>
                                </Scripts>
                        </Frame>

                        <Button name="CCWatchOptionsFrameDone" inherits="OptionsButtonTemplate" text="CCWATCH_OPTIONS_DONE">
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-20" y="20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                CCWatchOptions_Toggle();
                                        </OnClick>
                                </Scripts>
                        </Button>
                </Frames>
                <Scripts>
                        <OnLoad>
                                CCWatchOptions_OnLoad();
                        </OnLoad>
                </Scripts>
        </Frame>
</Ui>