Framework update, preparing to release
This commit is contained in:
+12
-1
@@ -103,6 +103,14 @@ local onWidgetSetInUse = function(widget, widgetTable)
|
||||
widget.childrenids = widgetTable.childrenids
|
||||
end
|
||||
widget.children_follow_enabled = widgetTable.children_follow_enabled
|
||||
|
||||
if (widgetTable.disabled) then
|
||||
widget:Disable()
|
||||
else
|
||||
if (not widget:IsEnabled()) then
|
||||
widget:Enable()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local setWidgetId = function(parent, widgetTable, widgetObject)
|
||||
@@ -367,15 +375,18 @@ local setRangeProperties = function(parent, widget, widgetTable, currentXOffset,
|
||||
|
||||
widget.bAttachButtonsToLeft = bAttachSliderButtonsToLeft
|
||||
|
||||
local currentValue = widgetTable.get()
|
||||
|
||||
if (bIsDecimals) then
|
||||
widget.slider:SetValueStep(0.01)
|
||||
else
|
||||
widget.slider:SetValueStep(widgetTable.step or 1)
|
||||
currentValue = math.floor(currentValue)
|
||||
end
|
||||
widget.useDecimals = bIsDecimals
|
||||
|
||||
widget.slider:SetMinMaxValues(widgetTable.min, widgetTable.max)
|
||||
widget.slider:SetValue(widgetTable.get() or 0)
|
||||
widget.slider:SetValue(currentValue or 0)
|
||||
widget.ivalue = widget.slider:GetValue()
|
||||
|
||||
if (widgetWidth) then
|
||||
|
||||
Reference in New Issue
Block a user