Bandidos
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
com.mygdx.game.popUpSystem.PopUpSystem Class Reference

Public Member Functions

void registerPopUp (BasePopUp popUp)
 
void unregisterPopUp (BasePopUp popUp)
 

Static Public Member Functions

static PopUpSystem getInstance ()
 

Static Public Attributes

static final int POP_UP_SORT_LAYER_PLUS_UI = 200
 

Detailed Description

This class is a singleton which handles all the setting of the BasePopUp instances which are created. It will handle that they are set in the correct layer and will keep track of their layer status It will also change the TouchInputHandler's layer if a cover pop-up is created

Author
Ramses Di Perna

Member Function Documentation

◆ getInstance()

static PopUpSystem com.mygdx.game.popUpSystem.PopUpSystem.getInstance ( )
static

◆ registerPopUp()

void com.mygdx.game.popUpSystem.PopUpSystem.registerPopUp ( BasePopUp  popUp)

Registers a pop up into the system. The BasePopUp automatically calls this method when created

Parameters
popUpto register.

◆ unregisterPopUp()

void com.mygdx.game.popUpSystem.PopUpSystem.unregisterPopUp ( BasePopUp  popUp)

Unregisters a pop up from the system. The BasePopUp automatically calls this method when destroyed

Parameters
popUpto unregister.

Member Data Documentation

◆ POP_UP_SORT_LAYER_PLUS_UI

final int com.mygdx.game.popUpSystem.PopUpSystem.POP_UP_SORT_LAYER_PLUS_UI = 200
static

This layer is the layer where the Pop Ups will be rendered on + UI layering


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