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/gui/theme.cpp | 6 ++++++ src/gui/theme.h | 6 ++++++ src/gui/widgets/chattab.h | 3 ++- 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index acd188031..202bfed20 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -757,6 +757,8 @@ static int readColorType(const std::string &type) "GUILD_CHAT_TAB_OUTLINE", "GUILD_SOCIAL_TAB", "GUILD_SOCIAL_TAB_OUTLINE", + "GM_CHAT_TAB", + "GM_CHAT_TAB_OUTLINE", "PARTY_CHAT_TAB_HIGHLIGHTED", "PARTY_CHAT_TAB_HIGHLIGHTED_OUTLINE", "PARTY_SOCIAL_TAB_HIGHLIGHTED", @@ -765,6 +767,8 @@ static int readColorType(const std::string &type) "GUILD_CHAT_TAB_HIGHLIGHTED_OUTLINE", "GUILD_SOCIAL_TAB_HIGHLIGHTED", "GUILD_SOCIAL_TAB_HIGHLIGHTED_OUTLINE", + "GM_CHAT_TAB_HIGHLIGHTED", + "GM_CHAT_TAB_HIGHLIGHTED_OUTLINE", "PARTY_CHAT_TAB_SELECTED", "PARTY_CHAT_TAB_SELECTED_OUTLINE", "PARTY_SOCIAL_TAB_SELECTED", @@ -773,6 +777,8 @@ static int readColorType(const std::string &type) "GUILD_CHAT_TAB_SELECTED_OUTLINE", "GUILD_SOCIAL_TAB_SELECTED", "GUILD_SOCIAL_TAB_SELECTED_OUTLINE", + "GM_CHAT_TAB_SELECTED", + "GM_CHAT_TAB_SELECTED_OUTLINE", "BACKGROUND", "BACKGROUND_GRAY", "SCROLLBAR_GRAY", diff --git a/src/gui/theme.h b/src/gui/theme.h index 213799788..223716057 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -228,6 +228,8 @@ class Theme final : public Palette, public ConfigListener GUILD_CHAT_TAB_OUTLINE, GUILD_SOCIAL_TAB, GUILD_SOCIAL_TAB_OUTLINE, + GM_CHAT_TAB, + GM_CHAT_TAB_OUTLINE, PARTY_CHAT_TAB_HIGHLIGHTED, PARTY_CHAT_TAB_HIGHLIGHTED_OUTLINE, PARTY_SOCIAL_TAB_HIGHLIGHTED, @@ -236,6 +238,8 @@ class Theme final : public Palette, public ConfigListener GUILD_CHAT_TAB_HIGHLIGHTED_OUTLINE, GUILD_SOCIAL_TAB_HIGHLIGHTED, GUILD_SOCIAL_TAB_HIGHLIGHTED_OUTLINE, + GM_CHAT_TAB_HIGHLIGHTED, + GM_CHAT_TAB_HIGHLIGHTED_OUTLINE, PARTY_CHAT_TAB_SELECTED, PARTY_CHAT_TAB_SELECTED_OUTLINE, PARTY_SOCIAL_TAB_SELECTED, @@ -244,6 +248,8 @@ class Theme final : public Palette, public ConfigListener GUILD_CHAT_TAB_SELECTED_OUTLINE, GUILD_SOCIAL_TAB_SELECTED, GUILD_SOCIAL_TAB_SELECTED_OUTLINE, + GM_CHAT_TAB_SELECTED, + GM_CHAT_TAB_SELECTED_OUTLINE, BACKGROUND, BACKGROUND_GRAY, SCROLLBAR_GRAY, diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h index 0b3469458..24afffc0f 100644 --- a/src/gui/widgets/chattab.h +++ b/src/gui/widgets/chattab.h @@ -47,7 +47,8 @@ class ChatTab : public Tab TAB_GUILD, TAB_DEBUG, TAB_TRADE, - TAB_BATTLE + TAB_BATTLE, + TAB_GM }; /** -- cgit v1.2.3-70-g09d2