Framework, update
This commit is contained in:
+9
-2
@@ -891,6 +891,7 @@ detailsFramework.DataMixin = {
|
||||
---@field ValueConstructor fun(self: df_value)
|
||||
---@field SetMinMaxValues fun(self: df_value, minValue: number, maxValue: number)
|
||||
---@field GetMinMaxValues fun(self: df_value) : number, number
|
||||
---@field ResetMinMaxValues fun(self: df_value)
|
||||
---@field GetMinValue fun(self: df_value) : number
|
||||
---@field GetMaxValue fun(self: df_value) : number
|
||||
---@field SetMinValue fun(self: df_value, minValue: number)
|
||||
@@ -905,8 +906,7 @@ detailsFramework.ValueMixin = {
|
||||
---initialize the value table
|
||||
---@param self table
|
||||
ValueConstructor = function(self)
|
||||
self.minValue = 0
|
||||
self.maxValue = 1
|
||||
self:ResetMinMaxValues()
|
||||
end,
|
||||
|
||||
---set the min and max values
|
||||
@@ -925,6 +925,13 @@ detailsFramework.ValueMixin = {
|
||||
return self.minValue, self.maxValue
|
||||
end,
|
||||
|
||||
---reset the min and max values
|
||||
---@param self table
|
||||
ResetMinMaxValues = function(self)
|
||||
self.minValue = 0
|
||||
self.maxValue = 1
|
||||
end,
|
||||
|
||||
---get the min value
|
||||
---@param self table
|
||||
---@return number
|
||||
|
||||
Reference in New Issue
Block a user