MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SmallMapDisplay

Function SmallMapDisplay

src/smallmap_gui.cpp:2014–2021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2012};
2013
2014static std::unique_ptr<NWidgetBase> SmallMapDisplay()
2015{
2016 std::unique_ptr<NWidgetBase> map_display = std::make_unique<NWidgetSmallmapDisplay>();
2017
2018 map_display = MakeNWidgets(_nested_smallmap_display, std::move(map_display));
2019 map_display = MakeNWidgets(_nested_smallmap_bar, std::move(map_display));
2020 return map_display;
2021}
2022
2023static constexpr std::initializer_list<NWidgetPart> _nested_smallmap_widgets = {
2024 NWidget(NWID_HORIZONTAL),

Callers

nothing calls this directly

Calls 1

MakeNWidgetsFunction · 0.85

Tested by

no test coverage detected