Emergency 20 Dokumentation  4.2.0
em5::MenuBar Class Reference

EMERGENCY 5 in-game information bar. More...

#include <MenuBar.h>

Inheritance diagram for em5::MenuBar:
qsf::GuiDocument

Public Member Functions

 MenuBar (qsf::GuiContext &guiContext)
 
 ~MenuBar ()
 
void rebuildGui ()
 
void openBuyUpgradeWindow ()
 
void showPauseSign (bool showPauseSign)
 
bool getAllowGameSpeedChanges () const
 
void setAllowGameSpeedChanges (bool allowGameSpeedChanges)
 
void clickSpeed0 ()
 
void clickSpeed1 ()
 
void clickSpeed2 ()
 
void clickSpeed3 ()
 
void updateBuyableButtonVisibility (bool visible=true)
 
void showBuyableBlinkText ()
 
void hideBuyableBlinkText ()
 
void setShowCreditsInsteadOfScore (bool showCreditsInsteadOfScore)
 
void setCreditsScoreVisible (bool visible)
 
void setBuyButtonVisible (bool visible)
 
void setCountdownTimer (qsf::Time countDownTime)
 
void showCountdownTimerElement (bool show)
 
virtual void processEvent (const std::string &eventKey, Rocket::Core::Event &event) override
 
- 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)
 

Additional Inherited Members

- 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 inherited from qsf::GuiDocument
void createEmptyDocument ()
 

Detailed Description

EMERGENCY 5 in-game information bar.

Constructor & Destructor Documentation

em5::MenuBar::MenuBar ( qsf::GuiContext guiContext)
explicit
em5::MenuBar::~MenuBar ( )

Member Function Documentation

void em5::MenuBar::clickSpeed0 ( )
void em5::MenuBar::clickSpeed1 ( )
void em5::MenuBar::clickSpeed2 ( )
void em5::MenuBar::clickSpeed3 ( )
bool em5::MenuBar::getAllowGameSpeedChanges ( ) const
void em5::MenuBar::hideBuyableBlinkText ( )
void em5::MenuBar::openBuyUpgradeWindow ( )
virtual void em5::MenuBar::processEvent ( const std::string &  eventKey,
Rocket::Core::Event &  event 
)
overridevirtual

Reimplemented from qsf::GuiDocument.

void em5::MenuBar::rebuildGui ( )
void em5::MenuBar::setAllowGameSpeedChanges ( bool  allowGameSpeedChanges)
void em5::MenuBar::setBuyButtonVisible ( bool  visible)
void em5::MenuBar::setCountdownTimer ( qsf::Time  countDownTime)
void em5::MenuBar::setCreditsScoreVisible ( bool  visible)
void em5::MenuBar::setShowCreditsInsteadOfScore ( bool  showCreditsInsteadOfScore)
void em5::MenuBar::showBuyableBlinkText ( )
void em5::MenuBar::showCountdownTimerElement ( bool  show)
void em5::MenuBar::showPauseSign ( bool  showPauseSign)
void em5::MenuBar::updateBuyableButtonVisibility ( bool  visible = true)

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