From e63b10c3a63d93b9a6dfa144624fea8610d7768c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 19 Feb 2013 00:30:24 +0300 Subject: Add support for GM tab. This tab visible all messages from @wgm chat command and local messages in this tab. --- src/localplayer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 99ef5a242..43c15428a 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -51,6 +51,7 @@ #include "gui/socialwindow.h" #include "gui/viewport.h" +#include "gui/widgets/gmtab.h" #include "gui/widgets/whispertab.h" #include "net/beinghandler.h" @@ -392,11 +393,14 @@ void LocalPlayer::setGMLevel(const int level) { setGM(true); if (chatWindow) + { chatWindow->loadGMCommands(); + if (!gmChatTab) + gmChatTab = new GmTab(chatWindow); + } } } - Position LocalPlayer::getNextWalkPosition(const unsigned char dir) const { // Compute where the next tile will be set. -- cgit v1.2.3-60-g2f50