PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls Class Referenceabstract

Abstract response menu controls. More...

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

Public Member Functions

abstract void StartTimer (float timeout)
 Starts the timer. More...
 
virtual void ShowResponses (Subtitle subtitle, Response[] responses, Transform target)
 Shows the subtitle reminder and response buttons. More...
 
virtual void SetPCPortrait (Texture2D portraitTexture, string portraitName)
 Sets the PC portrait name and texture to use in the response menu. More...
 
virtual void SetActorPortraitTexture (string actorName, Texture2D portraitTexture)
 Sets the portrait texture to use in the response menu if the named actor is the player. More...
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIControls
abstract void SetActive (bool value)
 Sets the controls active/inactive. More...
 
void Show ()
 Shows the controls by setting them active. More...
 
void Hide ()
 Hides the controls by setting them inactive. More...
 

Public Attributes

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

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

Properties

abstract AbstractUISubtitleControls SubtitleReminder [get]
 Gets the subtitle reminder controls. More...
 

Detailed Description

Abstract response menu controls.

Each GUI system implementation derives its own subclass from this.

Member Function Documentation

◆ ClearResponseButtons()

◆ SetActorPortraitTexture()

virtual void PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.SetActorPortraitTexture ( string  actorName,
Texture2D  portraitTexture 
)
virtual

◆ SetPCPortrait()

virtual void PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.SetPCPortrait ( Texture2D  portraitTexture,
string  portraitName 
)
virtual

◆ SetResponseButtons()

abstract void PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.SetResponseButtons ( Response[]  responses,
Transform  target 
)
protectedpure virtual

◆ ShowResponses()

virtual void PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.ShowResponses ( Subtitle  subtitle,
Response[]  responses,
Transform  target 
)
virtual

Shows the subtitle reminder and response buttons.

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

◆ StartTimer()

Member Data Documentation

◆ buttonAlignment

ResponseButtonAlignment PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.buttonAlignment = ResponseButtonAlignment.ToFirst

The response button alignment – that is, whether to align them to the first or the last button.

Defaults to the first button.

◆ showUnusedButtons

bool PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.showUnusedButtons = false

Specifies whether to show buttons that aren't assigned to any responses.

If you're using a "dialogue wheel," for example, you'll want to show unused buttons so the entire wheel structure is visible.

Property Documentation

◆ SubtitleReminder

abstract AbstractUISubtitleControls PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.SubtitleReminder
get

Gets the subtitle reminder controls.

The subtitle reminder controls.


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