PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls Class Reference

Subtitle NGUI controls for NGUIDialogueUI. More...

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

Public Member Functions

override void SetActive (bool value)
 Sets the subtitle controls active or inactive. More...
 
override void HideContinueButton ()
 Hides the continue button. More...
 
override void SetSubtitle (Subtitle subtitle)
 Sets the subtitle. More...
 
override void ClearSubtitle ()
 Clears the subtitle. More...
 
override void SetActorPortraitTexture (string actorName, Texture2D portraitTexture)
 Sets the portrait texture to use in the subtitle if the named actor is the speaker. More...
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUISubtitleControls
virtual void ShowContinueButton ()
 Shows the continue button. More...
 
virtual void ShowSubtitle (Subtitle subtitle)
 Shows the subtitle controls. More...
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIControls
void Show ()
 Shows the controls by setting them active. More...
 
void Hide ()
 Hides the controls by setting them inactive. More...
 

Public Attributes

UIPanel panel
 The panel containing the response menu controls. More...
 
UILabel line
 The label that will show the text of the subtitle. More...
 
UITexture portraitImage
 The label that will show the portrait image. More...
 
UILabel portraitName
 The label that will show the name of the speaker. More...
 
UIButton continueButton
 The continue button. More...
 
Color originalColor = Color.clear
 

Properties

override bool HasText [get]
 Indicates whether this subtitle is currently assigned text. More...
 
- Properties inherited from PixelCrushers.DialogueSystem.AbstractUISubtitleControls
abstract bool HasText [get]
 Gets a value indicating whether text has been assigned to the subtitle controls. More...
 

Additional Inherited Members

- Protected Attributes inherited from PixelCrushers.DialogueSystem.AbstractUISubtitleControls
Subtitle currentSubtitle = null
 

Detailed Description

Member Function Documentation

◆ ClearSubtitle()

override void PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.ClearSubtitle ( )
virtual

◆ HideContinueButton()

override void PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.HideContinueButton ( )
virtual

Hides the continue button.

Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.

◆ SetActive()

override void PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.SetActive ( bool  value)
virtual

Sets the subtitle controls active or inactive.

Parameters
valuetrue for active; false for inactive.

Implements PixelCrushers.DialogueSystem.AbstractUIControls.

◆ SetActorPortraitTexture()

override void PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.SetActorPortraitTexture ( string  actorName,
Texture2D  portraitTexture 
)
virtual

Sets the portrait texture to use in the subtitle if the named actor is the speaker.

This is used to immediately update the GUI control if the SetPortrait() sequencer command changes the portrait texture.

Parameters
actorNameActor name in database.
portraitTexturePortrait texture.

Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.

◆ SetSubtitle()

override void PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.SetSubtitle ( Subtitle  subtitle)
virtual

Sets the subtitle.

Parameters
subtitleSubtitle.

Implements PixelCrushers.DialogueSystem.AbstractUISubtitleControls.

Member Data Documentation

◆ continueButton

UIButton PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.continueButton

The continue button.

This is only required if DisplaySettings.waitForContinueButton is true – in which case this button should send "OnContinue" to the UI when clicked.

◆ line

UILabel PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.line

The label that will show the text of the subtitle.

◆ originalColor

Color PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.originalColor = Color.clear

◆ panel

UIPanel PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.panel

The panel containing the response menu controls.

A panel is optional, but you may want one so you can include a background image, panel-wide effects, etc.

◆ portraitImage

UITexture PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.portraitImage

The label that will show the portrait image.

◆ portraitName

UILabel PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.portraitName

The label that will show the name of the speaker.

Property Documentation

◆ HasText

override bool PixelCrushers.DialogueSystem.NGUI.NGUISubtitleControls.HasText
get

Indicates whether this subtitle is currently assigned text.

true if it has text; otherwise, false.


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