self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
if (self:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
if (self:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOn");
else
PlaySound("igMainMenuOptionCheckBoxOff");
end
if (self.tooltipText) then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(self.tooltipText, nil, nil, nil, nil, 1);
end
if (self.tooltipRequirement) then
GameTooltip:AddLine(self.tooltipRequirement, "", 1.0, 1.0, 1.0);
GameTooltip:Show();
end
GameTooltip:Hide();
local text = getglobal(self:GetName().."Text");
text:SetTextColor(0.3, 0.9, 0.3);
TipBuddyPopup_StopCounting(self:GetParent());
local text = getglobal(self:GetName().."Text");
text:SetTextColor(0.9, 0.2, 0.2);
TipBuddyPopup_StopCounting(self:GetParent());
local text = getglobal(self:GetName().."Text");
text:SetTextColor(0.4, 0.4, 1);
TipBuddyPopup_StopCounting(self:GetParent());
local text = getglobal(self:GetName().."Text");
text:SetTextColor(1, 1, 0);
TipBuddyPopup_StopCounting(self:GetParent());
local text = getglobal(self:GetName().."Text");
text:SetTextColor(1, 1, 1);
TipBuddyPopup_StopCounting(self:GetParent());
self:SetBackdropBorderColor(0.8, 0.8, 0.8);
self:SetBackdropColor(0.35, 0.35, 0.5, 1);
TipBuddyPopup_StopCounting(self);
TipBuddyPopup_StartCounting(self);
--CSG_OptionsBarSml:Show();
--PlaySoundFile("Sound\\Interface\\uSpellIconDrop.wav");
PlaySound("igMainMenuOptionCheckBoxOn");
UIDropDownMenu_OnUpdate(self, elapsed);
if (self:GetParent():GetChecked()) then
local popframe = getglobal(self:GetParent():GetName().."_PlusPopup");
popframe:Show();
PlaySoundFile("Sound\\Interface\\iDeselectTarget.wav");
end
if (self:GetChecked()) then
getglobal(self:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
else
getglobal(self:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
end
if (self:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOff");
getglobal(self:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
else
PlaySound("igMainMenuOptionCheckBoxOn");
getglobal(self:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
end
local text = getglobal(self:GetName().."Text");
text:SetText("Show Health Text");
text:SetTextColor(1, 1, 1);
TipBuddyPopup_StopCounting(self:GetParent());
local text = getglobal(self:GetName().."Text");
text:SetText("Show Mana Text");
text:SetTextColor(1, 1, 1);
TipBuddyPopup_StopCounting(self:GetParent());
self:SetBackdropBorderColor(0.8, 0.8, 0.8);
self:SetBackdropColor(0.35, 0.35, 0.5);
TipBuddyPopup_StopCounting(self);
TipBuddyPopup_StartCounting(self);
--CSG_OptionsBarSml:Show();
--PlaySoundFile("Sound\\Interface\\SheathMetal.wav");
PlaySound("igMainMenuOptionCheckBoxOn");
UIDropDownMenu_OnUpdate(self, elapsed);
if (self:GetParent():GetChecked()) then
local popframe = getglobal(self:GetParent():GetName().."_PlusPopup");
popframe:Show();
PlaySoundFile("Sound\\Interface\\iDeselectTarget.wav");
end
if (self:GetChecked()) then
getglobal(self:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
else
getglobal(self:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
end
if (self:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOff");
getglobal(self:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
else
PlaySound("igMainMenuOptionCheckBoxOn");
getglobal(self:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
end
local text = getglobal(self:GetName().."Text");
text:SetText("Show Text Only");
text:SetTextColor(1, 1, 1);
TipBuddyPopup_StopCounting(self:GetParent());
self:SetBackdropBorderColor(0.8, 0.8, 0.8);
self:SetBackdropColor(0.35, 0.35, 0.5);
TipBuddyPopup_StopCounting(self);
TipBuddyPopup_StartCounting(self);
--PlaySoundFile("Sound\\Interface\\SheathMetal.wav");
PlaySound("igMainMenuOptionCheckBoxOn");
UIDropDownMenu_OnUpdate(self, elapsed);
if (self:GetParent():GetChecked()) then
local popframe = getglobal(self:GetParent():GetName().."_PlusPopup");
popframe:Show();
PlaySoundFile("Sound\\Interface\\iDeselectTarget.wav");
end
if (self:GetChecked()) then
getglobal(self:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
else
getglobal(self:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
end
if (self:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOff");
getglobal(self:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
else
PlaySound("igMainMenuOptionCheckBoxOn");
getglobal(self:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
end
local text = getglobal(self:GetName().."Text");
text:SetText("T");
text:SetTextHeight(7);
if (self.updatetext) then
if ((self:GetName() == ("TipBuddy_OptionsFrame_Slider2"))
or (self:GetName() == ("TipBuddy_OptionsFrame_Slider3"))) then
self.updatetext:SetText(format("%.1f",(self:GetValue())));
elseif (self:GetName() == ("TipBuddy_OptionsFrame_Slider6")) then
self.updatetext:SetText(format("%.2f",(self:GetValue())));
else
self.updatetext:SetText(self:GetValue());
end
return;
end
self.updatetext = getglobal(self:GetName().."TextUpdate");
if (self.tooltipText) then
GameTooltip:SetOwner(self,"ANCHOR_RIGHT");
GameTooltip:SetText(self.tooltipText, nil, nil, nil, nil, 1);
end
if (self.tooltipRequirement) then
GameTooltip:AddLine(self.tooltipRequirement, "", 1.0, 1.0, 1.0);
GameTooltip:Show();
end
GameTooltip:Hide();
if (self.updatetext) then
--self.updatetext:SetText(format("%.1f", (self:GetValue())));
self.updatetext:SetText(self:GetValue());
return;
end
self.updatetext = getglobal(self:GetName().."TextUpdate");
self:SetBackdropColor(0.2, 0.2, 0.2);
getglobal("TB_EditBox_0"..self:GetID().."_2"):SetFocus();
self:ClearFocus();
self:ClearFocus();
self:HighlightText(0, 0);
self:ClearFocus();
self:HighlightText(0, 0);
TipBuddy_OptionsFrame_OnLoad();
if (arg1 == "ESCAPE") then
TipBuddy_ToggleOptionsFrame();
elseif (arg1 == "ENTER") then
ChatFrame_OpenChat("", chatFrame);
elseif (arg1 == "/") then
ChatFrame_OpenChat("/", chatFrame);
elseif (arg1 == strupper(GetBindingKey("SCREENSHOT"))) then
RunBinding("SCREENSHOT");
end
if (MYADDONS_ACTIVE_OPTIONSFRAME == self) then
HideUIPanel(GameMenuFrame);
HideUIPanel(myAddOnsFrame);
TipBuddy_OptionsFrame_UpdateCheckboxes();
TipBuddy_OptionsFrame_UpdateSliders();
TipBuddy_OptionsFrame_UpdateColorButtons();
TipBuddy_OptionsFrame_UpdateColorButtons_Text();
TipBuddy_Background_ColorPick_OnLoad();
PlaySound("igMainMenuQuit");
end
if (not TipBuddy_SavedVars["general"].opPos_L) then
return;
else
self:SetPoint("TOPLEFT", "UIParent", "BOTTOMLEFT", TipBuddy_SavedVars["general"].opPos_L, TipBuddy_SavedVars["general"].opPos_T);
end
TB_Options_OnMouseDown(button);
TB_Options_OnMouseUp(button);
self:SetBackdropBorderColor(0.8, 0.8, 0.9);
self:SetBackdropColor(0, 0, 0, 1);
TipBuddy_ShowTextVars:SetText("Show Vars");
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_TipStyleDropDown_OnLoad(self, "pc_friend");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDColorDropDown_OnLoad(self, "pc_friend");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDBColorDropDown_OnLoad(self, "pc_friend");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_TipStyleDropDown_OnLoad(self, "pc_party");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDColorDropDown_OnLoad(self, "pc_party");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDBColorDropDown_OnLoad(self, "pc_party");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_TipStyleDropDown_OnLoad(self, "pc_enemy");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDColorDropDown_OnLoad(self, "pc_enemy");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDBColorDropDown_OnLoad(self, "pc_enemy");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_TipStyleDropDown_OnLoad(self, "npc_friend");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDColorDropDown_OnLoad(self, "npc_friend");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDBColorDropDown_OnLoad(self, "npc_friend");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_TipStyleDropDown_OnLoad(self, "npc_neutral");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDColorDropDown_OnLoad(self, "npc_neutral");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDBColorDropDown_OnLoad(self, "npc_neutral");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_TipStyleDropDown_OnLoad(self, "npc_enemy");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDColorDropDown_OnLoad(self, "npc_enemy");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDBColorDropDown_OnLoad(self, "npc_enemy");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_TipStyleDropDown_OnLoad(self, "pet_friend");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDColorDropDown_OnLoad(self, "pet_friend");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDBColorDropDown_OnLoad(self, "pet_friend");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_TipStyleDropDown_OnLoad(self, "pet_enemy");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDColorDropDown_OnLoad(self, "pet_enemy");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDBColorDropDown_OnLoad(self, "pet_enemy");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_TipStyleDropDown_OnLoad(self, "corpse");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDColorDropDown_OnLoad(self, "corpse");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_BDBColorDropDown_OnLoad(self, "corpse");
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_CursorPosDropDown_OnLoad(self);
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_CURSORPOS_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
TipBuddy_NonUnitTipPosDropDown_OnLoad(self);
GameTooltip:SetOwner(self,"ANCHOR_TOPRIGHT");
GameTooltip:SetText(TB_OPTION_NONUNITPOS_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
TipBuddy_OptionsFrame_OnLoad();
if (arg1 == "ESCAPE") then
self:Hide();
TipBuddy_ToggleOptionsFrame();
elseif (arg1 == "ENTER") then
ChatFrame_OpenChat("", chatFrame);
elseif (arg1 == "/") then
ChatFrame_OpenChat("/", chatFrame);
elseif (arg1 == strupper(GetBindingKey("SCREENSHOT"))) then
RunBinding("SCREENSHOT");
end
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.6, 0.6, 0.7);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.6, 0.6, 0.7);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.6, 0.6, 0.7);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.6, 0.6, 0.7);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.6, 0.6, 0.7);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetBackdropBorderColor(0.6, 0.6, 0.7);
self:SetBackdropColor(0.15, 0.15, 0.15);
self:SetFrameLevel(TBColorPickerFrame:GetFrameLevel() - 1);
if (TBColorPickerFrame.opacityFunc) then
TBColorPickerFrame.opacityFunc();
end
if (self.updatetext) then
self.updatetext:SetText("Alpha:\n"..(format("%.0f", (((self:GetValue() - 1)*-100)))).."%");
return;
end
self.updatetext = getglobal(self:GetName().."TextUpdate");
self:Raise();
if (self.hasOpacity) then
TBOpacitySliderFrame:Show();
TBOpacitySliderFrame:SetValue(self.opacity);
self:SetWidth(365);
else
TBOpacitySliderFrame:Hide();
self:SetWidth(305);
end
PlaySound("gsTitleOptionOK");
PlaySound("gsTitleOptionOK");
TBColorSwatch:SetTexture(arg1, arg2, arg3);
if (self.func) then
self.func();
end
if (arg1 == "ESCAPE") then
HideUIPanel(self);
if (TBColorPickerFrame.cancelFunc) then
TBColorPickerFrame.cancelFunc(TBColorPickerFrame.previousValues);
end
end
self:SetFrameLevel(TBColorPickerFrame_Text:GetFrameLevel() - 1);
if (TBColorPickerFrame_Text.opacityFunc) then
TBColorPickerFrame_Text.opacityFunc();
end
self:Raise();
if (self.hasOpacity) then
TBOpacitySliderFrame_Text:Show();
TBOpacitySliderFrame_Text:SetValue(self.opacity);
self:SetWidth(365);
else
TBOpacitySliderFrame_Text:Hide();
self:SetWidth(305);
end
PlaySound("gsTitleOptionOK");
PlaySound("gsTitleOptionOK");
TBColorSwatch_Text:SetTexture(arg1, arg2, arg3);
if (self.func) then
self.func();
end
if (arg1 == "ESCAPE") then
HideUIPanel(self);
if (TBColorPickerFrame_Text.cancelFunc) then
TBColorPickerFrame_Text.cancelFunc(TBColorPickerFrame_Text.previousValues);
end
end