C# Class AquaSphereMini.HUD

This class is responsible for create and manage the HUD menu system. It uses multiple sub menus and show/activate the one based on which is the activate menu at the moment. The users must click on the corrsponting menu button in the hud to activate the submenu.
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: fi-content2-games-platform/FIcontent.Gaming.Enabler.phenomobilecharactermanager

Méthodes publiques

Свойство Type Description
gpm Epigene.GAME.GameManager
hudOpen bool
uiManager Epigene.UI.UIManager

Méthodes publiques

Méthode Description
BuildConstruction ( string param ) : void

Build a construction. This function is called when the user clicks on the "BUILD" button in the build selection panel. The function will change the icon to the selected consturction model and will hide the build panels. Parameter is the name of the button.

CloseAllSubmenus ( ) : void

Closes all submenus.

ProcessBuildEvent ( string eventId, string param ) : void
ProcessDialogEvent ( string _eventId, string _param ) : void

Function to check new events.

ProcessInitEvent ( string _eventId, string _param ) : void

Function to load in Library Files

ProcessScreenEvent ( string _eventId, string _param ) : void

Function to check new events.

ProcessStoreEvent ( string eventId, string data ) : void

Process store events

SetBalance ( string balance ) : void
Toggle ( string button ) : void

Toggles the specific Submenus depending on Button Name

Private Methods

Méthode Description
Awake ( ) : void

LogCyan ( string _first, string _second ) : void
OnDisable ( ) : void

Disable the hud will remove registered ui elements

OnEnable ( ) : void

Enable the HUD will register ui elements

Start ( ) : void

Start up

Method Details

BuildConstruction() public méthode

Build a construction. This function is called when the user clicks on the "BUILD" button in the build selection panel. The function will change the icon to the selected consturction model and will hide the build panels. Parameter is the name of the button.
public BuildConstruction ( string param ) : void
param string
Résultat void

CloseAllSubmenus() public méthode

Closes all submenus.
public CloseAllSubmenus ( ) : void
Résultat void

ProcessBuildEvent() public méthode

public ProcessBuildEvent ( string eventId, string param ) : void
eventId string
param string
Résultat void

ProcessDialogEvent() public méthode

Function to check new events.
public ProcessDialogEvent ( string _eventId, string _param ) : void
_eventId string
_param string
Résultat void

ProcessInitEvent() public méthode

Function to load in Library Files
public ProcessInitEvent ( string _eventId, string _param ) : void
_eventId string _event identifier.
_param string _param.
Résultat void

ProcessScreenEvent() public méthode

Function to check new events.
public ProcessScreenEvent ( string _eventId, string _param ) : void
_eventId string
_param string
Résultat void

ProcessStoreEvent() public méthode

Process store events
public ProcessStoreEvent ( string eventId, string data ) : void
eventId string
data string
Résultat void

SetBalance() public méthode

public SetBalance ( string balance ) : void
balance string
Résultat void

Toggle() public méthode

Toggles the specific Submenus depending on Button Name
public Toggle ( string button ) : void
button string Button.
Résultat void

Property Details

gpm public_oe property

Player manager
public GameManager,Epigene.GAME gpm
Résultat Epigene.GAME.GameManager

hudOpen public_oe static_oe property

This tells the camera is one of the submenus is open
public static bool hudOpen
Résultat bool

uiManager public_oe property

The user interface manager.
public UIManager,Epigene.UI uiManager
Résultat Epigene.UI.UIManager