From 99f11646d306ddce789284fd96668df9753aa454 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sun, 27 Mar 2022 18:28:18 +0200 Subject: [PATCH] Updated Objects (markdown) --- Objects.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Objects.md b/Objects.md index 32f95c0..f500c13 100644 --- a/Objects.md +++ b/Objects.md @@ -1 +1,15 @@ -hi \ No newline at end of file +# Screens + +Screens are the most basic thing you need to be able to create a GUI. They are basically level 0 frames (yes they are frames!) + +Example on how to create a screen: + +````lua + local firstScreen = screen.new("myFirstScreen") + firstScreen:setTitle("First Screen") + firstScreen:showBar() +```` + +Only one screen can be active at the same time, this means, if you use firstScreen:show() and you already created another screen, it will automatically hide the old screen + +Here you can see all the methods you can use: Frames \ No newline at end of file