From 570d6f22415d05dd00ee1429f82ed85567544747 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Fri, 20 May 2022 19:07:59 +0200 Subject: [PATCH] Updated Pane (markdown) --- Pane.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Pane.md b/Pane.md index ac97aa7..50b6f82 100644 --- a/Pane.md +++ b/Pane.md @@ -4,3 +4,13 @@ The following list is only available to panes:
Remember pane also inherits from [object](https://github.com/NoryiE/basalt/wiki/Object): Pane doesn't have any custom functionallity. If you want to change the color/position or size, just check out the [object](https://github.com/NoryiE/basalt/wiki/Object) wikipage. + +##Example: + +````lua +local mainFrame = basalt.createFrame("myFirstFrame"):show() +local aPane = mainFrame:addPane("myFirstBackground") +aPane:setSize(30, 10) +aPane:setBackground(colors.yellow) +aPane:show() +```` \ No newline at end of file