In this tutorial, you will learn how to make a login screen like in the screenshot below.
To create an object, you will have to add it to the window. The add function works with templates so that you can create any kind of objects, even your own custom ones. The name you pass to the add function is a way to access the object later, but it is not really needed in most situations.
Now that the object (in this case a picture) is created, you can set it up.
We are also going to create an edit box. The code is similar to creating the picture.
We could load the second edit box in exactly the same way, but I’ll show you how to copy objects.
All you got to do is call copy instead of add.
As this is an edit box that contains a password, we will set a password character.
The rest of the objects are created in a similar way and I am not going to explain every line.
Below you can find the code to create all the objects inside the login screen.
Take a moment to read through it to make sure you understand everything.