33 #include "table/strings.h"
54 if (!gui_scope)
return;
87 textdim.width -= textdim.width / 2;
88 *size =
maxdim(*size, textdim);
90 size->height = height + padding.height;
123 ShowNetworkGameWindow();
149 static const NWidgetPart _nested_select_game_widgets[] = {
188 SetDataTip(SPR_SELECT_TEMPERATE, STR_INTRO_TOOLTIP_TEMPERATE),
191 SetDataTip(SPR_SELECT_SUB_ARCTIC, STR_INTRO_TOOLTIP_SUB_ARCTIC_LANDSCAPE),
194 SetDataTip(SPR_SELECT_SUB_TROPICAL, STR_INTRO_TOOLTIP_SUB_TROPICAL_LANDSCAPE),
197 SetDataTip(SPR_SELECT_TOYLAND, STR_INTRO_TOOLTIP_TOYLAND_LANDSCAPE),
204 NWidget(
WWT_EMPTY, COLOUR_ORANGE,
WID_SGI_TRANSLATION),
SetMinimalSize(316, 12),
SetFill(1, 0),
SetPadding(0, 10, 7, 10),
242 SetDataTip(STR_INTRO_QUIT, STR_INTRO_TOOLTIP_QUIT),
255 _nested_select_game_widgets,
lengthof(_nested_select_game_widgets)
258 void ShowSelectGameWindow()
263 static void AskExitGameCallback(
Window *w,
bool confirmed)
265 if (confirmed) _exit_game =
true;
272 #elif defined(__APPLE__)
274 #elif defined(__BEOS__)
276 #elif defined(__HAIKU__)
278 #elif defined(__MORPHOS__)
280 #elif defined(__AMIGA__)
282 #elif defined(__OS2__)
293 STR_QUIT_ARE_YOU_SURE_YOU_WANT_TO_EXIT_OPENTTD,
300 static void AskExitToGameMenuCallback(
Window *w,
bool confirmed)
308 void AskExitToGameMenu()
311 STR_ABANDON_GAME_CAPTION,
312 (_game_mode != GM_EDITOR) ? STR_ABANDON_GAME_QUERY : STR_ABANDON_SCENARIO_QUERY,
314 AskExitToGameMenuCallback