diff options
author | rubidium <rubidium@openttd.org> | 2011-05-01 19:14:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-01 19:14:12 +0000 |
commit | 1a515e6344028854c855671c19f49d8f869eb18f (patch) | |
tree | e1bba97c1a8fd80f564729cc2d5fc2049110cb2a /src/waypoint_gui.cpp | |
parent | b27dd1dcd7375dae63724879eb0f56dd703e5312 (diff) | |
download | openttd-1a515e6344028854c855671c19f49d8f869eb18f.tar.xz |
(svn r22405) -Document: some more "random-ish" tidbits
Diffstat (limited to 'src/waypoint_gui.cpp')
-rw-r--r-- | src/waypoint_gui.cpp | 6 |
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); |