From ebef08c3d8b631d049dbe6ad7a63fd5778aa992d Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 26 Dec 2016 10:53:14 +0800 Subject: [PATCH] Try to combine all text field dialogs --- data/gui/enter_gp_name_dialog.stkgui | 20 --- ...tkgui => general_text_field_dialog.stkgui} | 4 +- sources.cmake | 2 +- .../dialogs/enter_gp_name_dialog.cpp | 147 ------------------ .../dialogs/enter_gp_name_dialog.hpp | 70 --------- .../dialogs/general_debug_dialog.cpp | 81 ---------- .../dialogs/general_text_field_dialog.cpp | 119 ++++++++++++++ ...alog.hpp => general_text_field_dialog.hpp} | 41 +++-- src/states_screens/grand_prix_cutscene.cpp | 10 +- src/states_screens/grand_prix_cutscene.hpp | 7 +- .../grand_prix_editor_screen.cpp | 46 +++++- .../grand_prix_editor_screen.hpp | 9 +- src/utils/debug.cpp | 17 +- 13 files changed, 215 insertions(+), 358 deletions(-) delete mode 100644 data/gui/enter_gp_name_dialog.stkgui rename data/gui/{general_debug_dialog.stkgui => general_text_field_dialog.stkgui} (64%) delete mode 100644 src/states_screens/dialogs/enter_gp_name_dialog.cpp delete mode 100644 src/states_screens/dialogs/enter_gp_name_dialog.hpp delete mode 100644 src/states_screens/dialogs/general_debug_dialog.cpp create mode 100644 src/states_screens/dialogs/general_text_field_dialog.cpp rename src/states_screens/dialogs/{general_debug_dialog.hpp => general_text_field_dialog.hpp} (54%) diff --git a/data/gui/enter_gp_name_dialog.stkgui b/data/gui/enter_gp_name_dialog.stkgui deleted file mode 100644 index 9ba553c30..000000000 --- a/data/gui/enter_gp_name_dialog.stkgui +++ /dev/null @@ -1,20 +0,0 @@ - - -
- -
-
diff --git a/data/gui/general_debug_dialog.stkgui b/data/gui/general_text_field_dialog.stkgui similarity index 64% rename from data/gui/general_debug_dialog.stkgui rename to data/gui/general_text_field_dialog.stkgui index 514fce91f..d910cc997 100644 --- a/data/gui/general_debug_dialog.stkgui +++ b/data/gui/general_text_field_dialog.stkgui @@ -7,9 +7,9 @@ -