From 8112378c70fe939b1ebe7588b69ab844cfbfd908 Mon Sep 17 00:00:00 2001 From: Erlend Date: Wed, 14 Dec 2022 15:10:36 +0100 Subject: [PATCH] :memo: Fix a small typo in How-To.md Fixed typo where it said `mainFrame` instead of `main`. Reported by Broso56#0465 in the Discord. --- docs/home/How-To.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/home/How-To.md b/docs/home/How-To.md index f28754b..ebc0ced 100644 --- a/docs/home/How-To.md +++ b/docs/home/How-To.md @@ -1,3 +1,5 @@ +# How-To + After downloading the project you can finally start creating your own program and use basalt. The first thing you want to use in your program is always: ```lua @@ -24,7 +26,7 @@ local basalt = require("basalt") --> Load the basalt framework into the variable --> Now we want to create a base frame, we call the variable "main" - by default everything you create is visible. (you don't need to use :show()) local main = basalt.createFrame() -local button = mainFrame:addButton() --> Here we add our first button +local button = main:addButton() --> Here we add our first button button:setPosition(4, 4) -- of course we want to change the default position of our button button:setSize(16, 3) -- and the default size. button:setText("Click me!") --> This method displays what the text of our button should look like -- 2.49.1