OpenTTD GameScript API 20241220-master-g59680867c3
|
Class that manipulates the user's viewport. More...
#include <script_viewport.hpp>
Static Public Member Functions | |
static void | ScrollTo (TileIndex tile) |
Scroll the viewport to the given tile, where the tile will be in the center of the screen. | |
static bool | ScrollEveryoneTo (TileIndex tile) |
Scroll the viewport of all players to the given tile, where the tile will be in the center of the screen. | |
static bool | ScrollCompanyClientsTo (GSCompany::CompanyID company, TileIndex tile) |
Scroll the viewports of all players in the company to the given tile, where the tile will be in the center of the screen. | |
static bool | ScrollClientTo (GSClient::ClientID client, TileIndex tile) |
Scroll the viewport of the client to the given tile, where the tile will be in the center of the screen. | |
Class that manipulates the user's viewport.
|
static |
Scroll the viewport of the client to the given tile, where the tile will be in the center of the screen.
client | The client to scroll the viewport of. |
tile | The tile to put in the center of the screen. |
|
static |
Scroll the viewports of all players in the company to the given tile, where the tile will be in the center of the screen.
company | The company which players to scroll the viewport of. |
tile | The tile to put in the center of the screen. |
|
static |
Scroll the viewport of all players to the given tile, where the tile will be in the center of the screen.
tile | The tile to put in the center of the screen. |
|
static |
Scroll the viewport to the given tile, where the tile will be in the center of the screen.
tile | The tile to put in the center of the screen. |