C# Class GUIBottomMenu, astrochimps

Defines the basic GUI information on the bottom of the screen Basically, shows the name of the object where the mouse is over
Inheritance: MonoBehaviour
显示文件 Open project: arcoelho01/astrochimps Class Usage Examples

Public Properties

Property Type Description
height float
menuSkin UnityEngine.GUISkin
playerObject Transform

Public Methods

Method Description
Awake ( ) : void
BuildExtractorMenuEnable ( CBaseEntity, caller ) : void

Changes the menu type to show the menu for building an extractor

BuildingInfoMenuEnable ( CBuilding, caller ) : void

Shows the info of a building. If it has a monkey inside, show the GUI to get it out

ClearInfoLabel ( ) : void

Clear the text of the first label

OnGUI ( ) : void

PatrolDroneMenu ( ) : void

Shows the possible patrol route options.

PatrolDroneMenuEnable ( CBaseEntity, caller ) : void

Enables the patrol route selection menu.

PlayerInfoMenu ( ) : void

Shows info about the player status

PlayerInfoMenuEnable ( CBaseEntity, caller ) : void

Changes the menu type to show the player info

SetInfoLabel ( string stNewLabelText ) : void

Changes the text of the first label. Usually, it will show the unit's name

Start ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

BuildExtractorMenuEnable() public method

Changes the menu type to show the menu for building an extractor
public BuildExtractorMenuEnable ( CBaseEntity, caller ) : void
caller CBaseEntity, The CBaseEntity component of the caller of this method
return void

BuildingInfoMenuEnable() public method

Shows the info of a building. If it has a monkey inside, show the GUI to get it out
public BuildingInfoMenuEnable ( CBuilding, caller ) : void
caller CBuilding, The CBuilding component of the caller of this method
return void

ClearInfoLabel() public method

Clear the text of the first label
public ClearInfoLabel ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

PatrolDroneMenu() public method

Shows the possible patrol route options.
public PatrolDroneMenu ( ) : void
return void

PatrolDroneMenuEnable() public method

Enables the patrol route selection menu.
public PatrolDroneMenuEnable ( CBaseEntity, caller ) : void
caller CBaseEntity, /// Caller. ///
return void

PlayerInfoMenu() public method

Shows info about the player status
public PlayerInfoMenu ( ) : void
return void

PlayerInfoMenuEnable() public method

Changes the menu type to show the player info
public PlayerInfoMenuEnable ( CBaseEntity, caller ) : void
caller CBaseEntity, The CBaseEntity component of the caller of this method
return void

SetInfoLabel() public method

Changes the text of the first label. Usually, it will show the unit's name
public SetInfoLabel ( string stNewLabelText ) : void
stNewLabelText string A string with the new text for the first label
return void

Start() public method

public Start ( ) : void
return void

Property Details

height public_oe property

public float height
return float

menuSkin public_oe property

public GUISkin,UnityEngine menuSkin
return UnityEngine.GUISkin

playerObject public_oe property

public Transform playerObject
return Transform