From 2f09e12ec23f9155729da8061aff8668bef3a140 Mon Sep 17 00:00:00 2001 From: Sabine Lim Date: Mon, 8 May 2023 02:35:33 +1000 Subject: [PATCH] Add XML usage to schedule.md --- docs/objects/Basalt/schedule.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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 + +```