Squirrel/Client/Functions/GUISprite/GUISprite

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|GUISprite}} This function creates a GUI sprite (an image). == Syntax == ''GUISprite'' can take different lists of parameters. These are: <code>GUISprite GUISp…')

Revision as of 02:30, 11 December 2010

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

This function creates a GUI sprite (an image).

Syntax

GUISprite can take different lists of parameters. These are:

  1. GUISprite GUISprite( string file )
  1. GUISprite GUISprite( string file, VectorScreen pos )
  1. GUISprite GUISprite( string file, VectorScreen pos, float rotation, VectorScreen rotationcentre )

Arguments

  • file - The filename of the sprite to be drawn
  • pos - The position of the sprite on screen or related to its parent. This parameter is optional
  • rotation - The sprite rotation in degrees. This parameter is optional
  • rotationcentre - The rotation centre relative to the sprite coordinates. This parameter is optional

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.  

Notes

Used functions and other notes here.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox