PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls Class Reference

Response menu controls for NGUIDialogueUI. More...

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

Public Member Functions

override void SetPCPortrait (Texture2D portraitTexture, string portraitName)
 Sets the PC portrait name and texture to use in the response menu. More...
 
override void SetActorPortraitTexture (string actorName, Texture2D portraitTexture)
 Sets the portrait texture to use in the response menu if the named actor is the player. More...
 
override void SetActive (bool value)
 Sets the controls active/inactive, except this method never activates the timer. More...
 
override void StartTimer (float timeout)
 Starts the timer. More...
 
void OnTimeout ()
 This method is called if the timer runs out. More...
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls
virtual void ShowResponses (Subtitle subtitle, Response[] responses, Transform target)
 Shows the subtitle reminder and response buttons. 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...
 
UITexture pcImage
 The label that will show the PC portrait image. More...
 
UILabel pcName
 The label that will show the PC name. More...
 
NGUISubtitleControls subtitleReminder
 The reminder of the last subtitle. More...
 
UISlider timer
 The (optional) timer. More...
 
NGUIResponseButton[] buttons
 The response buttons. More...
 
- Public Attributes inherited from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls
ResponseButtonAlignment buttonAlignment = ResponseButtonAlignment.ToFirst
 The response button alignment – that is, whether to align them to the first or the last button. More...
 
bool showUnusedButtons = false
 Specifies whether to show buttons that aren't assigned to any responses. More...
 

Protected Member Functions

override void ClearResponseButtons ()
 Clears the response buttons. More...
 
override void SetResponseButtons (Response[] responses, Transform target)
 Sets the response buttons. More...
 

Properties

override AbstractUISubtitleControls SubtitleReminder [get]
 
- Properties inherited from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls
abstract AbstractUISubtitleControls SubtitleReminder [get]
 Gets the subtitle reminder controls. More...
 

Detailed Description

Response menu controls for NGUIDialogueUI.

Member Function Documentation

◆ ClearResponseButtons()

override void PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.ClearResponseButtons ( )
protectedvirtual

Clears the response buttons.

Implements PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.

◆ OnTimeout()

void PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.OnTimeout ( )

This method is called if the timer runs out.

It selects the first response.

◆ SetActive()

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

Sets the controls active/inactive, except this method never activates the timer.

If the UI's display settings specify a timeout, then the UI will call StartTimer() to manually activate the timer.

Parameters
valueValue (true for active; otherwise inactive).

Implements PixelCrushers.DialogueSystem.AbstractUIControls.

◆ SetActorPortraitTexture()

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

Sets the portrait texture to use in the response menu if the named actor is the player.

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

◆ SetPCPortrait()

override void PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.SetPCPortrait ( Texture2D  portraitTexture,
string  portraitName 
)
virtual

Sets the PC portrait name and texture to use in the response menu.

Parameters
portraitTexturePortrait texture.
portraitNamePortrait name.

Reimplemented from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.

◆ SetResponseButtons()

override void PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.SetResponseButtons ( Response[]  responses,
Transform  target 
)
protectedvirtual

Sets the response buttons.

Parameters
responsesResponses.
targetTarget that will receive OnClick events from the buttons.

Implements PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.

◆ StartTimer()

override void PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.StartTimer ( float  timeout)
virtual

Starts the timer.

Parameters
timeoutTimeout duration in seconds.

Implements PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.

Member Data Documentation

◆ buttons

NGUIResponseButton [] PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.buttons

The response buttons.

◆ panel

UIPanel PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.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.

◆ pcImage

UITexture PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.pcImage

The label that will show the PC portrait image.

◆ pcName

UILabel PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.pcName

The label that will show the PC name.

◆ subtitleReminder

NGUISubtitleControls PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.subtitleReminder

The reminder of the last subtitle.

◆ timer

UISlider PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.timer

The (optional) timer.

Property Documentation

◆ SubtitleReminder

override AbstractUISubtitleControls PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.SubtitleReminder
get

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