Introduction to Scripting the GUI: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
[[Image:AdminGUI.png|thumb|Admin Console GUI]] | [[Image:AdminGUI.png|thumb|Admin Console GUI]] | ||
==A tutorial to make a login window== | |||
In this tutorial we'll make a simple login window, with two input boxes and a button. The window appears when the player joins the game, and once the button is clicked, the player is spawned. | |||
===Draw the window=== | |||
All the GUI must be made client side. |
Revision as of 18:27, 29 April 2008
One important feature in MTA:DM is the ability to script customized GUI (Graphic User Interface). The GUI consists of windows, button, edit boxes, check boxes... Almost every standard form components in graphical environments. They can be displayed while the user is in game, and used for inputs and outpus in place of traditional commands.
A tutorial to make a login window
In this tutorial we'll make a simple login window, with two input boxes and a button. The window appears when the player joins the game, and once the button is clicked, the player is spawned.
Draw the window
All the GUI must be made client side.