#include <GLWTalkBox.h>

Public Types | |
| enum | TalkMode { eSay, eTeamSay } |
Public Member Functions | |
| GLWTalkBox () | |
| virtual | ~GLWTalkBox () |
| virtual void | draw () |
| virtual void | simulate (float frameTime) |
| virtual void | keyDown (char *buffer, unsigned int keyState, KeyboardHistory::HistoryElement *history, int hisCount, bool &skipRest) |
| virtual void | display () |
| virtual bool | initFromXML (XMLNode *node) |
| REGISTER_CLASS_HEADER (GLWTalkBox) | |
Protected Attributes | |
| LangString | text_ |
| float | ctime_ |
| bool | cursor_ |
| int | maxTextLen_ |
| bool | parentSized_ |
| TalkMode | mode_ |
| TalkMode | defaultMode_ |
Definition at line 27 of file GLWTalkBox.h.
| enum GLWTalkBox::TalkMode |
| GLWTalkBox::GLWTalkBox | ( | ) |
Definition at line 33 of file GLWTalkBox.cpp.
| GLWTalkBox::~GLWTalkBox | ( | ) | [virtual] |
Definition at line 39 of file GLWTalkBox.cpp.
| void GLWTalkBox::draw | ( | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 53 of file GLWTalkBox.cpp.
References GLState::BLEND_ON, cursor_, GLWidget::draw(), GLWidget::drawRoundBox(), GLFont2d::drawWidthRhs(), eSay, S3D::formatStringBuffer(), GLWFont::getGameFont(), GLWidget::getH(), GLWidget::getW(), GL_LINE_LOOP, GL_TRIANGLE_FAN, glBegin(), glColor3f(), glColor4f(), glEnd(), glVertex2f(), GLWidget::h_, GLWFont::instance(), mode_, GLWidget::parent_, parentSized_, text_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
| void GLWTalkBox::simulate | ( | float | frameTime | ) | [virtual] |
| void GLWTalkBox::keyDown | ( | char * | buffer, | |
| unsigned int | keyState, | |||
| KeyboardHistory::HistoryElement * | history, | |||
| int | hisCount, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 88 of file GLWTalkBox.cpp.
References eSay, eTeamSay, GLWidget::getId(), GLWWindowManager::hideWindow(), ClientChannelManager::instance(), GLWWindowManager::instance(), int(), LANG_STRING, maxTextLen_, mode_, GLWidget::parent_, KeyboardHistory::HistoryElement::representedUnicode, KeyboardHistory::HistoryElement::sdlKey, ClientChannelManager::sendText(), and text_.
| void GLWTalkBox::display | ( | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 154 of file GLWTalkBox.cpp.
References defaultMode_, mode_, and text_.
| bool GLWTalkBox::initFromXML | ( | XMLNode * | node | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 160 of file GLWTalkBox.cpp.
References defaultMode_, eSay, eTeamSay, XMLNode::getNamedChild(), GLWidget::initFromXML(), parentSized_, and LangStringUtil::strcmp().
| GLWTalkBox::REGISTER_CLASS_HEADER | ( | GLWTalkBox | ) |
LangString GLWTalkBox::text_ [protected] |
float GLWTalkBox::ctime_ [protected] |
bool GLWTalkBox::cursor_ [protected] |
int GLWTalkBox::maxTextLen_ [protected] |
bool GLWTalkBox::parentSized_ [protected] |
TalkMode GLWTalkBox::mode_ [protected] |
TalkMode GLWTalkBox::defaultMode_ [protected] |
1.5.3