Mana
|
A tab for a party chat channel. More...
#include <partytab.h>
Public Member Functions | |
PartyTab () | |
void | showHelp () override |
Add any extra help text to the output. | |
bool | handleCommand (const std::string &type, const std::string &args) override |
Handle special commands. | |
void | saveToLogFile (std::string &msg) override |
![]() | |
ChatTab (const std::string &name) | |
~ChatTab () override | |
void | chatLog (std::string line, Own own=BY_SERVER, bool ignoreRecord=false) |
Adds a line of text to our message list. | |
void | chatLog (const std::string &nick, const std::string &msg) |
Adds the text to the message list. | |
void | chatInput (const std::string &msg) |
Determines whether the message is a command or message, then sends the given message to the game server to be said, or to the command handler. | |
void | scroll (int amount) |
Scrolls the chat window. | |
void | clearText () |
Clears the text from the tab. | |
void | event (Event::Channel channel, const Event &event) override |
![]() | |
Tab () | |
void | setCaption (const std::string &caption) |
Sets the caption of the tab. | |
void | draw (gcn::Graphics *graphics) override |
Draw the tab. | |
void | drawFrame (gcn::Graphics *graphics) override |
Draw the tab frame. | |
void | setTabColor (const gcn::Color *color) |
Set the normal color fo the tab's text. | |
void | setFlash (bool flash) |
Set tab flashing state. | |
![]() | |
virtual | ~AutoCompleteLister ()=default |
![]() | |
virtual | ~EventListener () |
void | listen (Event::Channel channel) |
void | ignore (Event::Channel channel) |
Protected Member Functions | |
void | handleInput (const std::string &msg) override |
void | getAutoCompleteList (std::vector< std::string > &) const override |
![]() | |
void | setCurrent () override |
virtual void | handleCommand (const std::string &msg) |
virtual bool | checkNotify (Own own) const |
Returns whether a notify sound may be played for the given type of message. | |
void | updateTextFormat (int alpha) |
Adapts the text format to the current gui opacity, for better readability. | |
Additional Inherited Members | |
![]() | |
ScrollArea * | mScrollArea |
BrowserBox * | mTextOutput |
A tab for a party chat channel.
Definition at line 31 of file partytab.h.
PartyTab::PartyTab | ( | ) |
Definition at line 38 of file partytab.cpp.
|
overrideprotectedvirtual |
Reimplemented from ChatTab.
Definition at line 193 of file partytab.cpp.
|
overridevirtual |
Handle special commands.
Allows a tab to handle commands it defines itself.
Reimplemented from ChatTab.
Definition at line 59 of file partytab.cpp.
|
overrideprotectedvirtual |
Reimplemented from ChatTab.
Definition at line 44 of file partytab.cpp.
|
overridevirtual |
Reimplemented from ChatTab.
Definition at line 199 of file partytab.cpp.
|
overridevirtual |
Add any extra help text to the output.
Allows tabs to define help for commands defined by the tab itself.
Reimplemented from ChatTab.
Definition at line 49 of file partytab.cpp.