diff --git a/docs/objects/Basalt/schedule.md b/docs/objects/Basalt/schedule.md index 2ea0b7d..e946514 100644 --- a/docs/objects/Basalt/schedule.md +++ b/docs/objects/Basalt/schedule.md @@ -15,7 +15,7 @@ Schedules a function which gets called in a coroutine. After the coroutine is fi ### Usage -* Creates a schedule which switches the color between red and gray +Creates a schedule which switches the color between red and gray: ```lua local mainFrame = basalt.createFrame() @@ -34,3 +34,18 @@ aButton:onClick(basalt.schedule(function(self) self:setBackground(colors.gray) end)) ``` + +Usage in XML layout: + +```xml + +```