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( ...)

Revision as of 22:30, 23 August 2009

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 example creates an empty window at (200, 100).

  1.  
  2. function onScriptLoad()
  3. {
  4. window <- GUIWindow();
  5. window.Initialize();
  6. window.Pos = VectorScreen( 200, 100 );
  7.  
  8. AddWindowLayer( window );
  9. SendWindowToBack( window );
  10. }
  11.  

Types

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox