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
ファイルを表示 Open project: fi-content2-games-platform/FIcontent.Gaming.Enabler.phenomobilecharactermanager

Public Properties

Property Type Description
gpm Epigene.GAME.GameManager
hudOpen bool
uiManager Epigene.UI.UIManager

Public Methods

Method 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

Method 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 method

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
return void

CloseAllSubmenus() public method

Closes all submenus.
public CloseAllSubmenus ( ) : void
return void

ProcessBuildEvent() public method

public ProcessBuildEvent ( string eventId, string param ) : void
eventId string
param string
return void

ProcessDialogEvent() public method

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

ProcessInitEvent() public method

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

ProcessScreenEvent() public method

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

ProcessStoreEvent() public method

Process store events
public ProcessStoreEvent ( string eventId, string data ) : void
eventId string
data string
return void

SetBalance() public method

public SetBalance ( string balance ) : void
balance string
return void

Toggle() public method

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

Property Details

gpm public_oe property

Player manager
public GameManager,Epigene.GAME gpm
return Epigene.GAME.GameManager

hudOpen public_oe static_oe property

This tells the camera is one of the submenus is open
public static bool hudOpen
return bool

uiManager public_oe property

The user interface manager.
public UIManager,Epigene.UI uiManager
return Epigene.UI.UIManager