PixelCrushers.DialogueSystem.UnityUIResponseMenuControls Class Reference

Response menu controls for UnityUIDialogueUI. More...

Inheritance diagram for PixelCrushers.DialogueSystem.UnityUIResponseMenuControls:
Collaboration diagram for PixelCrushers.DialogueSystem.UnityUIResponseMenuControls:

Classes

class  AutonumberSettings
 

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...
 
void DestroyInstantiatedButtons ()
 
void NotifyContentChanged ()
 
override void StartTimer (float timeout)
 Starts the timer. More...
 
virtual void OnTimeout ()
 This method is called if the timer runs out. More...
 
void DefaultTimeoutHandler ()
 
void AutoFocus (GameObject lastSelection=null, bool allowStealFocus=true)
 Auto-focuses the first response. 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

UnityEngine.UI.Graphic panel
 The panel containing the response menu controls. More...
 
UnityEngine.UI.Image pcImage
 The PC portrait image to show during the response menu. More...
 
UnityEngine.UI.Text pcName
 The label that will show the PC name. More...
 
UnityUISubtitleControls subtitleReminder
 The reminder of the last subtitle. More...
 
UnityEngine.UI.Slider timer
 The (optional) timer. More...
 
bool selectCurrentOnTimeout = false
 If ticked, then select the currently-focused response on timeout. More...
 
UnityUIResponseButton[] buttons
 The response buttons, if you want to specify buttons at design time. More...
 
UnityUIResponseButton buttonTemplate
 
UnityEngine.UI.Graphic buttonTemplateHolder
 
UnityEngine.UI.Scrollbar buttonTemplateScrollbar
 
float buttonTemplateScrollbarResetValue = 1
 
bool explicitNavigationForTemplateButtons = true
 
bool loopExplicitNavigation = false
 
AutonumberSettings autonumber = new AutonumberSettings()
 
UIAnimationTransitions animationTransitions = new UIAnimationTransitions()
 
UnityEvent onContentChanged = new UnityEvent()
 
List< GameObject > instantiatedButtons = new List<GameObject>()
 The instantiated buttons. More...
 
System.Action TimeoutHandler = null
 Assign this delegate if you want it to replace the default timeout handler. 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

bool? isVisible [get]
 
UIShowHideController showHideController [get]
 
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 UnityUIDialogueUI.

Member Function Documentation

◆ AutoFocus()

void PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.AutoFocus ( GameObject  lastSelection = null,
bool  allowStealFocus = true 
)

Auto-focuses the first response.

Useful for gamepads.

◆ ClearResponseButtons()

override void PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.ClearResponseButtons ( )
protectedvirtual

Clears the response buttons.

Implements PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.

◆ DefaultTimeoutHandler()

void PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.DefaultTimeoutHandler ( )

◆ DestroyInstantiatedButtons()

void PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.DestroyInstantiatedButtons ( )

◆ NotifyContentChanged()

void PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.NotifyContentChanged ( )

◆ OnTimeout()

virtual void PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.OnTimeout ( )
virtual

This method is called if the timer runs out.

It selects the first response.

◆ SetActive()

override void PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.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.UnityUIResponseMenuControls.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.UnityUIResponseMenuControls.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.UnityUIResponseMenuControls.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.UnityUIResponseMenuControls.StartTimer ( float  timeout)
virtual

Starts the timer.

Parameters
timeoutTimeout duration in seconds.

Implements PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.

Member Data Documentation

◆ animationTransitions

UIAnimationTransitions PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.animationTransitions = new UIAnimationTransitions()

◆ autonumber

AutonumberSettings PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.autonumber = new AutonumberSettings()

◆ buttons

UnityUIResponseButton [] PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.buttons

The response buttons, if you want to specify buttons at design time.

◆ buttonTemplate

UnityUIResponseButton PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.buttonTemplate

◆ buttonTemplateHolder

UnityEngine.UI.Graphic PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.buttonTemplateHolder

◆ buttonTemplateScrollbar

UnityEngine.UI.Scrollbar PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.buttonTemplateScrollbar

◆ buttonTemplateScrollbarResetValue

float PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.buttonTemplateScrollbarResetValue = 1

◆ explicitNavigationForTemplateButtons

bool PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.explicitNavigationForTemplateButtons = true

◆ instantiatedButtons

List<GameObject> PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.instantiatedButtons = new List<GameObject>()

The instantiated buttons.

These are only valid during a specific response menu, and only if you're using templates. Each showing of the response menu clears this list and re-populates it with new buttons.

◆ loopExplicitNavigation

bool PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.loopExplicitNavigation = false

◆ onContentChanged

UnityEvent PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.onContentChanged = new UnityEvent()

◆ panel

UnityEngine.UI.Graphic PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.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

UnityEngine.UI.Image PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.pcImage

The PC portrait image to show during the response menu.

◆ pcName

UnityEngine.UI.Text PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.pcName

The label that will show the PC name.

◆ selectCurrentOnTimeout

bool PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.selectCurrentOnTimeout = false

If ticked, then select the currently-focused response on timeout.

◆ subtitleReminder

UnityUISubtitleControls PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.subtitleReminder

The reminder of the last subtitle.

◆ TimeoutHandler

System.Action PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.TimeoutHandler = null

Assign this delegate if you want it to replace the default timeout handler.

◆ timer

UnityEngine.UI.Slider PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.timer

The (optional) timer.

Property Documentation

◆ isVisible

bool? PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.isVisible
get

◆ showHideController

UIShowHideController PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.showHideController
get

◆ SubtitleReminder

override AbstractUISubtitleControls PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.SubtitleReminder
get

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