PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay Class Reference

Replaces the Selector/ProximitySelector's OnGUI method with a method that enables or disables an NGUI UILabel and optional main control widget. More...

Inheritance diagram for PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay:
Collaboration diagram for PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay:

Public Member Functions

void Start ()
 
void OnEnable ()
 
void OnDisable ()
 
void Update ()
 

Public Attributes

UIWidget mainControl = null
 The main control (optional). More...
 
UILabel nameLabel = null
 The UILabel for the name of the current selection. More...
 
UILabel useMessageLabel = null
 The UILabel for the use message (e.g., "Press spacebar to use"). More...
 
UIWidget reticleInRange = null
 The widget to show if the selection is in range. More...
 
UIWidget reticleOutOfRange = null
 The widget to show if the selection is out of range. More...
 
bool followTarget = false
 Position the mainControl on the selection target. More...
 

Protected Member Functions

void HideControls ()
 
void UpdateReticle ()
 

Properties

float? CurrentDistance [get]
 

Detailed Description

Replaces the Selector/ProximitySelector's OnGUI method with a method that enables or disables an NGUI UILabel and optional main control widget.

Member Function Documentation

◆ HideControls()

void PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.HideControls ( )
protected

◆ OnDisable()

void PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.OnDisable ( )

◆ OnEnable()

void PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.OnEnable ( )

◆ Start()

void PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.Start ( )

◆ Update()

void PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.Update ( )

◆ UpdateReticle()

void PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.UpdateReticle ( )
protected

Member Data Documentation

◆ followTarget

bool PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.followTarget = false

Position the mainControl on the selection target.

◆ mainControl

UIWidget PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.mainControl = null

The main control (optional).

Assign this if you have created an entire panel for the selector.

◆ nameLabel

UILabel PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.nameLabel = null

The UILabel for the name of the current selection.

◆ reticleInRange

UIWidget PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.reticleInRange = null

The widget to show if the selection is in range.

◆ reticleOutOfRange

UIWidget PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.reticleOutOfRange = null

The widget to show if the selection is out of range.

◆ useMessageLabel

UILabel PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.useMessageLabel = null

The UILabel for the use message (e.g., "Press spacebar to use").

Property Documentation

◆ CurrentDistance

float? PixelCrushers.DialogueSystem.NGUI.NGUISelectorDisplay.CurrentDistance
getprotected

The documentation for this class was generated from the following file: