diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-23 00:05:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-23 00:06:56 +0300 |
commit | 8170458137757fa8981498572ae3e88ebf5992a5 (patch) | |
tree | 83501db63d8e1dee67285ab86e0dc5ba7e4d5e28 /src/gui/theme.cpp | |
parent | 4d5746331c6e4beee730e4b67df26e65bbc1001e (diff) | |
download | ManaVerse-8170458137757fa8981498572ae3e88ebf5992a5.tar.gz ManaVerse-8170458137757fa8981498572ae3e88ebf5992a5.tar.bz2 ManaVerse-8170458137757fa8981498572ae3e88ebf5992a5.tar.xz ManaVerse-8170458137757fa8981498572ae3e88ebf5992a5.zip |
Show self nick in online list with special color.
New theme colors:
SELFNICK - color for own player nick in online list.
SELFNICK_OUTLINE - outline color for self nick.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r-- | src/gui/theme.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 4ff1f8ea4..3e7775b63 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -195,6 +195,7 @@ Theme::Theme(): mColors[SERVER].ch = 'S'; mColors[LOGGER].ch = 'L'; mColors[HYPERLINK].ch = '<'; + mColors[SELFNICK].ch = 's'; mCharColors['H'] = HIGHLIGHT; mCharColors['C'] = CHAT; mCharColors['G'] = GM; @@ -207,6 +208,7 @@ Theme::Theme(): mCharColors['S'] = SERVER; mCharColors['L'] = LOGGER; mCharColors['<'] = HYPERLINK; + mCharColors['s'] = SELFNICK; // here need use outlined colors mCharColors['H' | 0x80] = HIGHLIGHT_OUTLINE; @@ -221,6 +223,7 @@ Theme::Theme(): mCharColors['S' | 0x80] = SERVER_OUTLINE; mCharColors['L' | 0x80] = LOGGER_OUTLINE; mCharColors['<' | 0x80] = HYPERLINK_OUTLINE; + mCharColors['s' | 0x80] = SELFNICK_OUTLINE; } Theme::~Theme() @@ -724,6 +727,8 @@ static int readColorType(const std::string &type) { "BROWSERBOX", "BROWSERBOX_OUTLINE", + "SELFNICK", + "SELFNICK_OUTLINE", "TEXT", "CARET", "SHADOW", |