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

Function ShowBaseSetTextfileWindow

src/settings_gui.cpp:127–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 */
126template <class TBaseSet>
127void ShowBaseSetTextfileWindow(Window *parent, TextfileType file_type, const TBaseSet *baseset, StringID content_type)
128{
129 parent->CloseChildWindowById(WC_TEXTFILE, file_type);
130 new BaseSetTextfileWindow(parent, file_type, baseset->name, *baseset->GetTextfile(file_type), content_type);
131}
132
133/**
134 * Get string to use when listing this set in the settings window.

Callers 1

OnClickMethod · 0.85

Calls 2

CloseChildWindowByIdMethod · 0.80
GetTextfileMethod · 0.45

Tested by

no test coverage detected