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(); local scrollbar = getglobal(this:GetName().."ScrollBar"); scrollbar:SetMinMaxValues(0, 1); scrollbar:SetValue(1); MikSBTOpt.OnVerticalScroll(); local scrollbar = getglobal(this:GetName().."ScrollBar"); scrollbar:SetMinMaxValues(0, 1); scrollbar:SetValue(1); MikSBTOpt.OnVerticalScroll(); 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();