#include <RulesDialog.h>

Public Member Functions | |
| virtual void | hide () |
| virtual void | display () |
| virtual void | buttonDown (unsigned int id) |
| virtual void | draw () |
| void | addIcon (GLTexture *texture) |
Static Public Member Functions | |
| static RulesDialog * | instance () |
Protected Member Functions | |
| void | drawRules () |
| void | addMOTD (const char *text) |
Protected Attributes | |
| GLWListView * | motdList_ |
| GLWListView * | rulesList_ |
| GLWIcon * | icon_ |
| GLWTab * | rulesTab_ |
| GLWTab * | motdTab_ |
| unsigned int | okId_ |
Static Protected Attributes | |
| static RulesDialog * | instance_ = 0 |
Private Member Functions | |
| RulesDialog () | |
| virtual | ~RulesDialog () |
Definition at line 30 of file RulesDialog.h.
| RulesDialog::RulesDialog | ( | ) | [private] |
Definition at line 45 of file RulesDialog.cpp.
References GLWPanel::addWidget(), GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, GLWidget::getId(), icon_, LANG_RESOURCE, motdList_, motdTab_, GLWWindow::needCentered_, okId_, rulesList_, and rulesTab_.
Referenced by instance().
| RulesDialog::~RulesDialog | ( | ) | [private, virtual] |
Definition at line 66 of file RulesDialog.cpp.
| RulesDialog * RulesDialog::instance | ( | ) | [static] |
Definition at line 36 of file RulesDialog.cpp.
References instance_, and RulesDialog().
Referenced by ClientWindowSetup::addCommonComponents(), ClientConnectionAcceptHandler::processMessage(), and ClientWindowSetup::setupGameWindows().
| void RulesDialog::hide | ( | ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 221 of file RulesDialog.cpp.
References GLWidget::getId(), GLWPanel::hide(), PlayerDialog::instance(), GLWWindowManager::instance(), and GLWWindowManager::showWindow().
| void RulesDialog::display | ( | ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 214 of file RulesDialog.cpp.
References addMOTD(), GLWPanel::display(), and ScorchedClient::instance().
| void RulesDialog::buttonDown | ( | unsigned int | id | ) | [virtual] |
Implements GLWButtonI.
Definition at line 206 of file RulesDialog.cpp.
References GLWWindowManager::hideWindow(), GLWidget::id_, GLWWindowManager::instance(), and okId_.
| void RulesDialog::draw | ( | ) | [virtual] |
Reimplemented from GLWWindow.
Definition at line 131 of file RulesDialog.cpp.
References GLWWindow::draw(), drawRules(), GLWTab::getDepressed(), and rulesTab_.
| void RulesDialog::addIcon | ( | GLTexture * | texture | ) |
Definition at line 70 of file RulesDialog.cpp.
References GLWIcon::getTexture(), icon_, and GLWIcon::setTexture().
Referenced by ClientConnectionAcceptHandler::processMessage().
| void RulesDialog::drawRules | ( | ) | [protected] |
Definition at line 141 of file RulesDialog.cpp.
References GLState::DEPTH_OFF, GLFont2d::draw(), S3D::formatStringBuffer(), GLWFont::getGameFont(), ScorchedContext::getOptionsGame(), ScorchedContext::getOptionsTransient(), GLWidget::h_, GLWFont::instance(), ScorchedClient::instance(), LANG_RESOURCE_VAR, LANG_RESOURCE_VAR_1, left, GLState::TEXTURE_OFF, GLWidget::x_, and GLWidget::y_.
Referenced by draw().
| void RulesDialog::addMOTD | ( | const char * | text | ) | [protected] |
Definition at line 76 of file RulesDialog.cpp.
References GLWListView::addLine(), GLWListView::clear(), S3D::formatStringBuffer(), OptionsScorched::getLevelOptions(), OptionsScorched::getMainOptions(), OptionEntry::getName(), OptionsGame::getOptions(), ScorchedContext::getOptionsGame(), OptionEntry::getValueAsString(), ScorchedClient::instance(), OptionEntry::isChangedValue(), OptionEntry::isDefaultValue(), motdList_, motdTab_, rulesList_, and GLWTab::setDepressed().
Referenced by display().
RulesDialog * RulesDialog::instance_ = 0 [static, protected] |
GLWListView* RulesDialog::motdList_ [protected] |
GLWListView * RulesDialog::rulesList_ [protected] |
GLWIcon* RulesDialog::icon_ [protected] |
GLWTab* RulesDialog::rulesTab_ [protected] |
GLWTab* RulesDialog::motdTab_ [protected] |
unsigned int RulesDialog::okId_ [protected] |
1.5.3