Class that manipultes the users 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. |
Class that manipultes the users viewport.
game
Definition at line 22 of file script_viewport.hpp.
void ScriptViewport::ScrollTo | ( | TileIndex | tile | ) | [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. |
Definition at line 18 of file script_viewport.cpp.
References ScriptGame::IsMultiplayer(), ScriptMap::IsValidTile(), and ScrollMainWindowToTile().