Squirrel/Client/Functions/GUIButton/GUIButton

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|GUIButton}} This function creates a GUI button. == Syntax == <code>GUIButton GUIButton( VectorScreen pos, VectorScreen size, string text )</code> == Argument…')
 
m (Wrong types)
 
Line 5: Line 5:
 
== Syntax ==
 
== Syntax ==
  
<code>GUIButton GUIButton( VectorScreen pos, VectorScreen size, string text )</code>
+
<code>GUIButton GUIButton( VectorScreen pos, ScreenSize size, string text )</code>
  
 
== Arguments ==
 
== Arguments ==
  
 
* '''pos''' - The position of the button on screen or related to its parent element
 
* '''pos''' - The position of the button on screen or related to its parent element
* '''size''' - The size of the button
+
* '''size''' - The size of the button as a ''ScreenSize'' object
 
* '''text''' - Text on the button
 
* '''text''' - Text on the button
  

Latest revision as of 20:49, 17 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events


This function creates a GUI button.

[edit] Syntax

  1. GUIButton GUIButton( VectorScreen pos, ScreenSize size, string text )

[edit] Arguments

  • pos - The position of the button on screen or related to its parent element
  • size - The size of the button as a ScreenSize object
  • text - Text on the button

[edit] Example

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o

Explanation here.

  1.  
  2. -- todo
  3.  

[edit] Notes

Used functions and other notes here.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox