aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2021-03-30 21:49:15 +0200
committerGitHub <noreply@github.com>2021-03-30 21:49:15 +0200
commitf4118a4fdebe5c8a4a467afe5b3f49a0bd74c37a (patch)
treef6eb56306a23b3e2c3d31dae5c3c9522bfb15b44 /src/client
parentf345d00a436b88e6583896065aab237ff12a9d3d (diff)
downloadminetest-f4118a4fdebe5c8a4a467afe5b3f49a0bd74c37a.tar.gz
minetest-f4118a4fdebe5c8a4a467afe5b3f49a0bd74c37a.tar.bz2
minetest-f4118a4fdebe5c8a4a467afe5b3f49a0bd74c37a.zip
Consistent title bar + render information in mainmenu (#10764)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/game.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 31c782c51..334f1da67 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -1390,9 +1390,21 @@ bool Game::createClient(const GameStartData &start_data)
std::wstring str = utf8_to_wide(PROJECT_NAME_C);
str += L" ";
str += utf8_to_wide(g_version_hash);
+ {
+ const wchar_t *text = nullptr;
+ if (simple_singleplayer_mode)
+ text = wgettext("Singleplayer");
+ else
+ text = wgettext("Multiplayer");
+ str += L" [";
+ str += text;
+ str += L"]";
+ delete text;
+ }
str += L" [";
str += driver->getName();
str += L"]";
+
device->setWindowCaption(str.c_str());
LocalPlayer *player = client->getEnv().getLocalPlayer();