|
OpenTTD Source 20251117-master-g7398d2e290
|
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 std::initializer_list< NWidgetPart > | _nested_linkgraph_legend_widgets |
| static WindowDesc | _linkgraph_legend_desc (WDP_AUTO, "toolbar_linkgraph", 0, 0, WC_LINKGRAPH_LEGEND, WC_NONE, {}, _nested_linkgraph_legend_widgets) |
Implementation of linkgraph overlay GUI.
Definition in file linkgraph_gui.cpp.
| std::unique_ptr< NWidgetBase > MakeCargoesLegendLinkGraphGUI | ( | ) |
Definition at line 466 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 447 of file linkgraph_gui.cpp.
References MakeCompanyButtonRows().
| std::unique_ptr< NWidgetBase > MakeSaturationLegendLinkGraphGUI | ( | ) |
Definition at line 452 of file linkgraph_gui.cpp.
| void ShowLinkGraphLegend | ( | ) |
Open a link graph legend window.
Definition at line 542 of file linkgraph_gui.cpp.
Referenced by MenuClickMap().
|
staticconstexpr |
Definition at line 499 of file linkgraph_gui.cpp.