PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls Class Reference

Response menu controls for NGUIDialogueUI. More...

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

Public Member Functions

override void SetPCPortrait (Sprite portraitSprite, string portraitName)
 Sets the PC portrait name and texture to use in the response menu.
 
override void SetActorPortraitSprite (string actorName, Sprite portraitSprite)
 Sets the portrait texture to use in the response menu if the named actor is the player.
 
override void SetActive (bool value)
 Sets the controls active/inactive, except this method never activates the timer.
 
override void StartTimer (float timeout)
 Starts the timer.
 
void OnTimeout ()
 This method is called if the timer runs out.
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls
void StartTimer (float timeout)
 Starts the timer.
 
virtual void ShowResponses (Subtitle subtitle, Response[] responses, Transform target)
 Shows the subtitle reminder and response buttons.
 
virtual void SetPCPortrait (Texture2D texture, string portraitName)
 
virtual void SetActorPortraitTexture (string actorName, Texture2D texture)
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIControls
void SetActive (bool value)
 Sets the controls active/inactive.
 
void Show ()
 Shows the controls by setting them active.
 
void Hide ()
 Hides the controls by setting them inactive.
 

Public Attributes

global::UIPanel panel
 The panel containing the response menu controls.
 
UITexture pcImage
 The label that will show the PC portrait image.
 
UILabel pcName
 The label that will show the PC name.
 
NGUISubtitleControls subtitleReminder
 The reminder of the last subtitle.
 
UISlider timer
 The (optional) timer.
 
NGUIResponseButton[] buttons
 The response buttons.
 
- 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.
 
bool showUnusedButtons = false
 Specifies whether to show buttons that aren't assigned to any responses.
 

Protected Member Functions

override void ClearResponseButtons ()
 Clears the response buttons.
 
override void SetResponseButtons (Response[] responses, Transform target)
 Sets the response buttons.
 
- Protected Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls
void ClearResponseButtons ()
 Clears the response buttons.
 
void SetResponseButtons (Response[] responses, Transform target)
 Sets the response buttons.
 

Properties

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

Detailed Description

Response menu controls for NGUIDialogueUI.

Member Function Documentation

◆ ClearResponseButtons()

override void PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.ClearResponseButtons ( )
inlineprotected

Clears the response buttons.

◆ OnTimeout()

void PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.OnTimeout ( )
inline

This method is called if the timer runs out.

It selects the first response.

◆ SetActive()

override void PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.SetActive ( bool  value)
inline

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

◆ SetActorPortraitSprite()

override void PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.SetActorPortraitSprite ( string  actorName,
Sprite  portraitSprite 
)
inlinevirtual

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.NGUISupport.NGUIResponseMenuControls.SetPCPortrait ( Sprite  portraitSprite,
string  portraitName 
)
inlinevirtual

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.NGUISupport.NGUIResponseMenuControls.SetResponseButtons ( Response[]  responses,
Transform  target 
)
inlineprotected

Sets the response buttons.

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

◆ StartTimer()

override void PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.StartTimer ( float  timeout)
inline

Starts the timer.

Parameters
timeoutTimeout duration in seconds.

Member Data Documentation

◆ buttons

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

The response buttons.

◆ panel

global.UIPanel PixelCrushers.DialogueSystem.NGUISupport.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.NGUISupport.NGUIResponseMenuControls.pcImage

The label that will show the PC portrait image.

◆ pcName

UILabel PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.pcName

The label that will show the PC name.

◆ subtitleReminder

NGUISubtitleControls PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.subtitleReminder

The reminder of the last subtitle.

◆ timer

UISlider PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.timer

The (optional) timer.

Property Documentation

◆ subtitleReminderControls

override AbstractUISubtitleControls PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.subtitleReminderControls
get

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