summaryrefslogtreecommitdiff
path: root/src/waypoint_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/waypoint_gui.cpp')
-rw-r--r--src/waypoint_gui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/waypoint_gui.cpp b/src/waypoint_gui.cpp
index 869086a5d..bca642b3d 100644
--- a/src/waypoint_gui.cpp
+++ b/src/waypoint_gui.cpp
@@ -150,6 +150,7 @@ public:
};
+/** The widgets of the waypoint view. */
static const NWidgetPart _nested_waypoint_view_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
@@ -170,6 +171,7 @@ static const NWidgetPart _nested_waypoint_view_widgets[] = {
EndContainer(),
};
+/** The description of the waypoint view. */
static const WindowDesc _waypoint_view_desc(
WDP_AUTO, 260, 118,
WC_WAYPOINT_VIEW, WC_NONE,
@@ -177,6 +179,10 @@ static const WindowDesc _waypoint_view_desc(
_nested_waypoint_view_widgets, lengthof(_nested_waypoint_view_widgets)
);
+/**
+ * Show the window for the given waypoint.
+ * @param wp The waypoint to show the window for.
+ */
void ShowWaypointWindow(const Waypoint *wp)
{
AllocateWindowDescFront<WaypointWindow>(&_waypoint_view_desc, wp->index);