vanilla-wow-addons – Rev 1
?pathlinks?
<!--
Spell Alert
Author: Awen Modified by: Mithryn
-->
<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<Script file="localization.lua"/>
<Script file="SpellAlert.lua"/>
<CheckButton name="SA_RadioButtonTemplate" virtual="true">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormalSmall" name="$parentName">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1"/>
</FontString>
</Layer>
</Layers>
<NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-RadioButton">
<TexCoords left="0" right="0.25" top="0" bottom="1"/>
</NormalTexture>
<PushedTexture name="$parentPushedTexture" file="Interface\Buttons\UI-RadioButton">
<TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
</PushedTexture>
<HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-RadioButton" alphaMode="ADD">
<TexCoords left="0.51" right="0.75" top="0" bottom="1"/>
</HighlightTexture>
<CheckedTexture name="$parentCheckedTexture" file="Interface\Buttons\UI-RadioButton">
<TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
</CheckedTexture>
<Scripts>
<OnClick>
SA_Radio_OnClick();
</OnClick>
</Scripts>
</CheckButton>
<Frame name="SAOptions" toplevel="true" frameStrata="LOW" movable="true" enableMouse="true" hidden="true" parent="UIParent">
<Size>
<AbsDimension x="675" y="420" />
</Size>
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="SAFrameTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
<Size>
<AbsDimension x="400" y="64" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="12" />
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString inherits="GameFontNormal" text="SpellAlert Modified 1.65">
<Anchors>
<Anchor point="TOP" relativeTo="SAOptions">
<Offset>
<AbsDimension x="0" y="-3" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<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>
<Frames>
<Frame name="SACheckboxBG">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAOptions" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="35" y="-40" />
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="300" y="335"/>
</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>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
</Frame>
<Frame name="SASliderBG">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="SAOptions" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-35" y="-40" />
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="300" y="335"/>
</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>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
</OnLoad>
</Scripts>
</Frame>
<CheckButton name="SAOptionsEnable" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SACheckboxBG" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-25" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Enable Spell Alert");
</OnLoad>
</Scripts>
</CheckButton>
<CheckButton name="SAOptionsTargetOnly" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SAOptionsEnable" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Alerts spells from the selected target only.");
</OnLoad>
</Scripts>
</CheckButton>
<CheckButton name="SAOptionsHeals" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SAOptionsTargetOnly" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Alert healing spells");
</OnLoad>
</Scripts>
</CheckButton>
<CheckButton name="SAOptionsCC" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SAOptionsHeals" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Alert crowd control spells");
</OnLoad>
</Scripts>
</CheckButton>
<CheckButton name="SAOptionsDispelable" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SAOptionsCC" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Alert dispellable abilities");
</OnLoad>
</Scripts>
</CheckButton>
<CheckButton name="SAOptionsDamage" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SAOptionsDispelable" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Alert damage spells");
</OnLoad>
</Scripts>
</CheckButton>
<CheckButton name="SAOptionsMisc" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SAOptionsDamage" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Alert other spell/abilities");
</OnLoad>
</Scripts>
</CheckButton>
<CheckButton name="SAOptionsEmote" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SAOptionsMisc" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Alert Mob Emotes");
</OnLoad>
</Scripts>
</CheckButton>
<CheckButton name="SAOptionsRetarget" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SAOptionsEmote" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Retarget after Crowd Control effect");
</OnLoad>
</Scripts>
</CheckButton>
<CheckButton name="SAOptionsBomb" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SAOptionsRetarget" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Living Bomb warning");
</OnLoad>
</Scripts>
</CheckButton>
<Frame name="SAColorLabel">
<Size>
<AbsDimension x="200" y="16"/>
</Size>
<Anchors>
<Anchor point="left" relativePoint="TOPLEFT" relativeTo="SASliderBG">
<Offset>
<AbsDimension x="0" y="10"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontNormalSmall" text="Alert text colors">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="15" y="-30"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Frame name="SARadioLabels">
<Size>
<AbsDimension x="200" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeTo="SAColorLabel">
<Offset>
<AbsDimension x="27" y="-70"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontNormalSmall" text="All All except spell Only spell">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<CheckButton name="$parentRadio1" id="1" inherits="SA_RadioButtonTemplate"> <!-- Color all -->
<Anchors>
<Anchor point="LEFT" relativeTo="SARadioLabels" relativePoint="left">
<Offset>
<AbsDimension x="-2" y="-15"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnEnter>
GameTooltip_AddNewbieTip("Color All", 1.0, 1.0, 1.0, "Color-codes the entire alert.");
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="$parentRadio2" id="2" inherits="SA_RadioButtonTemplate"> <!-- Color except spell -->
<Anchors>
<Anchor point="LEFT" relativeTo="$parentRadio1" relativePoint="RIGHT">
<Offset>
<AbsDimension x="90" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnEnter>
GameTooltip_AddNewbieTip("Color Except Spell", 1.0, 1.0, 1.0, "Color-codes everything except for the spell name.");
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="$parentRadio3" id="3" inherits="SA_RadioButtonTemplate"> <!-- Color only spell -->
<Anchors>
<Anchor point="LEFT" relativeTo="$parentRadio2" relativePoint="RIGHT">
<Offset>
<AbsDimension x="90" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnEnter>
GameTooltip_AddNewbieTip("Color Spell Only", 1.0, 1.0, 1.0, "Color-codes just the spell name.");
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<Frame name="SAColorLabels">
<Size>
<AbsDimension x="200" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeTo="SARadioLabels">
<Offset>
<AbsDimension x="-10" y="-55"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontNormalSmall" text="Hostile Heal Buff Emote Totem">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Button name="SAat">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAColorLabels" relativePoint="left">
<Offset>
<AbsDimension x="10" y="-15" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="SAat_SwatchBg">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
SpellAlert_OpenColorPicker(this:GetParent(), 0);
</OnClick>
<OnEnter>
GameTooltip_AddNewbieTip("Hostile", 1.0, 1.0, 1.0, "Font color for hostile spells.");
getglobal("SAat_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
getglobal("SAat_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
</OnLeave>
</Scripts>
<NormalTexture name="SAat_NormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
</Button>
<Button name="SAhe">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAat" relativePoint="left">
<Offset>
<AbsDimension x="55" y="0" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="SAhe_SwatchBg">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
SpellAlert_OpenColorPicker(this:GetParent(), 1);
</OnClick>
<OnEnter>
GameTooltip_AddNewbieTip("Heals", 1.0, 1.0, 1.0, "Font color for heals.");
getglobal("SAhe_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
getglobal("SAhe_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
</OnLeave>
</Scripts>
<NormalTexture name="SAhe_NormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
</Button>
<Button name="SAbu">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAhe" relativePoint="left">
<Offset>
<AbsDimension x="55" y="0" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="SAbu_SwatchBg">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
SpellAlert_OpenColorPicker(this:GetParent(), 2);
</OnClick>
<OnEnter>
GameTooltip_AddNewbieTip("Buffs", 1.0, 1.0, 1.0, "Font color for buffs.");
getglobal("SAbu_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
getglobal("SAbu_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
</OnLeave>
</Scripts>
<NormalTexture name="SAbu_NormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
</Button>
<Button name="SAem">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAbu" relativePoint="left">
<Offset>
<AbsDimension x="55" y="0" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="SAem_SwatchBg">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
SpellAlert_OpenColorPicker(this:GetParent(), 3);
</OnClick>
<OnEnter>
GameTooltip_AddNewbieTip("Emotes", 1.0, 1.0, 1.0, "Font color for emotes.");
getglobal("SAem_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
getglobal("SAem_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
</OnLeave>
</Scripts>
<NormalTexture name="SAem_NormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
</Button>
<Button name="SAto">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAem" relativePoint="left">
<Offset>
<AbsDimension x="55" y="0" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="SAto_SwatchBg">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
SpellAlert_OpenColorPicker(this:GetParent(), 4);
</OnClick>
<OnEnter>
GameTooltip_AddNewbieTip("Totems", 1.0, 1.0, 1.0, "Font color for totems.");
getglobal("SAto_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
getglobal("SAto_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
</OnLeave>
</Scripts>
<NormalTexture name="SAto_NormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
</Button>
<Slider name="SASizeSlider" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="240" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAColorLabels" relativePoint="left">
<Offset>
<AbsDimension x="20" y="-60" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Alert size");
getglobal(this:GetName().."High"):SetText("Big");
getglobal(this:GetName().."Low"):SetText("Small");
SASizeSlider:SetMinMaxValues(15,37);
SASizeSlider:SetValueStep(1);
</OnLoad>
<OnValueChanged>
SAConfig.zoom = SASizeSlider:GetValue();
SpellAlert_UpdateLook();
</OnValueChanged>
</Scripts>
</Slider>
<Slider name="SAShadowSlider" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="240" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SASizeSlider" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-45" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Border Size");
getglobal(this:GetName().."High"):SetText("Large");
getglobal(this:GetName().."Low"):SetText("None");
SAShadowSlider:SetMinMaxValues(0,2);
SAShadowSlider:SetValueStep(1);
</OnLoad>
<OnValueChanged>
SAConfig.shadow = SAShadowSlider:GetValue();
SpellAlert_UpdateLook();
</OnValueChanged>
</Scripts>
</Slider>
<Slider name="SAPosSlider" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="240" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAShadowSlider" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-80" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Alert text position");
getglobal(this:GetName().."High"):SetText("Near Top");
getglobal(this:GetName().."Low"):SetText("Near Bottom");
SAPosSlider:SetMinMaxValues(-1080,80);
SAPosSlider:SetValueStep(10);
</OnLoad>
<OnValueChanged>
SAConfig.pos = SAPosSlider:GetValue();
SpellAlert_UpdatePosition();
</OnValueChanged>
</Scripts>
</Slider>
<Frame name="SARadioLabels2">
<Size>
<AbsDimension x="200" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeTo="SAShadowSlider">
<Offset>
<AbsDimension x="44" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontNormalSmall" text="Centered Free">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-20" y="-25"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<CheckButton name="$parentRadioA" id="5" inherits="SA_RadioButtonTemplate"> <!-- Center Text -->
<Anchors>
<Anchor point="LEFT" relativeTo="SAShadowSlider" relativePoint="left">
<Offset>
<AbsDimension x="43" y="-50"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnEnter>
GameTooltip_AddNewbieTip("Center Text", 1.0, 1.0, 1.0, "Locks dragging of text.");
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="$parentRadioB" id="6" inherits="SA_RadioButtonTemplate"> <!-- Drag -->
<Anchors>
<Anchor point="LEFT" relativeTo="$parentRadioA" relativePoint="RIGHT">
<Offset>
<AbsDimension x="90" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnEnter>
GameTooltip_AddNewbieTip("Free", 1.0, 1.0, 1.0, "Drag to place text.");
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<Slider name="SADelaySlider" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="240" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAPosSlider" relativePoint="left">
<Offset>
<AbsDimension x="0" y="-40" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("Alert Fade Delay");
getglobal(this:GetName().."High"):SetText("Three Seconds");
getglobal(this:GetName().."Low"):SetText("One Second");
SADelaySlider:SetMinMaxValues(1,3);
SADelaySlider:SetValueStep(0.5);
</OnLoad>
<OnValueChanged>
SAConfig.holdTime = SADelaySlider:GetValue();
SpellAlert_UpdatePosition();
</OnValueChanged>
</Scripts>
</Slider>
<Button name="SAOptionsSave" inherits="GameMenuButtonTemplate" text="Save/Close">
<Anchors>
<Anchor point="left" relativePoint="BOTTOMLEFT" relativeTo="SAOptions">
<Offset>
<AbsDimension x="20" y="30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SpellAlert_OptionsClose();
</OnClick>
</Scripts>
</Button>
<Button name="SAOptionsReset" inherits="GameMenuButtonTemplate" text="Reset">
<Size>
<AbsDimension x="40" y="16" />
</Size>
<Anchors>
<Anchor point="right" relativePoint="BOTTOMRIGHT" relativeTo="SAOptions">
<Offset>
<AbsDimension x="-20" y="30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SAReset:Show();
</OnClick>
<OnEnter>
GameTooltip_AddNewbieTip("Warning!", 1.0, 1.0, 1.0, "Resets all data! This cannot be reversed!");
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnMouseUp>
if ( this.isMoving ) then
this:StopMovingOrSizing();
this.isMoving = false;
end
</OnMouseUp>
<OnMouseDown>
if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
this:StartMoving();
this.isMoving = true;
end
</OnMouseDown>
<OnHide>
if ( this.isMoving ) then
this:StopMovingOrSizing();
this.isMoving = false;
end
</OnHide>
</Scripts>
</Frame>
<!-- I sux at programming so I'll do something clunky =D -->
<Button name="SADrag" movable="false" text="Drag" hidden="true" insertMode="TOP" parent="UIParent" frameStrata="HIGH" toplevel="true">
<Size>
<AbsDimension x="64" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab">
<Size>
<AbsDimension x="16" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<TexCoords left="0.0" right="0.25" top="0.0" bottom="1.0"/>
</Texture>
<Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab">
<Size>
<AbsDimension x="44" y="32"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.25" right="0.75" top="0.0" bottom="1.0"/>
</Texture>
<Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab">
<Size>
<AbsDimension x="16" y="32"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.75" right="1.0" top="0.0" bottom="1.0"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="SA_HL" hidden="true">
<Size>
<AbsDimension x="5" y="32"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft">
<Offset>
<AbsDimension x="0" y="-7"/>
</Offset>
</Anchor>
<Anchor point="RIGHT" relativeTo="$parentRight">
<Offset>
<AbsDimension x="0" y="-7"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" setAllPoints="true"/>
</Layer>
</Layers>
</Frame>
</Frames>
<Scripts>
<OnEnter>
SA_HL:Show();
</OnEnter>
<OnLeave>
SA_HL:Hide();
</OnLeave>
<OnMouseDown>
if ( arg1 == "LeftButton" ) then
this:StartMoving();
end
</OnMouseDown>
<OnMouseUp>
this:StopMovingOrSizing();
</OnMouseUp>
<OnUpdate>
AlertFrame_Adjust();
</OnUpdate>
</Scripts>
<NormalText name="$parentText" inherits="GameFontNormalSmall">
<Size>
<AbsDimension x="50" y="8"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</NormalText>
</Button>
<MessageFrame name="AlertFrame" insertMode="TOP" parent="UIParent" frameStrata="HIGH" toplevel="true">
<Size>
<AbsDimension x="3000" y="200"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SADrag" relativePoint="CENTER">
<Offset>
<AbsDimension x="0" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString name="AlertFrameText" inherits="ZoneTextFont">
<Size>
<AbsDimension x="3000" y="0"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
SpellAlert_OnLoad();
</OnLoad>
<OnEvent>
SpellAlert_OnEvent();
</OnEvent>
<OnUpdate>
SpellAlert_OnUpdate();
</OnUpdate>
</Scripts>
</MessageFrame>
<Frame name="SAReset" toplevel="true" frameStrata="HIGH" hidden="true" inherits="OptionFrameBoxTemplate" parent="UIParent">
<Size>
<AbsDimension x="160" y="70"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="SAOptions" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontNormalSmall" text="Are you sure you want">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="20"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString inherits="GameFontNormalSmall" text="to reset options?">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="SAConfirm" inherits="GameMenuButtonTemplate" text="Ok">
<Size>
<AbsDimension x="60" y="20" />
</Size>
<Anchors>
<Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="SAReset">
<Offset>
<AbsDimension x="-35" y="20" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SpellAlert_setOptions();
SAReset:Hide();
</OnClick>
</Scripts>
</Button>
<Button name="SACancel" inherits="GameMenuButtonTemplate" text="Cancel">
<Size>
<AbsDimension x="60" y="20" />
</Size>
<Anchors>
<Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="SAReset">
<Offset>
<AbsDimension x="35" y="20" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SAReset:Hide();
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
</Ui>