This commit is contained in:
Robert Jelic
2025-02-09 17:58:22 +01:00
parent 5afcae7633
commit a6613b76d9
2 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ description = "A Basalt UI Framework Documentation"
format = "markdown"
dir = "docs"
file = "src"
style = "!dark"
style = "dark"
template = true
sort = true
all = true

View File

@@ -81,7 +81,7 @@ end
--- Schedules a function to be updated
--- @function scheduleUpdate
--- @param func function The function to schedule
--- @return number The schedule ID
--- @return number Id The schedule ID
--- @usage local id = basalt.scheduleUpdate(myFunction)
function basalt.scheduleUpdate(func)
table.insert(basalt._schedule, func)
@@ -89,9 +89,9 @@ function basalt.scheduleUpdate(func)
end
--- Removes a scheduled update
-- @function removeSchedule
-- @param id number The schedule ID to remove
-- @usage basalt.removeSchedule(scheduleId)
--- @function removeSchedule
--- @param id number The schedule ID to remove
--- @usage basalt.removeSchedule(scheduleId)
function basalt.removeSchedule(id)
basalt._schedule[id] = nil
end