summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-19 00:30:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-19 00:30:24 +0300
commite63b10c3a63d93b9a6dfa144624fea8610d7768c (patch)
tree2c537174bb2134ea7b58cbaa6f648c2acd7a8006 /src/gui
parente73c5ecc896c14fa43b19e42e5b24c79766cdb44 (diff)
downloadManaVerse-e63b10c3a63d93b9a6dfa144624fea8610d7768c.tar.gz
ManaVerse-e63b10c3a63d93b9a6dfa144624fea8610d7768c.tar.bz2
ManaVerse-e63b10c3a63d93b9a6dfa144624fea8610d7768c.tar.xz
ManaVerse-e63b10c3a63d93b9a6dfa144624fea8610d7768c.zip
Add support for GM tab.
This tab visible all messages from @wgm chat command and local messages in this tab.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/theme.cpp6
-rw-r--r--src/gui/theme.h6
-rw-r--r--src/gui/widgets/chattab.h3
3 files changed, 14 insertions, 1 deletions
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
};
/**