Response menu controls for NGUIDialogueUI.
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.NGUI.NGUIResponseMenuControls.ClearResponseButtons |
( |
| ) |
|
|
protectedvirtual |
◆ OnTimeout()
void PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.OnTimeout |
( |
| ) |
|
This method is called if the timer runs out.
It selects the first response.
◆ SetActive()
override void PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.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.NGUI.NGUIResponseMenuControls.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.NGUI.NGUIResponseMenuControls.SetPCPortrait |
( |
Texture2D |
portraitTexture, |
|
|
string |
portraitName |
|
) |
| |
|
virtual |
◆ SetResponseButtons()
override void PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.SetResponseButtons |
( |
Response[] |
responses, |
|
|
Transform |
target |
|
) |
| |
|
protectedvirtual |
◆ StartTimer()
override void PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.StartTimer |
( |
float |
timeout | ) |
|
|
virtual |
◆ buttons
◆ panel
UIPanel PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.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
UITexture PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.pcImage |
The label that will show the PC portrait image.
◆ pcName
UILabel PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.pcName |
The label that will show the PC name.
◆ subtitleReminder
The reminder of the last subtitle.
◆ timer
UISlider PixelCrushers.DialogueSystem.NGUI.NGUIResponseMenuControls.timer |
◆ SubtitleReminder
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/Dialogue System/Dev/Integration/NGUI3 Integration/Assets/Dialogue System/Third Party Support/NGUI/Scripts/NGUI Dialogue UI/NGUI Dialogue Controls/NGUIResponseMenuControls.cs