Code:
local scaleSlider = CreateFrame("Slider", "SPGaugeScaleSlider", spgauge, "OptionsSliderTemplate")
scaleSlider:SetPoint("TOPLEFT", btnManualReport, "BOTTOMLEFT", 10, -100)
scaleSlider:SetWidth(132)
scaleSlider:SetHeight(17)
scaleSlider:SetMinMaxValues(0.1,2)
scaleSlider:SetValue(scale)
scaleSlider:SetValueStep(.1)
getglobal(scaleSlider:GetName() .. 'Low'):SetText('0.1');
getglobal(scaleSlider:GetName() .. 'High'):SetText('2');
getglobal(scaleSlider:GetName() .. 'Text'):SetText('Scale');
scaleSlider:SetScript("OnMouseUp", function(frame)
scale = frame:GetValue()
scaleBox:SetText(scale)
end)
scaleBox = CreateFrame("EditBox", "SPGaugeScaleBox", spgauge, "InputBoxTemplate")
scaleBox:SetPoint("TOPRIGHT", scaleSlider, "BOTTOMRIGHT", 0, -5)
scaleBox:SetAutoFocus(false)
scaleBox:EnableMouse(false)
scaleBox:SetNumeric(false)
scaleBox:SetWidth(20)
scaleBox:SetHeight(20)
scaleBox:SetScript("OnShow", function(frame)
frame:SetText(scale)
end)
Why is it that this code isn't stepping from 1 to 1.1 to 1.2 but instead its stepping from 1 to like 1.45923803 and very obscure integers?