diff options
Diffstat (limited to 'src/client/gameui.cpp')
-rw-r--r-- | src/client/gameui.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/gameui.cpp b/src/client/gameui.cpp index a20c2c40d..d34f7343c 100644 --- a/src/client/gameui.cpp +++ b/src/client/gameui.cpp @@ -275,6 +275,15 @@ void GameUI::toggleChat() showTranslatedStatusText("Chat hidden"); } +void GameUI::toggleCheatMenu() +{ + m_flags.show_cheat_menu = !m_flags.show_cheat_menu; + if (m_flags.show_cheat_menu) + showTranslatedStatusText("Cheat Menu shown"); + else + showTranslatedStatusText("Cheat Menu hidden"); +} + void GameUI::toggleHud() { m_flags.show_hud = !m_flags.show_hud; |