WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 168 to Rev 169
    Reverse comparison

Rev 168 → Rev 169

trunk/PhanxConfig-Slider/PhanxConfig-Slider.lua
87,6 → 87,7
 
local function Slider_OnValueChanged(self, value, userInput)
local parent = self:GetParent()
if parent.lastValue == value then return end
 
if parent.isPercent then
parent.valueText:SetFormattedText("%.0f%%", value * 100)
94,9 → 95,11
parent.valueText:SetText(value)
end
 
if userInput and parent.Callback then
if parent.lastValue and parent.Callback then print("slider", parent:GetLabel(), "Callback", value)
parent:Callback(value)
end
 
parent.lastValue = value
end
 
------------------------------------------------------------------------