Response menu controls for UnityDialogueUI.
More...
|
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...
|
|
void | Show () |
| Shows the controls by setting them active. More...
|
|
void | Hide () |
| Hides the controls by setting them inactive. More...
|
|
◆ ClearResponseButtons()
override void PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.ClearResponseButtons |
( |
| ) |
|
|
protectedvirtual |
◆ OnTimeout()
void PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.OnTimeout |
( |
| ) |
|
This method is called if the timer runs out.
The Dialogue Manager can be configured to take different actions on timeout.
◆ SetActive()
override void PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.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
-
value | Value (true for active; otherwise inactive). |
Implements PixelCrushers.DialogueSystem.AbstractUIControls.
◆ SetActorPortraitTexture()
override void PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.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
-
actorName | Actor name in database. |
portraitTexture | Portrait texture. |
Reimplemented from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.
◆ SetPCPortrait()
override void PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.SetPCPortrait |
( |
Texture2D |
portraitTexture, |
|
|
string |
portraitName |
|
) |
| |
|
virtual |
◆ SetResponseButtons()
override void PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.SetResponseButtons |
( |
Response[] |
responses, |
|
|
Transform |
target |
|
) |
| |
|
protectedvirtual |
◆ StartTimer()
override void PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.StartTimer |
( |
float |
timeout | ) |
|
|
virtual |
◆ buttons
GUIButton [] PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.buttons |
◆ panel
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.
◆ pcImage
GUILabel PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.pcImage |
◆ pcName
GUILabel PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.pcName |
◆ subtitleReminder
The reminder of the last subtitle.
◆ timer
GUIProgressBar PixelCrushers.DialogueSystem.UnityGUI.UnityResponseMenuControls.timer |
◆ SubtitleReminder
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/Dialogue System/Dev/Source/Assets/Dialogue System/Scripts/Supplemental/Unity GUI/Unity Dialogue UI/Dialogue GUI Controls/UnityResponseMenuControls.cs