forked from mirror/OpenTTD
(svn r22405) -Document: some more "random-ish" tidbits
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user