Test
This commit is contained in:
@@ -4,7 +4,7 @@ description = "A Basalt UI Framework Documentation"
|
|||||||
format = "markdown"
|
format = "markdown"
|
||||||
dir = "docs"
|
dir = "docs"
|
||||||
file = "src"
|
file = "src"
|
||||||
style = "!dark"
|
style = "dark"
|
||||||
template = true
|
template = true
|
||||||
sort = true
|
sort = true
|
||||||
all = true
|
all = true
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ end
|
|||||||
--- Schedules a function to be updated
|
--- Schedules a function to be updated
|
||||||
--- @function scheduleUpdate
|
--- @function scheduleUpdate
|
||||||
--- @param func function The function to schedule
|
--- @param func function The function to schedule
|
||||||
--- @return number The schedule ID
|
--- @return number Id The schedule ID
|
||||||
--- @usage local id = basalt.scheduleUpdate(myFunction)
|
--- @usage local id = basalt.scheduleUpdate(myFunction)
|
||||||
function basalt.scheduleUpdate(func)
|
function basalt.scheduleUpdate(func)
|
||||||
table.insert(basalt._schedule, func)
|
table.insert(basalt._schedule, func)
|
||||||
@@ -89,9 +89,9 @@ function basalt.scheduleUpdate(func)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--- Removes a scheduled update
|
--- Removes a scheduled update
|
||||||
-- @function removeSchedule
|
--- @function removeSchedule
|
||||||
-- @param id number The schedule ID to remove
|
--- @param id number The schedule ID to remove
|
||||||
-- @usage basalt.removeSchedule(scheduleId)
|
--- @usage basalt.removeSchedule(scheduleId)
|
||||||
function basalt.removeSchedule(id)
|
function basalt.removeSchedule(id)
|
||||||
basalt._schedule[id] = nil
|
basalt._schedule[id] = nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user