MBB_OnLoad();
MBB_OnEvent();
if( this:GetValue() == 0 ) then
getglobal(this:GetName().."Text"):SetText(MBB_OPTIONS_SLIDEROFF);
else
getglobal(this:GetName().."Text"):SetText(this:GetValue() .. " " .. MBB_OPTIONS_SLIDERSEK);
end
this:SetMinMaxValues(0,5);
this:SetValueStep(1);
getglobal(this:GetName().."High"):SetText("5 " .. MBB_OPTIONS_SLIDERSEK);
getglobal(this:GetName().."Low"):SetText(MBB_OPTIONS_SLIDEROFF);
this:SetValue(MBB_Options.CollapseTimeout);
if( MBB_Options.CollapseTimeout == 0 ) then
getglobal(this:GetName().."Text"):SetText(MBB_OPTIONS_SLIDEROFF);
else
getglobal(this:GetName().."Text"):SetText(this:GetValue() .. " " .. MBB_OPTIONS_SLIDERSEK);
end
MBB_RadioButton_OnClick(1);
MBB_UpdateAltRadioButtons();
if( MBB_Options.ExpandDirection == 1 ) then
MBB_RadioButton_OnClick(1);
end
MBB_RadioButton_OnClick(2);
MBB_UpdateAltRadioButtons();
if( MBB_Options.ExpandDirection == 2 ) then
MBB_RadioButton_OnClick(2);
end
MBB_RadioButton_OnClick(3);
MBB_UpdateAltRadioButtons();
if( MBB_Options.ExpandDirection == 3 ) then
MBB_RadioButton_OnClick(3);
end
MBB_RadioButton_OnClick(4);
MBB_UpdateAltRadioButtons();
if( MBB_Options.ExpandDirection == 4 ) then
MBB_RadioButton_OnClick(4);
end
this:SetText(MBB_Options.MaxButtonsPerLine);
this:ClearFocus();
MBB_UpdateAltRadioButtons();
if( not tonumber(this:GetText()) ) then
this:SetText(MBB_Options.MaxButtonsPerLine);
end
MBB_UpdateAltRadioButtons();
this:ClearFocus();
this:SetTextInsets(2, 4, 2, 2);
this:SetText(MBB_Options.MaxButtonsPerLine);
MBB_RadioButton_OnClick(1, true);
if( MBB_Options.AltExpandDirection == 1 ) then
MBB_RadioButton_OnClick(1, true);
end
MBB_RadioButton_OnClick(2, true);
if( MBB_Options.AltExpandDirection == 2 ) then
MBB_RadioButton_OnClick(2, true);
end
MBB_RadioButton_OnClick(3, true);
if( MBB_Options.AltExpandDirection == 3 ) then
MBB_RadioButton_OnClick(3, true);
end
MBB_RadioButton_OnClick(4, true);
if( MBB_Options.AltExpandDirection == 4 ) then
MBB_RadioButton_OnClick(4, true);
end
getglobal(this:GetName().."Text"):SetText(this:GetValue() .. "%");
MBB_Options.Scale = MBB_OptionsFrame_Scale:GetValue();
MBB_SetPositions();
MBB_SetButtonPosition();
this:SetMinMaxValues(50,150);
this:SetValueStep(1);
getglobal(this:GetName().."High"):SetText("150%");
getglobal(this:GetName().."Low"):SetText("50%");
this:SetValue(MBB_Options.Scale);
getglobal(this:GetName().."Text"):SetText(this:GetValue() .. "%");
MBB_OptionsFrame_HeaderText:SetText("MBB v" .. MBB_Version .. " " .. MBB_OPTIONS_HEADER);
MBB_UpdateAltRadioButtons();