Fixed type definitions and renamed functions

This commit is contained in:
Tercio Jose
2023-04-28 14:59:23 -03:00
parent 70d9c7c4e9
commit 2a26998e09
4 changed files with 60 additions and 49 deletions
+1
View File
@@ -56,6 +56,7 @@ local geterrorhandler = geterrorhandler
---@field texture texture
--mixed functions
---@class df_headerfunctions : table
detailsFramework.HeaderFunctions = {
---comment
---@param self df_headerchild
+4 -1
View File
@@ -418,7 +418,7 @@ detailsFramework.ScriptHookMixin = {
---mixin to use with DetailsFramework:Mixin(table, detailsFramework.SortFunctions)
---add methods to be used on scrollframes
---@class DetailsFramework.ScrollBoxFunctions
---@class df_scrollboxmixin
detailsFramework.ScrollBoxFunctions = {
---refresh the scrollbox by resetting all lines created with :CreateLine(), then calling the refresh_func which was set at :CreateScrollBox()
---@param self table
@@ -687,6 +687,9 @@ detailsFramework.ScrollBoxFunctions = {
end,
}
--back compatibility, can be removed in the future (28/04/2023)
---@class DetailsFramework.ScrollBoxFunctions : df_scrollboxmixin
local SortMember = ""
local SortByMember = function(t1, t2)
return t1[SortMember] > t2[SortMember]