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

Function ShowScriptTextfileWindow

src/script/script_gui.cpp:631–635  ·  view source on GitHub ↗

* Open the Script version of the textfile window. * @param file_type The type of textfile to display. * @param slot The slot the Script is using. */

Source from the content-addressed store, hash-verified

629 * @param slot The slot the Script is using.
630 */
631void ShowScriptTextfileWindow(Window *parent, TextfileType file_type, CompanyID slot)
632{
633 parent->CloseChildWindowById(WC_TEXTFILE, file_type);
634 new ScriptTextfileWindow(parent, file_type, slot);
635}
636
637
638/**

Callers 2

OnClickMethod · 0.85
OnClickMethod · 0.85

Calls 1

CloseChildWindowByIdMethod · 0.80

Tested by

no test coverage detected