|
OpenTTD Source
14.0-beta1
|
#include "stdafx.h"#include "landscape.h"#include "window_gui.h"#include "viewport_func.h"#include "strings_func.h"#include "zoom_func.h"#include "window_func.h"#include "widgets/viewport_widget.h"#include "table/strings.h"#include "table/sprites.h"#include "safeguards.h"Go to the source code of this file.
Data Structures | |
| class | ExtraViewportWindow |
Functions | |
| void | ShowExtraViewportWindow (TileIndex tile) |
| Show a new Extra Viewport window. More... | |
| void | ShowExtraViewportWindowForTileUnderCursor () |
| Show a new Extra Viewport window. More... | |
Variables | |
| static constexpr NWidgetPart | _nested_extra_viewport_widgets [] |
| static WindowDesc | _extra_viewport_desc (__FILE__, __LINE__, WDP_AUTO, "extra_viewport", 300, 268, WC_EXTRA_VIEWPORT, WC_NONE, 0, std::begin(_nested_extra_viewport_widgets), std::end(_nested_extra_viewport_widgets)) |
Extra viewport window.
Definition in file viewport_gui.cpp.
| void ShowExtraViewportWindow | ( | TileIndex | tile | ) |
Show a new Extra Viewport window.
| tile | Tile to center the view on. INVALID_TILE means to use the center of main viewport. |
Definition at line 156 of file viewport_gui.cpp.
References FindWindowById(), and WC_EXTRA_VIEWPORT.
Referenced by StoryBookWindow::OnPageElementClick().
| void ShowExtraViewportWindowForTileUnderCursor | ( | ) |
Show a new Extra Viewport window.
Center it on the tile under the cursor, if the cursor is inside a viewport. If that fails, center it on main viewport center.
Definition at line 171 of file viewport_gui.cpp.
|
staticconstexpr |
Definition at line 26 of file viewport_gui.cpp.