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

Method BaseSetTextfileWindow

src/settings_gui.cpp:104–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 const StringID content_type; ///< STR_CONTENT_TYPE_xxx for title.
103
104 BaseSetTextfileWindow(Window *parent, TextfileType file_type, const std::string &name, const std::string &textfile, StringID content_type) : TextfileWindow(parent, file_type), name(name), content_type(content_type)
105 {
106 this->ConstructWindow();
107 this->LoadTextfile(textfile, BASESET_DIR);
108 }
109
110 std::string GetWidgetString(WidgetID widget, StringID stringid) const override
111 {

Callers

nothing calls this directly

Calls 2

LoadTextfileMethod · 0.80
ConstructWindowMethod · 0.45

Tested by

no test coverage detected