|
OpenTTD
|
Extra viewport window. More...
#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. | |
| void | ShowExtraViewPortWindowForTileUnderCursor () |
| Show a new Extra Viewport window. | |
Variables | |
| static const NWidgetPart | _nested_extra_view_port_widgets [] |
| static WindowDesc | _extra_view_port_desc (WDP_AUTO,"extra_viewport", 300, 268, WC_EXTRA_VIEW_PORT, WC_NONE, 0, _nested_extra_view_port_widgets, lengthof(_nested_extra_view_port_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 170 of file viewport_gui.cpp.
References FindWindowById(), and WC_EXTRA_VIEW_PORT.
Referenced by GoalListWindow::HandleClick(), MenuClickMap(), WaypointWindow::OnClick(), TownViewWindow::OnClick(), NewsWindow::OnClick(), CompanyStationsWindow::OnClick(), DepotWindow::OnClick(), IndustryViewWindow::OnClick(), TownDirectoryWindow::OnClick(), IndustryDirectoryWindow::OnClick(), StationViewWindow::OnClick(), CompanyWindow::OnClick(), StoryBookWindow::OnPageElementClick(), and ShowExtraViewPortWindowForTileUnderCursor().
| 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 185 of file viewport_gui.cpp.
References INVALID_TILE, ShowExtraViewPortWindow(), and TileVirtXY().
Referenced by MainToolbarWindow::OnHotkey(), and ScenarioEditorToolbarWindow::OnHotkey().
|
static |
Definition at line 28 of file viewport_gui.cpp.
1.8.1.2