From 362700e88566d75a12c17734a0ce933eea2577b0 Mon Sep 17 00:00:00 2001 From: Steve Cotton Date: Tue, 5 Nov 2019 05:55:21 +0100 Subject: [PATCH] Make "Quit" the only mandatory widget on the title screen Everything else is optional, so the UX can be changed simply by removing buttons and the tips widget from the title_screen.cfg file. --- src/gui/dialogs/title_screen.cpp | 88 +++++++++++++++++--------------- 1 file changed, 48 insertions(+), 40 deletions(-) diff --git a/src/gui/dialogs/title_screen.cpp b/src/gui/dialogs/title_screen.cpp index adeb7835a8da..05243c6c4441 100644 --- a/src/gui/dialogs/title_screen.cpp +++ b/src/gui/dialogs/title_screen.cpp @@ -75,37 +75,34 @@ namespace dialogs * This shows the title screen. * * @begin{table}{dialog_widgets} - * tutorial & & button & m & + * tutorial & & button & o & * The button to start the tutorial. $ * - * campaign & & button & m & + * campaign & & button & o & * The button to start a campaign. $ * - * multiplayer & & button & m & + * multiplayer & & button & o & * The button to start multiplayer mode. $ * - * load & & button & m & + * load & & button & o & * The button to load a saved game. $ * - * editor & & button & m & + * editor & & button & o & * The button to start the editor. $ * - * addons & & button & m & + * addons & & button & o & * The button to start managing the addons. $ * - * cores & & button & m & - * The button to start managing the cores. $ - * - * language & & button & m & + * language & & button & o & * The button to select the game language. $ * - * credits & & button & m & + * credits & & button & o & * The button to show Wesnoth's contributors. $ * * quit & & button & m & * The button to quit Wesnoth. $ * - * tips & & multi_page & m & + * tips & & multi_page & o & * A multi_page to hold all tips, when this widget is used the area of * the tips doesn't need to be resized when the next or previous button * is pressed. $ @@ -117,10 +114,10 @@ namespace dialogs * The source (the one who's quoted or the book referenced) of the * current tip. $ * - * next_tip & & button & m & + * next_tip & & button & o & * The button show the next tip of the day. $ * - * previous_tip & & button & m & + * previous_tip & & button & o & * The button show the previous tip of the day. $ * * logo & & image & o & @@ -159,7 +156,11 @@ static void register_button(window& win, const std::string& id, hotkey::HOTKEY_C win.register_hotkey(hk, std::bind(callback)); } - connect_signal_mouse_left_click(find_widget