C# Класс 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
Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
height float
menuSkin UnityEngine.GUISkin
playerObject Transform

Открытые методы

Метод Описание
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

Описание методов

Awake() публичный Метод

public Awake ( ) : void
Результат void

BuildExtractorMenuEnable() публичный Метод

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
Результат void

BuildingInfoMenuEnable() публичный Метод

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
Результат void

ClearInfoLabel() публичный Метод

Clear the text of the first label
public ClearInfoLabel ( ) : void
Результат void

OnGUI() публичный Метод

public OnGUI ( ) : void
Результат void

PatrolDroneMenu() публичный Метод

Shows the possible patrol route options.
public PatrolDroneMenu ( ) : void
Результат void

PatrolDroneMenuEnable() публичный Метод

Enables the patrol route selection menu.
public PatrolDroneMenuEnable ( CBaseEntity, caller ) : void
caller CBaseEntity, /// Caller. ///
Результат void

PlayerInfoMenu() публичный Метод

Shows info about the player status
public PlayerInfoMenu ( ) : void
Результат void

PlayerInfoMenuEnable() публичный Метод

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
Результат void

SetInfoLabel() публичный Метод

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
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Описание свойств

height публичное свойство

public float height
Результат float

menuSkin публичное свойство

public GUISkin,UnityEngine menuSkin
Результат UnityEngine.GUISkin

playerObject публичное свойство

public Transform playerObject
Результат Transform