Merge pull request #12826 from TotalCaesar659/menu-enable-chat

Add "Enable chat" menu point to Linux version
This commit is contained in:
Unknown W. Brackets authored and GitHub committed 2020-04-15 21:56:17 -04:00
commit 6dcb075ab7
2 files changed
+5

No files matched your search

+2
View File
@@ -657,6 +657,8 @@ void MainWindow::createMenus()
gameSettingsMenu->addSeparator();
gameSettingsMenu->add(new MenuAction(this, SLOT(cheatsAct()), QT_TR_NOOP("Enable &cheats"), Qt::CTRL + Qt::Key_T))
->addEventChecked(&g_Config.bEnableCheats);
gameSettingsMenu->addSeparator();
gameSettingsMenu->add(new MenuAction(this, SLOT(chatAct()), QT_TR_NOOP("Enable chat"), Qt::CTRL + Qt::Key_C));
// Help
MenuTree* helpMenu = new MenuTree(this, menuBar(), QT_TR_NOOP("&Help"));
+3
View File
@@ -173,6 +173,9 @@ private slots:
// Cheats
void cheatsAct() { g_Config.bEnableCheats = !g_Config.bEnableCheats; }
// Chat
void chatAct() { NativeMessageReceived("chat screen", ""); }
void fullscrAct();
void raiseTopMost();
void statsAct() {