Squirrel/Script Types/VectorScreen
From Liberty Unleashed Wiki
(Difference between revisions)
(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
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).
function onScriptLoad() { window <- GUIWindow(); window.Initialize(); window.Pos = VectorScreen( 200, 100 ); AddWindowLayer( window ); SendWindowToBack( window ); }
Types
- Colour
- ScreenSize
- Vector
- Vector2D
- VectorScreen