smallmap_gui.h File Reference

Smallmap GUI functions. More...

#include "industry_type.h"
#include "window_gui.h"
#include "strings_func.h"
#include "blitter/factory.hpp"
#include "linkgraph_gui.h"

Go to the source code of this file.

Data Structures

struct  LegendAndColour
 Structure for holding relevant data for legends in small map. More...
class  SmallMapWindow
 Class managing the smallmap window. More...

Enumerations

enum  SmallMapWindowWidgets {
  SM_WIDGET_CAPTION, SM_WIDGET_MAP_BORDER, SM_WIDGET_MAP, SM_WIDGET_LEGEND,
  SM_WIDGET_BLANK, SM_WIDGET_ZOOM_IN, SM_WIDGET_ZOOM_OUT, SM_WIDGET_CONTOUR,
  SM_WIDGET_VEHICLES, SM_WIDGET_INDUSTRIES, SM_WIDGET_LINKSTATS, SM_WIDGET_ROUTES,
  SM_WIDGET_VEGETATION, SM_WIDGET_OWNERS, SM_WIDGET_CENTERMAP, SM_WIDGET_TOGGLETOWNNAME,
  SM_WIDGET_SELECT_BUTTONS, SM_WIDGET_ENABLE_ALL, SM_WIDGET_DISABLE_ALL, SM_WIDGET_SHOW_HEIGHT
}
 

Widget numbers of the small map window.

More...

Functions

void BuildLinkStatsLegend ()
 Populate legend table for the link stat view.
void BuildIndustriesLegend ()
 Fills an array for the industries legends.
void ShowSmallMap ()
 Show the smallmap window.
void BuildLandLegend ()
 (Re)build the colour tables for the legends.
void BuildOwnerLegend ()
 Completes the array for the owned property legend.

Detailed Description

Smallmap GUI functions.

Definition in file smallmap_gui.h.


Enumeration Type Documentation

Widget numbers of the small map window.

Enumerator:
SM_WIDGET_CAPTION 

Caption widget.

SM_WIDGET_MAP_BORDER 

Border around the smallmap.

SM_WIDGET_MAP 

Panel containing the smallmap.

SM_WIDGET_LEGEND 

Bottom panel to display smallmap legends.

SM_WIDGET_BLANK 

Empty button as placeholder.

SM_WIDGET_ZOOM_IN 

Button to zoom in one step.

SM_WIDGET_ZOOM_OUT 

Button to zoom out one step.

SM_WIDGET_CONTOUR 

Button to select the contour view (height map).

SM_WIDGET_VEHICLES 

Button to select the vehicles view.

SM_WIDGET_INDUSTRIES 

Button to select the industries view.

SM_WIDGET_LINKSTATS 

Button to select the link stats view.

SM_WIDGET_ROUTES 

Button to select the routes view.

SM_WIDGET_VEGETATION 

Button to select the vegetation view.

SM_WIDGET_OWNERS 

Button to select the owners view.

SM_WIDGET_CENTERMAP 

Button to move smallmap center to main window center.

SM_WIDGET_TOGGLETOWNNAME 

Toggle button to display town names.

SM_WIDGET_SELECT_BUTTONS 

Selection widget for the buttons present in some smallmap modes.

SM_WIDGET_ENABLE_ALL 

Button to enable display of all legend entries.

SM_WIDGET_DISABLE_ALL 

Button to disable display of all legend entries.

SM_WIDGET_SHOW_HEIGHT 

Show heightmap toggle button.

Definition at line 42 of file smallmap_gui.h.


Generated on Fri May 27 04:20:03 2011 for OpenTTD by  doxygen 1.6.1