C# Class GameGUIManager, tf_client

Manager for in-game GUI
Inheritance: MonoBehaviour
Mostra file Open project: wids-eria/tf_client Class Usage Examples

Public Properties

Property 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

Property Type Description
m_guiObjects List

Private Properties

Property Type Description
Awake void
DownloadMinimap IEnumerator
OnDestroy void
OnGUI void
SetCursor void
SetInputSelection void
Start void
Update void

Public Methods

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

Protected Methods

Method Description
InitGUIObjects ( ) : void

Inits the GUI objects.

Private Methods

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

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

DisplayLoadingIcon() public method

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

DisplayLoadingIcon() public method

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

InitGUIObjects() protected method

Inits the GUI objects.
protected InitGUIObjects ( ) : void
return void

InitializeGUI() public method

Initializes the GUI rects and styles.
public InitializeGUI ( ) : void
return void

IsCursorInGUI() public method

Is the mouse cursor in a GUI rect?
public IsCursorInGUI ( ) : bool
return bool

PlayInvalidActionSound() public method

Plays the invalid action sound.
public PlayInvalidActionSound ( ) : void
return void

RemoveGUIObject() public static method

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

SetErrorMessage() public method

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

_ScreenResolutionChanged() public method

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

Property Details

SystemIsBusy public_oe property

public bool SystemIsBusy
return bool

clearResourceTileSelectionIcon public_oe property

The clear resource tile selection icon.
public Texture2D,UnityEngine clearResourceTileSelectionIcon
return UnityEngine.Texture2D

cursorSize public_oe static_oe property

The size of the cursor.
public static float cursorSize
return float

deselectResourceTileIconOff public_oe property

The deselect resource tile icon off.
public Texture2D,UnityEngine deselectResourceTileIconOff
return UnityEngine.Texture2D

deselectResourceTileIconOn public_oe property

The deselect resource tile icon on.
public Texture2D,UnityEngine deselectResourceTileIconOn
return UnityEngine.Texture2D

inactiveGUIFade public_oe property

The fade amount for inactive GUI elements.
public float inactiveGUIFade
return float

m_guiObjects protected_oe static_oe property

The m_gui objects.
protected static List m_guiObjects
return List

paintCursorDeselect public_oe property

The paint cursor for deselecting.
public Texture2D,UnityEngine paintCursorDeselect
return UnityEngine.Texture2D

paintCursorSelect public_oe property

The paint cursor for selecting.
public Texture2D paintCursorSelect
return Texture2D

panCursorDn public_oe property

The pan cursor when the mouse button is down.
public Texture2D panCursorDn
return Texture2D

panCursorUp public_oe property

The pan cursor when the mouse button is up.
public Texture2D panCursorUp
return Texture2D

panSelectionIconOff public_oe property

The pan selection icon off.
public Texture2D panSelectionIconOff
return Texture2D

panSelectionIconOn public_oe property

The pan selection icon on.
public Texture2D panSelectionIconOn
return Texture2D

selectResourceTileIconOff public_oe property

The select resource tile icon off.
public Texture2D selectResourceTileIconOff
return Texture2D

selectResourceTileIconOn public_oe property

The select resource tile icon on.
public Texture2D selectResourceTileIconOn
return Texture2D

styles public_oe property

the collection of styles
public GUIStyles styles
return GUIStyles

submitResourceTileSelectionIcon public_oe property

The submit resource tile selection icon.
public Texture2D submitResourceTileSelectionIcon
return Texture2D