Squirrel/Script Types/VectorScreen

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ The VectorScreen type is a 2-dimensional vector used to indicate positions on screen. The origin is at the top-left corner of the screen. == Constructor == <code>VectorScreen( ...)
 
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|VectorScreen}}
 
The VectorScreen type is a 2-dimensional vector used to indicate positions on screen. The origin is at the top-left corner of the screen.
 
The VectorScreen type is a 2-dimensional vector used to indicate positions on screen. The origin is at the top-left corner of the screen.
  
Line 13: Line 13:
 
== Example ==
 
== Example ==
  
This example creates an empty window at (200, 100).
+
{{Squirrel/NeedsExample}}
 +
Some explanation here
  
 
<code lang="squirrel">
 
<code lang="squirrel">
function onScriptLoad()
+
-- todo
{
+
    window <- GUIWindow();
+
   
+
    window.Initialize();
+
    window.Pos = VectorScreen( 200, 100 );
+
 
+
    AddWindowLayer( window );
+
    SendWindowToBack( window );
+
}
+
 
</code>
 
</code>
  

Revision as of 18:34, 28 October 2010

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

The VectorScreen type is a 2-dimensional vector used to indicate positions on screen. The origin is at the top-left corner of the screen.

Constructor

  1. VectorScreen( int x, int y )

Values

  • x - The X coordinate of the vector
  • y - The Y coordinate of the vector

Example

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

Some explanation here

  1.  
  2. -- todo
  3.  

Types

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox