C# Class GameGUIManager, tf_client

Manager for in-game GUI
Inheritance: MonoBehaviour
Afficher le fichier Open project: wids-eria/tf_client Class Usage Examples

Méthodes publiques

Свойство Type Description
SystemIsBusy bool
clearResourceTileSelectionIcon UnityEngine.Texture2D
cursorSize float
deselectResourceTileIconOff UnityEngine.Texture2D
deselectResourceTileIconOn UnityEngine.Texture2D
inactiveGUIFade float
paintCursorDeselect UnityEngine.Texture2D
paintCursorSelect Texture2D
panCursorDn Texture2D
panCursorUp Texture2D
panSelectionIconOff Texture2D
panSelectionIconOn Texture2D
selectResourceTileIconOff Texture2D
selectResourceTileIconOn Texture2D
styles GUIStyles
submitResourceTileSelectionIcon Texture2D

Protected Properties

Свойство Type Description
m_guiObjects List

Private Properties

Свойство Type Description
Awake void
DownloadMinimap IEnumerator
OnDestroy void
OnGUI void
SetCursor void
SetInputSelection void
Start void
Update void

Méthodes publiques

Méthode Description
AddGUIObject ( GUIObject, obj ) : void

Adds the GUI object.

DisplayLoadingIcon ( float progress ) : void

Displays the loading icon at the center of the screen.

DisplayLoadingIcon ( float progress, Vector2 position, Color color ) : void

Displays the loading icon at the specified position.

InitializeGUI ( ) : void

Initializes the GUI rects and styles.

IsCursorInGUI ( ) : bool

Is the mouse cursor in a GUI rect?

PlayInvalidActionSound ( ) : void

Plays the invalid action sound.

RemoveGUIObject ( GUIObject, obj ) : void

Removes the GUI object.

SetErrorMessage ( string msg ) : void

Sets the error message on the status line.

_ScreenResolutionChanged ( MessageScreenResolutionChanged, msg ) : void

Handle screen resolution change event.

Méthodes protégées

Méthode Description
InitGUIObjects ( ) : void

Inits the GUI objects.

Private Methods

Méthode Description
Awake ( ) : void

Initialize

DownloadMinimap ( ) : IEnumerator

Downloads the minimap.

OnDestroy ( ) : void
OnGUI ( ) : void

Raises the GUI event.

SetCursor ( ) : void

Sets the cursor.

SetInputSelection ( int selection ) : void
Start ( ) : void

Start this instance.

Update ( ) : void

Update this instance.

Method Details

AddGUIObject() public static méthode

Adds the GUI object.
public static AddGUIObject ( GUIObject, obj ) : void
obj GUIObject, /// Object. ///
Résultat void

DisplayLoadingIcon() public méthode

Displays the loading icon at the center of the screen.
public DisplayLoadingIcon ( float progress ) : void
progress float /// Normalized progress. ///
Résultat void

DisplayLoadingIcon() public méthode

Displays the loading icon at the specified position.
public DisplayLoadingIcon ( float progress, Vector2 position, Color color ) : void
progress float /// Normalized progress. ///
position Vector2 /// Position. ///
color Color /// Color ///
Résultat void

InitGUIObjects() protected méthode

Inits the GUI objects.
protected InitGUIObjects ( ) : void
Résultat void

InitializeGUI() public méthode

Initializes the GUI rects and styles.
public InitializeGUI ( ) : void
Résultat void

IsCursorInGUI() public méthode

Is the mouse cursor in a GUI rect?
public IsCursorInGUI ( ) : bool
Résultat bool

PlayInvalidActionSound() public méthode

Plays the invalid action sound.
public PlayInvalidActionSound ( ) : void
Résultat void

RemoveGUIObject() public static méthode

Removes the GUI object.
public static RemoveGUIObject ( GUIObject, obj ) : void
obj GUIObject, /// Object. ///
Résultat void

SetErrorMessage() public méthode

Sets the error message on the status line.
public SetErrorMessage ( string msg ) : void
msg string /// Message. ///
Résultat void

_ScreenResolutionChanged() public méthode

Handle screen resolution change event.
public _ScreenResolutionChanged ( MessageScreenResolutionChanged, msg ) : void
msg MessageScreenResolutionChanged, /// Message. ///
Résultat void

Property Details

SystemIsBusy public_oe property

public bool SystemIsBusy
Résultat bool

clearResourceTileSelectionIcon public_oe property

The clear resource tile selection icon.
public Texture2D,UnityEngine clearResourceTileSelectionIcon
Résultat UnityEngine.Texture2D

cursorSize public_oe static_oe property

The size of the cursor.
public static float cursorSize
Résultat float

deselectResourceTileIconOff public_oe property

The deselect resource tile icon off.
public Texture2D,UnityEngine deselectResourceTileIconOff
Résultat UnityEngine.Texture2D

deselectResourceTileIconOn public_oe property

The deselect resource tile icon on.
public Texture2D,UnityEngine deselectResourceTileIconOn
Résultat UnityEngine.Texture2D

inactiveGUIFade public_oe property

The fade amount for inactive GUI elements.
public float inactiveGUIFade
Résultat float

m_guiObjects protected_oe static_oe property

The m_gui objects.
protected static List m_guiObjects
Résultat List

paintCursorDeselect public_oe property

The paint cursor for deselecting.
public Texture2D,UnityEngine paintCursorDeselect
Résultat UnityEngine.Texture2D

paintCursorSelect public_oe property

The paint cursor for selecting.
public Texture2D paintCursorSelect
Résultat Texture2D

panCursorDn public_oe property

The pan cursor when the mouse button is down.
public Texture2D panCursorDn
Résultat Texture2D

panCursorUp public_oe property

The pan cursor when the mouse button is up.
public Texture2D panCursorUp
Résultat Texture2D

panSelectionIconOff public_oe property

The pan selection icon off.
public Texture2D panSelectionIconOff
Résultat Texture2D

panSelectionIconOn public_oe property

The pan selection icon on.
public Texture2D panSelectionIconOn
Résultat Texture2D

selectResourceTileIconOff public_oe property

The select resource tile icon off.
public Texture2D selectResourceTileIconOff
Résultat Texture2D

selectResourceTileIconOn public_oe property

The select resource tile icon on.
public Texture2D selectResourceTileIconOn
Résultat Texture2D

styles public_oe property

the collection of styles
public GUIStyles styles
Résultat GUIStyles

submitResourceTileSelectionIcon public_oe property

The submit resource tile selection icon.
public Texture2D submitResourceTileSelectionIcon
Résultat Texture2D