* 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
| 212 | * @param callback the callback to call once a date has been selected |
| 213 | */ |
| 214 | void 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 | } |
no test coverage detected