Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ScreenManager Class Reference

Manager/container for Screens. More...

#include <ScreenManager.h>

Public Member Functions

void Update (float fDeltaTime)
 
void Draw ()
 
void Input (const InputEventPlus &input)
 
void SetNewScreen (const std::string &sName)
 
void AddNewScreenToTop (const std::string &sName, ScreenMessage SendOnPop=SM_None)
 
void PrepareScreen (const std::string &sScreenName)
 Create and cache the requested Screen.
 
void GroupScreen (const std::string &sScreenName)
 
void PersistantScreen (const std::string &sScreenName)
 
void PopTopScreen (ScreenMessage SM)
 
void PopAllScreens ()
 
auto GetTopScreen () -> Screen *
 
auto GetScreen (int iPosition) -> Screen *
 
auto AllowOperatorMenuButton () const -> bool
 
auto IsScreenNameValid (std::string const &name) const -> bool
 
void SystemMessage (const std::string &sMessage)
 
void SystemMessageNoAnimate (const std::string &sMessage)
 
void HideSystemMessage ()
 
void PostMessageToTopScreen (ScreenMessage SM, float fDelay)
 
void SendMessageToTopScreen (ScreenMessage SM)
 
void RefreshCreditsMessages ()
 
void ThemeChanged ()
 
void ReloadOverlayScreens ()
 
void ReloadOverlayScreensAfterInputFinishes ()
 
auto IsStackedScreen (const Screen *pScreen) const -> bool
 Is this Screen in the main Screen stack, but not the bottommost Screen?
 
auto get_input_redirected (PlayerNumber pn) -> bool
 
void set_input_redirected (PlayerNumber pn, bool redir)
 
void PushSelf (lua_State *L)
 
void PlaySharedBackgroundOffCommand ()
 
void ZeroNextUpdate ()
 
void PlayStartSound ()
 
void PlayCoinSound ()
 
void PlayCancelSound ()
 
void PlayInvalidSound ()
 
void PlayScreenshotSound ()
 

Detailed Description

Manager/container for Screens.

Member Function Documentation

◆ IsStackedScreen()

bool ScreenManager::IsStackedScreen ( const Screen pScreen) const -> bool

Is this Screen in the main Screen stack, but not the bottommost Screen?

If this function returns true, the screen should exit by popping itself, not by loading another Screen.

Parameters
pScreenthe Screen to check.
Returns
true if it's on the stack while not on the bottom, or false otherwise.

◆ PrepareScreen()

void ScreenManager::PrepareScreen ( const std::string &  sScreenName)

Create and cache the requested Screen.

This is so that the next call to SetNewScreen for this Screen will be very quick.

Parameters
sScreenNamethe Screen to prepare.

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