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

Function ShowSavePresetWindow

src/newgrf_gui.cpp:2121–2125  ·  view source on GitHub ↗

* Open the window for saving a preset. * @param initial_text Initial text to display in the edit box, or \c nullptr. */

Source from the content-addressed store, hash-verified

2119 * @param initial_text Initial text to display in the edit box, or \c nullptr.
2120 */
2121static void ShowSavePresetWindow(std::string_view initial_text)
2122{
2123 CloseWindowByClass(WC_SAVE_PRESET);
2124 new SavePresetWindow(initial_text);
2125}
2126
2127/** Widgets for the progress window. */
2128static constexpr std::initializer_list<NWidgetPart> _nested_scan_progress_widgets = {

Callers 1

OnClickMethod · 0.85

Calls 1

CloseWindowByClassFunction · 0.85

Tested by

no test coverage detected