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

Function ShowRenameSignWindow

src/signs_gui.cpp:589–595  ·  view source on GitHub ↗

* Show the window to change the text of a sign. * @param si The sign to show the window for. */

Source from the content-addressed store, hash-verified

587 * @param si The sign to show the window for.
588 */
589void ShowRenameSignWindow(const Sign *si)
590{
591 /* Delete all other edit windows */
592 CloseWindowByClass(WC_QUERY_STRING);
593
594 new SignWindow(_query_sign_edit_desc, si);
595}
596
597/**
598 * Close the sign window associated with the given sign.

Callers 2

HandleClickOnSignFunction · 0.85
CcPlaceSignFunction · 0.85

Calls 1

CloseWindowByClassFunction · 0.85

Tested by

no test coverage detected