Updated Objects (markdown)
16
Objects.md
16
Objects.md
@@ -1 +1,15 @@
|
|||||||
hi
|
# 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
|
||||||
Reference in New Issue
Block a user