Emergency 20 Dokumentation  4.2.0
em5::MainMenuWindowBase Class Reference

Base window for main menu windows. More...

#include <MainMenuWindowBase.h>

Inheritance diagram for em5::MainMenuWindowBase:
em5::GuiHotReloadSupport qsf::GuiDocument em5::AccountStatus em5::AccountStatusTitle em5::AchievementsWindow em5::CreditsWindow em5::ExtendedPreferencesGraphicWindow em5::FreeplayWindow em5::InputWindow em5::MainEventWindow em5::MainMenu em5::MultiplayerCreateServerWindow em5::MultiplayerDirectConnectWindow em5::MultiplayerLobbyWindow em5::MultiplayerWindow em5::PreferencesAudioWindow em5::PreferencesGameWindow em5::PreferencesGraphicWindow em5::SelectCampaign em5::SelectDifficultyWindow em5::StartCampaign em5::StartGame

Public Member Functions

 MainMenuWindowBase (qsf::GuiContext &guiContext)
 
virtual void processEvent (const std::string &eventKey, Rocket::Core::Event &event) override
 
- Public Member Functions inherited from em5::GuiHotReloadSupport
 GuiHotReloadSupport (qsf::GuiContext &guiContext)
 Default constructor. More...
 
virtual ~GuiHotReloadSupport ()
 Destructor. More...
 
- Public Member Functions inherited from qsf::GuiDocument
 GuiDocument (GuiContext &guiContext)
 Constructor. More...
 
 GuiDocument (GuiContext &guiContext, Rocket::Core::ElementDocument &rocketCoreElementDocument)
 Constructor. More...
 
virtual ~GuiDocument ()
 Destructor. More...
 
GuiContextgetGuiContext () const
 Return the document's owning GUI context. More...
 
Rocket::Core::ElementDocument * getRocketCoreElementDocument () const
 Return the document's libRocket document. More...
 
bool loadByFilename (const std::string &filename)
 Load the document from an RML file. More...
 
void unload ()
 Use this method if you want to change a documents .rml file at runtime. More...
 
void show ()
 Show the document. More...
 
void showFocused ()
 Show the document focused. More...
 
void showModal ()
 Show the document modal. More...
 
void hide ()
 Hide the document. More...
 
bool isVisible () const
 Check if the document is currently visible. More...
 
void setVisible (bool visible)
 Show/hide the document. More...
 
void pullToFront ()
 Pull the document to the front. More...
 
Rocket::Core::Element * findElementById (const std::string &elementId) const
 Find an element inside the document by its case-sensitive ID. More...
 
void registerNewButton (const std::string &buttonId, const std::string &event, const std::string &eventKey)
 Register a new button. More...
 
virtual void toggleVisibility ()
 Toggle visibility. More...
 
virtual void processViewportDimensionsChanged (int width, int height)
 

Static Public Member Functions

static bool isLoggedIn ()
 
- Static Public Member Functions inherited from qsf::GuiDocument
static Rocket::Core::EventListener * createEventListener (const std::string &eventKey)
 Create an event listener. More...
 
static GuiDocumentgetGuiDocumentByRocketCoreElement (Rocket::Core::Element *element)
 Return a QSF GUI document instance by using a given libRocket element instance. More...
 

Protected Member Functions

virtual void onGoingBack ()
 
virtual bool onDocumentPreShow () override
 
void setupUI (bool documentLoaded)
 
void destroyMultiplayerInstancesDelayed ()
 
void destroyMultiplayerInstances ()
 
- Protected Member Functions inherited from em5::GuiHotReloadSupport
virtual void onReloadGui ()
 Gets called when the GUI should be reloaded. More...
 
virtual void onDocumentPreHide ()
 
- Protected Member Functions inherited from qsf::GuiDocument
void createEmptyDocument ()
 

Detailed Description

Base window for main menu windows.

Constructor & Destructor Documentation

em5::MainMenuWindowBase::MainMenuWindowBase ( qsf::GuiContext guiContext)
explicit

Member Function Documentation

void em5::MainMenuWindowBase::destroyMultiplayerInstances ( )
protected
void em5::MainMenuWindowBase::destroyMultiplayerInstancesDelayed ( )
protected
static bool em5::MainMenuWindowBase::isLoggedIn ( )
static
void em5::MainMenuWindowBase::setupUI ( bool  documentLoaded)
protected

The documentation for this class was generated from the following file: