SA_Radio_OnClick();
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
this:SetBackdropColor(0.15, 0.15, 0.15);
getglobal(this:GetName().."Text"):SetText("Enable Spell Alert");
getglobal(this:GetName().."Text"):SetText("Alerts spells from the selected target only.");
getglobal(this:GetName().."Text"):SetText("Alert healing spells");
getglobal(this:GetName().."Text"):SetText("Alert crowd control spells");
getglobal(this:GetName().."Text"):SetText("Alert dispellable abilities");
getglobal(this:GetName().."Text"):SetText("Alert damage spells");
getglobal(this:GetName().."Text"):SetText("Alert other spell/abilities");
getglobal(this:GetName().."Text"):SetText("Alert Mob Emotes");
getglobal(this:GetName().."Text"):SetText("Retarget after Crowd Control effect");
getglobal(this:GetName().."Text"):SetText("Living Bomb warning");
GameTooltip_AddNewbieTip("Color All", 1.0, 1.0, 1.0, "Color-codes the entire alert.");
GameTooltip:Hide();
GameTooltip_AddNewbieTip("Color Except Spell", 1.0, 1.0, 1.0, "Color-codes everything except for the spell name.");
GameTooltip:Hide();
GameTooltip_AddNewbieTip("Color Spell Only", 1.0, 1.0, 1.0, "Color-codes just the spell name.");
GameTooltip:Hide();
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);
SAConfig.zoom = SASizeSlider:GetValue();
SpellAlert_UpdateLook();
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);
SAConfig.shadow = SAShadowSlider:GetValue();
SpellAlert_UpdateLook();
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);
SAConfig.pos = SAPosSlider:GetValue();
SpellAlert_UpdatePosition();
GameTooltip_AddNewbieTip("Center Text", 1.0, 1.0, 1.0, "Locks dragging of text.");
GameTooltip:Hide();
GameTooltip_AddNewbieTip("Free", 1.0, 1.0, 1.0, "Drag to place text.");
GameTooltip:Hide();
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);
SAConfig.holdTime = SADelaySlider:GetValue();
SpellAlert_UpdatePosition();
if ( this.isMoving ) then
this:StopMovingOrSizing();
this.isMoving = false;
end
if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
this:StartMoving();
this.isMoving = true;
end
if ( this.isMoving ) then
this:StopMovingOrSizing();
this.isMoving = false;
end
SpellAlert_OnLoad();
SpellAlert_OnEvent();
SpellAlert_OnUpdate();