Framework, update

This commit is contained in:
Tercio Jose
2023-07-07 18:49:16 -03:00
parent e6448ffee6
commit 0677e2e874
8 changed files with 536 additions and 68 deletions
+9 -2
View File
@@ -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