Complete re-write for the mythic+ chart shown in the end of the run

This commit is contained in:
Tercio Jose
2024-08-06 19:26:23 -03:00
committed by andrew6180
parent 70a9a067df
commit c8dc780082
5 changed files with 742 additions and 434 deletions
+3 -2
View File
@@ -474,7 +474,7 @@ detailsFramework.SortFunctions = {
---@field GetDataMinMaxValueFromSubTable fun(self: df_data, key: string) : number, number when data uses sub tables, get the min max values from a specific index or key, if the value stored is number, return the min and max values
---@field SetData fun(self: df_data, data: table, anyValue: any)
---@field SetDataRaw fun(self: df_data, data: table) set the data without triggering callback
---@field GetDataNextValue fun(self: df_data) : any
---@field GetDataNextValue fun(self: df_data) : any, number get the next value from the data table, return the value and the index
---@field ResetDataIndex fun(self: df_data)
---mixin to use with DetailsFramework:Mixin(table, detailsFramework.DataMixin)
@@ -543,11 +543,12 @@ detailsFramework.DataMixin = {
---get the next value from the data table
---@param self table
---@return any
---@return number
GetDataNextValue = function(self)
local currentValue = self._dataInfo.dataCurrentIndex
local value = self:GetData()[currentValue]
self._dataInfo.dataCurrentIndex = self._dataInfo.dataCurrentIndex + 1
return value
return value, currentValue
end,
---reset the data index, making GetDataNextValue() return the first value again