Response menu controls for NGUIDialogueUI.
More...
|
override void | SetPCPortrait (Sprite portraitSprite, string portraitName) |
| Sets the PC portrait name and texture to use in the response menu.
|
|
override void | SetActorPortraitSprite (string actorName, Sprite portraitSprite) |
| Sets the portrait texture 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.
|
|
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 NGUIDialogueUI.
◆ ClearResponseButtons()
override void PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.ClearResponseButtons |
( |
| ) |
|
|
inlineprotected |
Clears the response buttons.
◆ OnTimeout()
void PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.OnTimeout |
( |
| ) |
|
|
inline |
This method is called if the timer runs out.
It selects the first response.
◆ SetActive()
override void PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.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). |
◆ SetActorPortraitSprite()
override void PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.SetActorPortraitSprite |
( |
string |
actorName, |
|
|
Sprite |
portraitSprite |
|
) |
| |
|
inlinevirtual |
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.NGUISupport.NGUIResponseMenuControls.SetPCPortrait |
( |
Sprite |
portraitSprite, |
|
|
string |
portraitName |
|
) |
| |
|
inlinevirtual |
◆ SetResponseButtons()
override void PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.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.NGUISupport.NGUIResponseMenuControls.StartTimer |
( |
float |
timeout | ) |
|
|
inline |
Starts the timer.
- Parameters
-
timeout | Timeout duration in seconds. |
◆ buttons
NGUIResponseButton [] PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.buttons |
◆ panel
global.UIPanel PixelCrushers.DialogueSystem.NGUISupport.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.NGUISupport.NGUIResponseMenuControls.pcImage |
The label that will show the PC portrait image.
◆ pcName
UILabel PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.pcName |
The label that will show the PC name.
◆ subtitleReminder
NGUISubtitleControls PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.subtitleReminder |
The reminder of the last subtitle.
◆ timer
UISlider PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseMenuControls.timer |
◆ subtitleReminderControls
The documentation for this class was generated from the following file:
- C:/Dev/Dialogue System/Dev/Integration2/NGUI Integration/Assets/Pixel Crushers/Dialogue System/Third Party Support/NGUI Support/Scripts/NGUI Dialogue UI/NGUI Dialogue Controls/NGUIResponseMenuControls.cs