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

Function ShowTownViewWindow

src/town_gui.cpp:680–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678);
679
680void ShowTownViewWindow(TownID town)
681{
682 if (_game_mode == GM_EDITOR) {
683 AllocateWindowDescFront<TownViewWindow>(_town_editor_view_desc, town);
684 } else {
685 AllocateWindowDescFront<TownViewWindow>(_town_game_view_desc, town);
686 }
687}
688
689static constexpr std::initializer_list<NWidgetPart> _nested_town_directory_widgets = {
690 NWidget(NWID_HORIZONTAL),

Callers 1

CheckClickOnViewportSignFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected