-
Notifications
You must be signed in to change notification settings - Fork 10
Viewport
static Viewport *Create();
Creates a new Viewport.
Compatibility: Supported by AGS 3.5.0 and later versions.
See Also: Viewport.Delete
void Delete();
Removes an existing viewport; note that primary viewport will never be removed.
Compatibility: Supported by AGS 3.5.0 and later versions.
See Also: Viewport.Create
static Viewport *GetAtScreenXY(int x, int y);
Returns the viewport at the specified screen location.
Compatibility: Supported by AGS 3.5.0 and later versions.
See Also: Viewport.Delete, Viewport.Create
void SetPosition(int x, int y, int width, int height);
Changes viewport's position on the screen.
Compatibility: Supported by AGS 3.5.0 and later versions.
Point *ScreenToRoomPoint(int scrx, int scry, bool clipViewport = true);
Returns the point in room corresponding to the given screen coordinates if seen through this viewport.
Compatibility: Supported by AGS 3.5.0 and later versions.
See Also: Viewport.RoomToScreenPoint
Point *RoomToScreenPoint(int roomx, int roomy, bool clipViewport = true);
Returns the point on screen corresponding to the given room coordinates if seen through this viewport.
Compatibility: Supported by AGS 3.5.0 and later versions.
See Also: Viewport.ScreenToRoomPoint
attribute int ZOrder;
Gets/sets the Viewport's z-order relative to other viewports.
Compatibility: Supported by AGS 3.5.0 and later versions.
attribute bool Visible;
Gets/sets whether the viewport is drawn on screen.
Compatibility: Supported by AGS 3.5.0 and later versions.
attribute Camera *Camera;
Gets/sets the room camera displayed in this viewport.
Compatibility: Supported by AGS 3.5.0 and later versions.
See Also: Camera.Create
attribute int Viewport.Width;
Gets/sets the viewport's width in screen coordinates.
Compatibility: Supported by AGS 3.5.0 and later versions.
See Also: Viewport.Height
attribute int Viewport.Height;
Gets/sets the viewport's height in screen coordinates.
Compatibility: Supported by AGS 3.5.0 and later versions.
See Also: Viewport.Width
static int Viewport.X;
Gets/sets the X position on the screen where this viewport is located.
Compatibility: Supported by AGS 3.5.0 and later versions.
See Also: Viewport.Y
static int Viewport.Y;
Gets/sets the Y position on the screen where this viewport is located.
Compatibility: Supported by AGS 3.5.0 and later versions.
See Also: Viewport.X
Getting Started in AGS
Editor
- New Game templates
- Editor Preferences
- General Settings
- Default Setup
- Colours Editor
- Room Editor
- Character Editor
- Cursor Editor
- Dialog Editor
- Font Preview
- GUI Editor
- Inventory Items Editor
- View Editor
- Sprite Manager
- Music and sound
- Voice speech
- Script Modules
- System limits
- Log Panel
- Plugins
- Other Features
Engine
Scripting
- Scripting Tutorial
- Scripting Language
-
Scripting API
- Script API Overview
- Standard Constants
- Standard Enumerated Types
- Standard Types
- Game variables
- Global arrays
- Global event handlers
- repeatedly_execute / repeatedly_execute_always
- Custom dialog options rendering
- Global functions: general
- Global functions: message display
- Global functions: multimedia actions
- Global functions: palette operations
- Global functions: room actions
- Global functions: screen effects
- Global functions: wait
- AudioChannel functions and properties
- AudioClip functions and properties
- Camera functions and properties
- Character functions and properties
- DateTime functions and properties
- Dialog functions and properties
- DialogOptionsRenderingInfo functions and properties
- Dictionary functions and properties
- DrawingSurface functions and properties
- DynamicSprite functions and properties
- File functions and properties
- Game functions and properties
- GUI functions and properties
- GUI control functions and properties
- GUI Button functions and properties
- GUI InvWindow functions and properties
- GUI Label functions and properties
- GUI List Box functions and properties
- GUI Slider properties
- GUI Text Box functions and properties
- Hotspot functions and properties
- Inventory item functions and properties
- Maths functions and properties
- Mouse functions and properties
- Object functions and properties
- Overlay functions and properties
- Parser functions
- Region functions and properties
- Room functions and properties
- Screen functions and properties
- Set functions and properties
- Speech functions and properties
- String functions
- System functions and properties
- TextWindowGUI functions and properties
- ViewFrame functions and properties
- Viewport functions and properties
- Obsolete Script API
- Event Types
- Key code table
- Audio in script
Legal Notice
Getting in touch
Misc
Hidden