(svn r22405) -Document: some more "random-ish" tidbits

This commit is contained in:
rubidium
2011-05-01 19:14:12 +00:00
parent b27dd1dcd7
commit 1a515e6344
35 changed files with 173 additions and 58 deletions

View File

@@ -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);