Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <gamemenu.h>
Public Member Functions | |
virtual void | init (void) |
virtual void | run (void) |
GameMenu (bool firsttime) | |
virtual | ~GameMenu (void) |
![]() | |
virtual bool | processWindowCommand (const EventCommandId &command, Control *control) |
![]() | |
virtual void | draw (void) |
virtual Window * | window (void) |
virtual void | setWindow (Window *w) |
WindowController () | |
virtual | ~WindowController (void) |
Static Public Member Functions | |
static void | createNetworkControls (GroupControl *serverConnGroup, std::vector< unsigned int > *keyboard_input_queue) |
static void | readJoinGameControls (Window *window, string &user, string &pass) |
Protected Member Functions | |
bool | processSinglePlayerButton (const EventCommandId &command, Control *control) |
bool | processMultiPlayerHostButton (const EventCommandId &command, Control *control) |
bool | processMultiPlayerAcctButton (const EventCommandId &command, Control *control) |
bool | processMultiPlayerButton (const EventCommandId &command, Control *control) |
bool | processExitGameButton (const EventCommandId &command, Control *control) |
bool | processJoinGameButton (const EventCommandId &command, Control *control) |
bool | processMainMenuButton (const EventCommandId &command, Control *control) |
void | createControls () |
Protected Attributes | |
bool | m_firstTime |
Friends | |
class | WctlBase< GameMenu > |
Additional Inherited Members | |
![]() | |
typedef WindowControllerTableEntry < GameMenu > | WctlTableEntry |
![]() | |
static const WctlTableEntry | WctlCommandTable [] |
Definition at line 7 of file gamemenu.h.
GameMenu::GameMenu | ( | bool | firsttime) |
Definition at line 36 of file gamemenu.cpp.
|
virtual |
Definition at line 40 of file gamemenu.cpp.
|
protected |
Definition at line 277 of file gamemenu.cpp.
References GroupControl::addChild(), Window::addControl(), createNetworkControls(), gamemenu_keyboard_queue, getConfigColor(), GUI_CLEAR(), GUI_OPAQUE_WHITE(), Control::setColor(), NewButton::setCommand(), NewButton::setDownColor(), NewButton::setDownTextColor(), StaticDisplay::setFont(), Control::setFont(), Control::setHidden(), Control::setId(), NewButton::setLabel(), Control::setRect(), StaticDisplay::setRect(), StaticDisplay::setText(), StaticDisplay::setTextColor(), Control::setTextColor(), and WindowController::window().
Referenced by init().
|
static |
Definition at line 72 of file gamemenu.cpp.
References GroupControl::addChild(), GFXColor::b, GFXColor::g, VegaConfig::getVariable(), GUI_CLEAR(), GUI_OPAQUE_BLACK(), GUI_OPAQUE_MEDIUM_GRAY(), GUI_OPAQUE_WHITE(), XMLSupport::parse_bool(), GFXColor::r, Control::setColor(), NewButton::setCommand(), NewButton::setDownColor(), NewButton::setDownTextColor(), StaticDisplay::setFont(), Control::setFont(), Control::setHidden(), NewButton::setHighlightColor(), Control::setId(), NewButton::setLabel(), StaticDisplay::setMultiLine(), Control::setOutlineColor(), TextInputDisplay::setPassword(), Control::setRect(), StaticDisplay::setRect(), StaticDisplay::setText(), StaticDisplay::setTextColor(), Control::setTextColor(), StaticDisplay::setTextMargins(), and vs_config.
Referenced by BaseComputer::constructControls(), and createControls().
|
virtual |
Implements WindowController.
Definition at line 265 of file gamemenu.cpp.
References createControls(), GUI_CLEAR(), Window::setColor(), Window::setFullScreen(), Window::setTexture(), WindowController::setWindow(), and WindowController::window().
Referenced by UniverseUtil::startMenuInterface().
|
protected |
Definition at line 448 of file gamemenu.cpp.
References winsys_exit().
|
protected |
Definition at line 691 of file gamemenu.cpp.
References NetActionConfirm::confirmedJoinGame(), NetActionConfirm::JOINGAME, and WindowController::window().
|
protected |
Definition at line 441 of file gamemenu.cpp.
References Window::findControlById(), Control::setHidden(), and WindowController::window().
|
protected |
Definition at line 425 of file gamemenu.cpp.
References Window::findControlById(), Control::setHidden(), and WindowController::window().
|
protected |
Definition at line 434 of file gamemenu.cpp.
References Window::findControlById(), Control::setHidden(), and WindowController::window().
|
protected |
Definition at line 416 of file gamemenu.cpp.
References Window::findControlById(), Control::setHidden(), and WindowController::window().
|
protected |
Definition at line 402 of file gamemenu.cpp.
References bootstrap_main_loop(), NetClient::CleanUp(), Window::close(), enableNetwork(), GFXLoop(), globalWindowManager(), m_firstTime, restore_main_loop(), WindowManager::shutDown(), TerminateCurrentBase(), and WindowController::window().
|
static |
Definition at line 563 of file gamemenu.cpp.
References _Universe, enableNetwork(), Window::findControlById(), Control::hidden(), i, Network, Universe::numPlayers(), VegaConfig::setVariable(), and vs_config.
Referenced by NetActionConfirm::confirmedJoinGame().
|
virtual |
Reimplemented from WindowController.
Definition at line 42 of file gamemenu.cpp.
References WindowController::run().
Referenced by UniverseUtil::startMenuInterface().
Definition at line 9 of file gamemenu.h.
|
protected |
Definition at line 18 of file gamemenu.h.
Referenced by processSinglePlayerButton().