diff options
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r-- | src/gui/windowmenu.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 2e1474bd1..64a70ea58 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -1,11 +1,11 @@ /* - * The ManaPlus Client + * The ManaVerse Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers * Copyright (C) 2011-2020 The ManaPlus Developers - * Copyright (C) 2020-2023 The ManaVerse Developers + * Copyright (C) 2020-2025 The ManaVerse Developers * - * This file is part of The ManaPlus Client. + * This file is part of The ManaVerse Client. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,6 +43,7 @@ #include "utils/dtor.h" #include "utils/foreach.h" #include "utils/gettext.h" +#include "utils/performance.h" #include "resources/imageset.h" @@ -149,7 +150,7 @@ WindowMenu::WindowMenu(const Widget2 *const widget) : 11, // TRANSLATORS: long button name for cart window. _("Cart"), x, h, InputAction::WINDOW_CART, - Visible_true); + Visible_false); // TRANSLATORS: short button name for map window. addButton(N_("MAP"), 19, @@ -232,7 +233,7 @@ WindowMenu::WindowMenu(const Widget2 *const widget) : 4, // TRANSLATORS: long button name for clan window. _("Clan"), x, h, InputAction::WINDOW_CLAN, - Visible_true); + Visible_false); // TRANSLATORS: short button name for server info window. addButton(N_("SI"), 8, @@ -489,6 +490,8 @@ void WindowMenu::updateButtons() void WindowMenu::loadButtons() { + // windowmenu<N> -> <button text> config keys tell which buttons are + // hidden. This overrides default visibility set in constructor. if (!mSmallWindow) { if (config.getValue("windowmenu0", "").empty()) |