Squirrel/Script Types/VectorScreen

From Liberty Unleashed Wiki
Revision as of 22:30, 23 August 2009 by Juppi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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