diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-05-09 18:21:14 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-06-29 15:48:52 -0600 |
commit | f1cab9c5ab1d36586ae1e0d1dae3f3d1483522b5 (patch) | |
tree | a0146a49c90bd15bb65e8bbae94883b189037a40 /src/gui/chat.h | |
parent | a2bb244ea72fefdb60d8ef5b037dfbc5b6ac842d (diff) | |
download | mana-f1cab9c5ab1d36586ae1e0d1dae3f3d1483522b5.tar.gz mana-f1cab9c5ab1d36586ae1e0d1dae3f3d1483522b5.tar.bz2 mana-f1cab9c5ab1d36586ae1e0d1dae3f3d1483522b5.tar.xz mana-f1cab9c5ab1d36586ae1e0d1dae3f3d1483522b5.zip |
Make whisper responses from tmwAthena show up in correct tabs
Reviewed-by: Bertram
Diffstat (limited to 'src/gui/chat.h')
-rw-r--r-- | src/gui/chat.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/gui/chat.h b/src/gui/chat.h index 3de2b146..aeba2ece 100644 --- a/src/gui/chat.h +++ b/src/gui/chat.h @@ -35,8 +35,8 @@ #include <vector> class BrowserBox; -class Channel; class ChatTab; +class Channel; class ChatInput; class Recorder; class ScrollArea; @@ -47,12 +47,24 @@ class WhisperTab; #define DEFAULT_CHAT_WINDOW_SCROLL 7 // 1 means `1/8th of the window size'. +enum Own +{ + BY_GM, + BY_PLAYER, + BY_OTHER, + BY_SERVER, + BY_CHANNEL, + ACT_WHISPER, // getting whispered at + ACT_IS, // equivalent to "/me" on IRC + BY_LOGGER +}; + /** One item in the chat log */ struct CHATLOG { std::string nick; std::string text; - int own; + Own own; }; /** @@ -170,7 +182,7 @@ class ChatWindow : public Window, void doPresent(); void whisper(const std::string &nick, const std::string &mes, - bool own = false); + Own own = BY_OTHER); ChatTab *addWhisperTab(const std::string &nick, bool switchTo = false); |