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