GUISprite
From Liberty Unleashed Wiki
Revision as of 01:05, 5 October 2012 by IdkanYavuk (Talk | contribs)
This function creates a GUI sprite (an image).
Syntax
GUISprite can take different lists of parameters. These are:
GUISprite GUISprite( string file )
GUISprite GUISprite( string file, VectorScreen pos )
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
g_vlogoPos <- VectorScreen( 10, ScreenHeight - 60 ); g_logo <- GUISprite( "logo.png", ::g_vlogoPos ); function onClientSpawn( pClass ) { g_logo.Visible = true; return 1; }
Notes
Used functions and other notes here.