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

Function ShowSetDateWindow

src/date_gui.cpp:214–218  ·  view source on GitHub ↗

* Create the new 'set date' window * @param window_number number for the window * @param parent the parent window, i.e. if this closes we should close too * @param initial_date the initial date to show * @param min_year the minimum year to show in the year dropdown * @param max_year the maximum year (inclusive) to show in the year dropdown * @param callback the callback to call once a date h

Source from the content-addressed store, hash-verified

212 * @param callback the callback to call once a date has been selected
213 */
214void ShowSetDateWindow(Window *parent, int window_number, TimerGameEconomy::Date initial_date, TimerGameEconomy::Year min_year, TimerGameEconomy::Year max_year, SetDateCallback &&callback)
215{
216 CloseWindowByClass(WC_SET_DATE);
217 new SetDateWindow(_set_date_desc, window_number, parent, initial_date, min_year, max_year, std::move(callback));
218}

Callers 1

OnClickMethod · 0.85

Calls 1

CloseWindowByClassFunction · 0.85

Tested by

no test coverage detected