OpenTTD Source 20241224-master-gf74b0cf984
|
Implementation of linkgraph overlay GUI. More...
#include "../stdafx.h"
#include "../window_gui.h"
#include "../window_func.h"
#include "../company_base.h"
#include "../company_gui.h"
#include "../timer/timer_game_tick.h"
#include "../timer/timer_game_calendar.h"
#include "../viewport_func.h"
#include "../zoom_func.h"
#include "../smallmap_gui.h"
#include "../core/geometry_func.hpp"
#include "../widgets/link_graph_legend_widget.h"
#include "../strings_func.h"
#include "linkgraph_gui.h"
#include "table/strings.h"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
std::unique_ptr< NWidgetBase > | MakeCompanyButtonRowsLinkGraphGUI () |
Make a number of rows with buttons for each company for the linkgraph legend window. | |
std::unique_ptr< NWidgetBase > | MakeSaturationLegendLinkGraphGUI () |
std::unique_ptr< NWidgetBase > | MakeCargoesLegendLinkGraphGUI () |
void | ShowLinkGraphLegend () |
Open a link graph legend window. | |
Variables | |
static constexpr NWidgetPart | _nested_linkgraph_legend_widgets [] |
static WindowDesc | _linkgraph_legend_desc (WDP_AUTO, "toolbar_linkgraph", 0, 0, WC_LINKGRAPH_LEGEND, WC_NONE, 0, _nested_linkgraph_legend_widgets) |
Implementation of linkgraph overlay GUI.
Definition in file linkgraph_gui.cpp.
std::unique_ptr< NWidgetBase > MakeCargoesLegendLinkGraphGUI | ( | ) |
Definition at line 473 of file linkgraph_gui.cpp.
std::unique_ptr< NWidgetBase > MakeCompanyButtonRowsLinkGraphGUI | ( | ) |
Make a number of rows with buttons for each company for the linkgraph legend window.
Definition at line 454 of file linkgraph_gui.cpp.
References MakeCompanyButtonRows().
std::unique_ptr< NWidgetBase > MakeSaturationLegendLinkGraphGUI | ( | ) |
Definition at line 459 of file linkgraph_gui.cpp.
void ShowLinkGraphLegend | ( | ) |
Open a link graph legend window.
Definition at line 549 of file linkgraph_gui.cpp.
Referenced by MenuClickMap().
|
staticconstexpr |
Definition at line 506 of file linkgraph_gui.cpp.