if (this.tooltipText ~= nil) then
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
end
GameTooltip:Hide();
if (this:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
-- Call the font settings checkbox OnClick handler.
MikSBTOpt.CheckboxOnClick();
MikSBTOpt.SliderOnValueChanged();
if (this.tooltipText ~= nil) then
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
end
GameTooltip:Hide();MikSBTOpt.EditboxOnTextChanged();
if (this:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
-- Call the trigger settings checkbox OnClick handler.
MikSBTOpt.EnableTriggerCheckboxOnClick();
local scrollbar = getglobal(this:GetName().."ScrollBar");
scrollbar:SetMinMaxValues(0, 1);
scrollbar:SetValue(1);
MikSBTOpt.OnVerticalScroll();GameTooltip:Hide();
-- Check if there is an associated clicked label frame, set its text to the editbox's text, and show it.
if (this.ClickedLabelFrameName) then
local objLabel = getglobal(this.ClickedLabelFrameName);
objLabel:SetText(this:GetText());
objLabel:Show();
end
-- Make sure there is previous text and set the editbox to it.
if (this.PreviousText ~= nil) then
this:SetText(this.PreviousText);
MikSBTOpt.EditboxOnTextChanged();
end
this:Hide();
this:Hide();
local scrollbar = getglobal(this:GetName().."ScrollBar");
scrollbar:SetMinMaxValues(0, 1);
scrollbar:SetValue(1);
MikSBTOpt.OnVerticalScroll();GameTooltip:Hide();
-- Check if there is an associated clicked label frame, set its text to the editbox's text, and show it.
if (this.ClickedLabelFrameName) then
local objLabel = getglobal(this.ClickedLabelFrameName);
objLabel:SetText(this:GetText());
objLabel:Show();
end
-- Make sure there is previous text and set the editbox to it.
if (this.PreviousText ~= nil) then
this:SetText(this.PreviousText);
MikSBTOpt.EditboxOnTextChanged();
end
this:Hide();
this:Hide();
local scrollbar = getglobal(this:GetName().."ScrollBar");
scrollbar:SetMinMaxValues(0, 1);
scrollbar:SetValue(1);
MikSBTOpt.OnVerticalScroll();GameTooltip:Hide();
-- Check if there is an associated clicked label frame, set its text to the editbox's text, and show it.
if (this.ClickedLabelFrameName) then
local objLabel = getglobal(this.ClickedLabelFrameName);
objLabel:SetText(this:GetText());
objLabel:Show();
end
-- Make sure there is previous text and set the editbox to it.
if (this.PreviousText ~= nil) then
this:SetText(this.PreviousText);
MikSBTOpt.EditboxOnTextChanged();
end
this:Hide();
this:Hide();
if (this.tooltipText ~= nil) then
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
end
GameTooltip:Hide();
-- Start moving the frame if the left mouse button is pressed.
if (arg1 == "LeftButton") then
this:StartMoving();
end
-- Stop moving the frame.
this:StopMovingOrSizing();
-- Save the scroll area's coordinates to the control frame.
MikSBTOpt.SaveScrollAreaMoverCoordinates(this:GetName());
MikSBTOpt.FontSettingsSliderOnValueChanged();MikSBTOpt.FontSettingsSliderOnValueChanged();this:SetBackdropColor(0.05, 0.05, 0.05, 1.0);MikSBTOpt.ScrollAreaMoverControlSliderOnValueChanged();this:SetBackdropColor(0.05, 0.05, 0.05, 1.0);
local scrollbar = getglobal(this:GetName().."ScrollBar");
scrollbar:SetMinMaxValues(0, 1);
scrollbar:SetValue(1);
MikSBTOpt.OnVerticalScroll();this:SetBackdropColor(0.05, 0.05, 0.05, 1.0);
-- Start moving the parent frame if the left mouse button is pressed.
if (arg1 == "LeftButton") then
this:GetParent():StartMoving();
end
-- Stop moving the parent frame.
this:GetParent():StopMovingOrSizing();
MikSBTOpt.OnEvent();MikSBTOpt.OnLoad();MikSBTOpt.OnHide();MikSBTOpt.OnShow();