aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiMainMenu.h
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2022-06-05 16:47:38 +0100
committerGitHub <noreply@github.com>2022-06-05 17:47:38 +0200
commit03d86ea0b4900cd0394649597d278d465512d629 (patch)
treed2e5414acea951ea42400b5a87b5ee9a8296a3f3 /src/gui/guiMainMenu.h
parent21323ef1ff02dd714330a8c9d8235f047e1dacf8 (diff)
downloadminetest-03d86ea0b4900cd0394649597d278d465512d629.tar.gz
minetest-03d86ea0b4900cd0394649597d278d465512d629.tar.bz2
minetest-03d86ea0b4900cd0394649597d278d465512d629.zip
Add register dialog to separate login/register (#12185)
New users find Minetest's account system confusing. This change moves username/password to a new dialog, with login and register buttons added to the Join Game tab. The old registration confirmation dialog is removed in favour of the new dialog. Fixes #8138
Diffstat (limited to 'src/gui/guiMainMenu.h')
-rw-r--r--src/gui/guiMainMenu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/guiMainMenu.h b/src/gui/guiMainMenu.h
index 1dca8bf2d..9b8ff383c 100644
--- a/src/gui/guiMainMenu.h
+++ b/src/gui/guiMainMenu.h
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
#include "irrlichttypes_extrabloated.h"
+#include "gameparams.h"
#include <string>
#include <list>
@@ -50,5 +51,7 @@ struct MainMenuData {
// Data to be passed to the script
MainMenuDataForScript script_data;
+ ELoginRegister allow_login_or_register = ELoginRegister::Any;
+
MainMenuData() = default;
};