road_gui.h File Reference

Functions/types related to the road GUIs. More...

#include "road_type.h"

Go to the source code of this file.

Functions

struct WindowShowBuildRoadToolbar (RoadType roadtype)
 Open the build road toolbar window.
struct WindowShowBuildRoadScenToolbar ()

Detailed Description

Functions/types related to the road GUIs.

Definition in file road_gui.h.


Function Documentation

struct Window* ShowBuildRoadToolbar ( RoadType  roadtype  )  [read]

Open the build road toolbar window.

If the terraform toolbar is linked to the toolbar, that window is also opened.

Returns:
newly opened road toolbar, or NULL if the toolbar could not be opened.

Definition at line 756 of file road_gui.cpp.

References _local_company, DeleteWindowByClass(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), ROADTYPE_ROAD, and TRANSPORT_ROAD.

Referenced by MainToolbarWindow::OnKeyPress().


Generated on Fri Dec 31 17:15:51 2010 for OpenTTD by  doxygen 1.6.1