Response menu controls for TK2DDialogueUI.
More...
|
override void | SetPCPortrait (Texture2D portraitTexture, string portraitName) |
|
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.
|
|
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.
|
|
Response menu controls for TK2DDialogueUI.
◆ ClearResponseButtons()
override void PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.ClearResponseButtons |
( |
| ) |
|
|
inlineprotected |
Clears the response buttons.
◆ OnTimeout()
void PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.OnTimeout |
( |
| ) |
|
|
inline |
This method is called if the timer runs out.
It selects the first response.
◆ SetActive()
override void PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.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
-
value | Value (true for active; otherwise inactive). |
◆ SetPCPortrait()
override void PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.SetPCPortrait |
( |
Texture2D |
portraitTexture, |
|
|
string |
portraitName |
|
) |
| |
|
inlinevirtual |
◆ SetResponseButtons()
override void PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.SetResponseButtons |
( |
Response[] |
responses, |
|
|
Transform |
target |
|
) |
| |
|
inlineprotected |
Sets the response buttons.
- Parameters
-
responses | Responses. |
target | Target that will receive OnClick events from the buttons. |
◆ StartTimer()
override void PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.StartTimer |
( |
float |
timeout | ) |
|
|
inline |
Starts the timer.
- Parameters
-
timeout | Timeout duration in seconds. |
◆ buttons
TK2DResponseButton [] PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.buttons |
◆ panel
tk2dUILayout PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.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
tk2dBaseSprite PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.pcImage |
The label that will show the portrait image of the PC on the response menu.
◆ pcName
tk2dTextMesh PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.pcName |
The label that will show the name of the PC on the response menu.
◆ subtitleReminder
TK2DSubtitleControls PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.subtitleReminder |
The reminder of the last subtitle.
◆ timer
TK2DTimer PixelCrushers.DialogueSystem.TK2DSupport.TK2DResponseMenuControls.timer |
◆ subtitleReminderControls
The documentation for this class was generated from the following file:
- C:/Dev/Dialogue System/Dev/Integration2/TK2D Integration/Assets/Pixel Crushers/Dialogue System/Third Party Support/TK2D Support/Scripts/TK2D Dialogue UI/TK2DResponseMenuControls.cs