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

Function ToolbarSaveClick

src/toolbar_gui.cpp:371–376  ·  view source on GitHub ↗

* Handle click on Save button in toolbar in normal game mode. * * @param w parent window the shown save dialogue is attached to. * @return #CBF_NONE */

Source from the content-addressed store, hash-verified

369 * @return #CBF_NONE
370 */
371static CallBackFunction ToolbarSaveClick(Window *w)
372{
373 PopupMainToolbarMenu(w, WID_TN_SAVE, {STR_FILE_MENU_SAVE_GAME, STR_FILE_MENU_LOAD_GAME, STR_FILE_MENU_QUIT_GAME,
374 STR_NULL, STR_FILE_MENU_EXIT});
375 return CBF_NONE;
376}
377
378/**
379 * Handle click on SaveLoad button in toolbar in the scenario editor.

Callers

nothing calls this directly

Calls 1

PopupMainToolbarMenuFunction · 0.85

Tested by

no test coverage detected