Fix: Don't allow right-click to close world generation progress window. (#13084)
[openttd-github.git] / src / date_gui.h
blob4733f50600895a480cbc20cdd9cb387da021e846
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
8 /** @file date_gui.h Functions related to the graphical selection of a date. */
10 #ifndef DATE_GUI_H
11 #define DATE_GUI_H
13 #include "timer/timer_game_calendar.h"
14 #include "window_type.h"
16 /**
17 * Callback for when a date has been chosen
18 * @param w the window that sends the callback
19 * @param date the date that has been chosen
21 typedef void SetDateCallback(const Window *w, TimerGameEconomy::Date date, void *data);
23 void ShowSetDateWindow(Window *parent, int window_number, TimerGameEconomy::Date initial_date, TimerGameEconomy::Year min_year, TimerGameEconomy::Year max_year, SetDateCallback *callback, void *callback_data);
25 #endif /* DATE_GUI_H */