Difference between revisions of "GUI Classes"

From Multi Theft Auto: Wiki
Line 1: Line 1:
<pageclass class="resource"></pageclass>
+
<pageclass class="resource" subcaption="Script"></pageclass>
 
This page lists all the gui class objects. This will only work with: http://community.mtasa.com/index.php?p=resources&s=details&id=241
 
This page lists all the gui class objects. This will only work with: http://community.mtasa.com/index.php?p=resources&s=details&id=241
  
Line 7: Line 7:
 
__TOC__
 
__TOC__
  
==Button class==
+
==Installation==
 +
The installation is pretty simple. All you need to do is copy and paste folder '''"gui_class/classes/"''' into your resource which you want to use these classes in. Then just copy specified lines from '''"gui_class/meta.xml"''' into your meta.xml. As you know gui_class is not actually a resource that you can use exported functions of. It just includes all the classes that make scripting GUI cleaner, so that's why you have to copy the directory and include the files which are inside into meta.xml to tell the server/client which files you're using (that is, the classes you want to use).
 +
 
 +
You can also start gui_class resource and uncomment some examples which are located in '''"test.lua"'''
 +
 
 +
==Classes==
 +
===Button class===
 
{{GUI_Classes_Button}}
 
{{GUI_Classes_Button}}
  
==Check Box class==
+
===Check Box class===
 
{{GUI_Classes_CheckBox}}
 
{{GUI_Classes_CheckBox}}
  
==Gridlist class==
+
===Gridlist class===
 
{{GUI_Classes_Gridlist}}
 
{{GUI_Classes_Gridlist}}
  
==Label class==
+
===Label class===
 
{{GUI_Classes_Label}}
 
{{GUI_Classes_Label}}
  
==Memo class==
+
===Memo class===
 
{{GUI_Classes_Memo}}
 
{{GUI_Classes_Memo}}
  
==Progress Bar class==
+
===Progress Bar class===
 
{{GUI_Classes_ProgressBar}}
 
{{GUI_Classes_ProgressBar}}
  
==Radio Button class==
+
===Radio Button class===
 
{{GUI_Classes_RadioButton}}
 
{{GUI_Classes_RadioButton}}
  
==Scroll Bar class==
+
===Scroll Bar class===
 
{{GUI_Classes_ScrollBar}}
 
{{GUI_Classes_ScrollBar}}
  
==Static Image class==
+
===Static Image class===
 
{{GUI_Classes_StaticImage}}
 
{{GUI_Classes_StaticImage}}
  
==Tab class==
+
===Tab class===
 
{{GUI_Classes_Tab}}
 
{{GUI_Classes_Tab}}
  
==Tab panel class==
+
===Tab panel class===
 
{{GUI_Classes_TabPanel}}
 
{{GUI_Classes_TabPanel}}
  
==Text Box class (formally known as Edit)==
+
===Text Box class (formally known as Edit)===
 
{{GUI_Classes_TextBox}}
 
{{GUI_Classes_TextBox}}
  
==Window class==
+
===Window class===
 
{{GUI_Classes_Window}}
 
{{GUI_Classes_Window}}
  
==Shared methods with all classes==
+
===Shared methods with all classes===
 
{{GUI_Classes_SharedFuncs}}
 
{{GUI_Classes_SharedFuncs}}

Revision as of 20:43, 28 February 2009

This page lists all the gui class objects. This will only work with: http://community.mtasa.com/index.php?p=resources&s=details&id=241

This system is created by the well known 50p!

GUI Classes made scripting gui objects easier!

Installation

The installation is pretty simple. All you need to do is copy and paste folder "gui_class/classes/" into your resource which you want to use these classes in. Then just copy specified lines from "gui_class/meta.xml" into your meta.xml. As you know gui_class is not actually a resource that you can use exported functions of. It just includes all the classes that make scripting GUI cleaner, so that's why you have to copy the directory and include the files which are inside into meta.xml to tell the server/client which files you're using (that is, the classes you want to use).

You can also start gui_class resource and uncomment some examples which are located in "test.lua"

Classes

Button class

Check Box class

Gridlist class

Label class

Memo class

Progress Bar class

Radio Button class

Scroll Bar class

Static Image class

Tab class

Tab panel class

Text Box class (formally known as Edit)

Window class

Shared methods with all classes