Commit fec51f28 authored by funkydude's avatar funkydude
Browse files

AceGUI-3.0/widgets/AceGUIWidget-Slider: Use the value passed to the...

AceGUI-3.0/widgets/AceGUIWidget-Slider: Use the value passed to the OnValueChanged script, saves a call to frame:GetValue()

git-svn-id: https://repos.wowace.com/wow/ace3/trunk@1191 5debad98-a965-4143-8383-f471b3509dcf
parent b42f2b5d
......@@ -57,10 +57,9 @@ local function Frame_OnMouseDown(frame)
AceGUI:ClearFocus()
end
local function Slider_OnValueChanged(frame)
local function Slider_OnValueChanged(frame, newvalue)
local self = frame.obj
if not frame.setup then
local newvalue = frame:GetValue()
if self.step and self.step > 0 then
local min_value = self.min or 0
newvalue = floor((newvalue - min_value) / self.step + 0.5) * self.step + min_value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment