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

Function ShowNewGRFTextfileWindow

src/newgrf_gui.cpp:570–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568};
569
570void ShowNewGRFTextfileWindow(Window *parent, TextfileType file_type, const GRFConfig *c)
571{
572 parent->CloseChildWindowById(WC_TEXTFILE, file_type);
573 new NewGRFTextfileWindow(parent, file_type, c);
574}
575
576typedef std::map<uint32_t, const GRFConfig *> GrfIdMap; ///< Map of grfid to the grf config.
577

Callers 1

OnClickMethod · 0.85

Calls 1

CloseChildWindowByIdMethod · 0.80

Tested by

no test coverage detected