vanilla-wow-addons – Rev 1
?pathlinks?
<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/">
<Script file="RangeColorOptions.lua" />
<Slider name="RangeColorSliderTemplate" inherits="OptionsSliderTemplate" virtual="true">
<Scripts>
<OnEnter>
if ( this.tooltipText ) then
GameTooltip:SetOwner(this, "ANCHOR_LEFT");
GameTooltip:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, alpha);
GameTooltip:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, alpha);
GameTooltip:SetText(this.tooltipText, 1.0, 1.0, 1.0);
end
</OnEnter>
<OnValueChanged>
PlaySound("igMainMenuOptionCheckBoxOn");
RangeColorOptions_SliderOnValueChanged();
</OnValueChanged>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Slider>
<CheckButton name="RangeColorCheckTemplate" inherits="UICheckButtonTemplate" virtual="true">
<HitRectInsets>
<AbsInset left="0" right="-50" top="0" bottom="0" />
</HitRectInsets>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
RangeColorOptions_CheckButtonOnClick();
</OnClick>
<OnEnter>
if ( this.tooltipText ) then
GameTooltip:SetOwner(this, "ANCHOR_LEFT");
GameTooltip:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, alpha);
GameTooltip:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, alpha);
GameTooltip:SetText(this.tooltipText, 1.0, 1.0, 1.0);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<Frame name="RangeColorSwatchTemplate" virtual="true">
<Size>
<AbsDimension x="40" y="40" />
</Size>
<Frames>
<Button name="$parent_ColorSwatch">
<Size>
<AbsDimension x="16" y="16" />
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="10" y="10" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parent_SwatchBg">
<Size>
<AbsDimension x="14" y="14" />
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="1.0" />
</Texture>
<FontString name="$parentText" inherits="GameFontNormal">
<Anchors>
<Anchor point="TOP" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-3" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
RangeColorOptions_OpenColorPicker(this:GetParent());
</OnClick>
<OnEnter>
getglobal(this:GetName().."_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
</OnEnter>
<OnLeave>
getglobal(this:GetName().."_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
</OnLeave>
</Scripts>
<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch" />
</Button>
</Frames>
<Scripts>
<OnEnter>
if ( this.tooltipText ) then
GameTooltip:SetOwner(this, "ANCHOR_LEFT");
GameTooltip:SetBackdropColor(0.0, 0.0, 0.0);
GameTooltip:SetText(this.tooltipText, 1.0, 1.0, 1.0);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Frame>
<Frame name="RangeColorOptionsFrame" toplevel="true" frameStrata="MEDIUM" movable="true"
enableMouse="true" hidden="true" parent="UIParent">
<Size>
<AbsDimension x="460" 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" />
<Size>
<AbsDimension x="128" y="17" />
</Size>
</BackgroundInsets>
<TileSize>
<AbsValue val="32" />
</TileSize>
<EdgeSize>
<AbsValue val="32" />
</EdgeSize>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<Texture name="RangeColorTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
<Size>
<AbsDimension x="290" y="64" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="12" />
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString inherits="GameFontNormal" text="Range Color Options">
<Anchors>
<Anchor point="TOP" relativeTo="RangeColorOptionsFrame">
<Offset>
<AbsDimension x="0" y="-3" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Frame name="RangeColorOptionsFrame_OutOfRangeFrame" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="200" y="80" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="RangeColorOptionsFrame">
<Offset>
<AbsDimension x="20" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
<Frames>
<Frame name="RangeColorOptionsFrame_OutOfRangeFrameTitle">
<Size>
<AbsDimension x="140" y="20" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border"
tile="true">
<EdgeSize>
<AbsValue val="8" />
</EdgeSize>
<TileSize>
<AbsValue val="8" />
</TileSize>
<BackgroundInsets>
<AbsInset left="2" right="2" top="2" bottom="2" />
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer>
<FontString inherits="GameFontHighlight" text="Out of Range">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
</Frame>
<Frame name="RangeColorSwatchFrame1" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="TOP" relativeTo="RangeColorOptionsFrame_OutOfRangeFrame">
<Offset>
<AbsDimension x="-60" y="-35" />
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="RangeColorSwatchFrame2" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="RangeColorSwatchFrame1" relativePoint="LEFT">
<Offset>
<AbsDimension x="60" y="0" />
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="RangeColorSwatchFrame3" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="RangeColorSwatchFrame2" relativePoint="LEFT">
<Offset>
<AbsDimension x="60" y="0" />
</Offset>
</Anchor>
</Anchors>
</Frame>
</Frames>
</Frame>
<Frame name="RangeColorOptionsFrame_NotEnoughManaFrame" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="200" y="80" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="RangeColorOptionsFrame_OutOfRangeFrame">
<Offset>
<AbsDimension x="20" y="0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
<Frames>
<Frame name="RangeColorOptionsFrame_NotEnoughManaFrameTitle">
<Size>
<AbsDimension x="140" y="20" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border"
tile="true">
<EdgeSize>
<AbsValue val="8" />
</EdgeSize>
<TileSize>
<AbsValue val="8" />
</TileSize>
<BackgroundInsets>
<AbsInset left="2" right="2" top="2" bottom="2" />
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer>
<FontString inherits="GameFontHighlight" text="Not enough Mana">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
</Frame>
<Frame name="RangeColorSwatchFrame4" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="TOP" relativeTo="RangeColorOptionsFrame_NotEnoughManaFrame">
<Offset>
<AbsDimension x="-60" y="-35" />
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="RangeColorSwatchFrame5" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="RangeColorSwatchFrame4" relativePoint="LEFT">
<Offset>
<AbsDimension x="60" y="0" />
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="RangeColorSwatchFrame6" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="RangeColorSwatchFrame5" relativePoint="LEFT">
<Offset>
<AbsDimension x="60" y="0" />
</Offset>
</Anchor>
</Anchors>
</Frame>
</Frames>
</Frame>
<Frame name="RangeColorOptionsFrame_NotUsableFrame" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="200" y="80" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="RangeColorOptionsFrame_OutOfRangeFrame">
<Offset>
<AbsDimension x="0" y="-10" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
<Frames>
<Frame name="RangeColorOptionsFrame_NotUsableFrameTitle">
<Size>
<AbsDimension x="140" y="20" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border"
tile="true">
<EdgeSize>
<AbsValue val="8" />
</EdgeSize>
<TileSize>
<AbsValue val="8" />
</TileSize>
<BackgroundInsets>
<AbsInset left="2" right="2" top="2" bottom="2" />
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer>
<FontString inherits="GameFontHighlight" text="Not Usable">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
</Frame>
<Frame name="RangeColorSwatchFrame7" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="TOP" relativeTo="RangeColorOptionsFrame_NotUsableFrame">
<Offset>
<AbsDimension x="-60" y="-35" />
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="RangeColorSwatchFrame8" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="RangeColorSwatchFrame7" relativePoint="LEFT">
<Offset>
<AbsDimension x="60" y="0" />
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="RangeColorSwatchFrame9" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="RangeColorSwatchFrame8" relativePoint="LEFT">
<Offset>
<AbsDimension x="60" y="0" />
</Offset>
</Anchor>
</Anchors>
</Frame>
</Frames>
</Frame>
<Frame name="RangeColorOptionsFrame_UsableFrame" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="200" y="80" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="RangeColorOptionsFrame_NotUsableFrame">
<Offset>
<AbsDimension x="20" y="0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
<Frames>
<Frame name="RangeColorOptionsFrame_UsableFrameTitle">
<Size>
<AbsDimension x="140" y="20" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border"
tile="true">
<EdgeSize>
<AbsValue val="8" />
</EdgeSize>
<TileSize>
<AbsValue val="8" />
</TileSize>
<BackgroundInsets>
<AbsInset left="2" right="2" top="2" bottom="2" />
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer>
<FontString inherits="GameFontHighlight" text="Usable">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
</Frame>
<Frame name="RangeColorSwatchFrame10" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="TOP" relativeTo="RangeColorOptionsFrame_UsableFrame">
<Offset>
<AbsDimension x="-60" y="-35" />
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="RangeColorSwatchFrame11" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="RangeColorSwatchFrame10" relativePoint="LEFT">
<Offset>
<AbsDimension x="60" y="0" />
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="RangeColorSwatchFrame12" inherits="RangeColorSwatchTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="RangeColorSwatchFrame11" relativePoint="LEFT">
<Offset>
<AbsDimension x="60" y="0" />
</Offset>
</Anchor>
</Anchors>
</Frame>
</Frames>
</Frame>
<Frame name="RangeColorOptionsFrame_GeneralFrame" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="420" y="80" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="RangeColorOptionsFrame_NotUsableFrame">
<Offset>
<AbsDimension x="0" y="-10" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
<Frames>
<Frame name="RangeColorOptionsFrame_GeneralFrameTitle">
<Size>
<AbsDimension x="140" y="20" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border"
tile="true">
<EdgeSize>
<AbsValue val="8" />
</EdgeSize>
<TileSize>
<AbsValue val="8" />
</TileSize>
<BackgroundInsets>
<AbsInset left="2" right="2" top="2" bottom="2" />
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer>
<FontString inherits="GameFontHighlight" text="General">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
</Frame>
<Slider name="RangeColorOptionsFrame_Slider1" inherits="RangeColorSliderTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="RangeColorOptionsFrame_GeneralFrame">
<Offset>
<AbsDimension x="30" y="-40" />
</Offset>
</Anchor>
</Anchors>
</Slider>
<CheckButton name="RangeColorOptionsFrame_CheckButton1" inherits="RangeColorCheckTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="RangeColorOptionsFrame_GeneralFrame">
<Offset>
<AbsDimension x="200" y="-35" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="RangeColorOptionsFrame_CheckButton2" inherits="RangeColorCheckTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="LEFT" relativeTo="RangeColorOptionsFrame_CheckButton1">
<Offset>
<AbsDimension x="90" y="0" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
</Frames>
</Frame>
<Button name="RangeColorOptionsSave" inherits="OptionsButtonTemplate" text="Close">
<Size>
<AbsDimension x="120" y="25" />
</Size>
<Anchors>
<Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="RangeColorOptionsFrame">
<Offset>
<AbsDimension x="120" y="30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
PlaySound("gsTitleOptionOK");
if ( ColorPickerFrame:IsVisible() ) then
ColorPickerFrame:Hide();
end
RangeColor_HideOptions();
</OnClick>
</Scripts>
</Button>
<Button name="RangeColorOptionsReset" inherits="UIPanelButtonGrayTemplate" text="Reset">
<Size>
<AbsDimension x="80" y="22" />
</Size>
<Anchors>
<Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="RangeColorOptionsFrame">
<Offset>
<AbsDimension x="-150" y="30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
PlaySound("gsTitleOptionOK");
RangeColor_ResetOptions();
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_LEFT");
GameTooltip:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, alpha);
GameTooltip:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, alpha);
GameTooltip:SetText(RANGECOLOROPTIONS_RESETTOOLTIPTEXT, 1.0, 0.0, 0.0);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnLoad>
RangeColorOptions_OnLoad();
</OnLoad>
<OnShow>
RangeColorOptions_OnShow();
</OnShow>
</Scripts>
</Frame>
</Ui>
Generated by GNU Enscript 1.6.5.90.