Response menu controls for UnityDialogueUI. More...
Public Member Functions | |
override void | SetPCPortrait (Sprite portraitSprite, string portraitName) |
Sets the PC portrait name and sprite to use in the response menu. | |
override void | SetActorPortraitSprite (string actorName, Sprite portraitSprite) |
Sets the portrait sprite 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 | |
GUIControl | panel |
The alert panel. | |
GUILabel | pcImage |
The PC portrait image. | |
GUILabel | pcName |
The PC portrait name. | |
UnitySubtitleControls | subtitleReminder |
The reminder of the last subtitle. | |
GUIProgressBar | timer |
The (optional) timer. | |
GUIButton[] | 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. | |
Response menu controls for UnityDialogueUI.
|
inlineprotected |
Clears the response buttons.
|
inline |
This method is called if the timer runs out.
The Dialogue Manager can be configured to take different actions on timeout.
|
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.
value | Value (true for active; otherwise inactive). |
|
inlinevirtual |
Sets the portrait sprite 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 sprite.
actorName | Actor name in database. |
portraitSprite | Portrait sprite. |
Reimplemented from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.
|
inlinevirtual |
Sets the PC portrait name and sprite to use in the response menu.
portraitSprite | Portrait sprite. |
portraitName | Portrait name. |
Reimplemented from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.
|
inlineprotected |
Sets the response buttons.
responses | Responses. |
target | Target that will receive OnClick events from the buttons. |
|
inline |
Starts the timer.
timeout | Timeout duration in seconds. |
GUIButton [] PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.buttons |
The response buttons.
GUIControl PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.panel |
The alert panel.
A panel is optional, but you may want one so you can include a background image, panel-wide effects, etc.
GUILabel PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.pcImage |
The PC portrait image.
GUILabel PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.pcName |
The PC portrait name.
UnitySubtitleControls PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.subtitleReminder |
The reminder of the last subtitle.
GUIProgressBar PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.timer |
The (optional) timer.
|
get |