Response menu controls for UnityUIDialogueUI. 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. | |
void | SetupTemplateButtonNavigation () |
void | DestroyInstantiatedButtons () |
void | NotifyContentChanged () |
override void | StartTimer (float timeout) |
Starts the timer. | |
virtual void | OnTimeout () |
This method is called if the timer runs out. | |
void | DefaultTimeoutHandler () |
void | AutoFocus (GameObject lastSelection=null, bool allowStealFocus=true) |
Auto-focuses the first response. | |
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 | |
UnityEngine.UI.Graphic | panel |
The panel containing the response menu controls. | |
UnityEngine.UI.Image | pcImage |
The PC portrait image to show during the response menu. | |
UnityEngine.UI.Text | pcName |
The label that will show the PC name. | |
UnityUISubtitleControls | subtitleReminder |
The reminder of the last subtitle. | |
UnityEngine.UI.Slider | timer |
The (optional) timer. | |
bool | selectCurrentOnTimeout = false |
If ticked, then select the currently-focused response on timeout. | |
UnityUIResponseButton[] | buttons |
The response buttons, if you want to specify buttons at design time. | |
UnityUIResponseButton | buttonTemplate |
UnityEngine.UI.Graphic | buttonTemplateHolder |
UnityEngine.UI.Scrollbar | buttonTemplateScrollbar |
float | buttonTemplateScrollbarResetValue = 1 |
bool | explicitNavigationForTemplateButtons = true |
bool | loopExplicitNavigation = false |
UIAutonumberSettings | autonumber = new UIAutonumberSettings() |
UIAnimationTransitions | animationTransitions = new UIAnimationTransitions() |
UnityEvent | onContentChanged = new UnityEvent() |
List< GameObject > | instantiatedButtons = new List<GameObject>() |
The instantiated buttons. | |
System.Action | TimeoutHandler = null |
Assign this delegate if you want it to replace the default timeout handler. | |
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 | |
bool | isVisible [get] |
UIShowHideController | showHideController [get] |
override AbstractUISubtitleControls | subtitleReminderControls [get] |
Properties inherited from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls | |
AbstractUISubtitleControls | subtitleReminderControls [get] |
Gets the subtitle reminder controls. | |
Response menu controls for UnityUIDialogueUI.
|
inline |
Auto-focuses the first response.
Useful for gamepads.
|
inlineprotected |
Clears the response buttons.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
This method is called if the timer runs out.
It selects the first response.
|
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 |
|
inline |
Starts the timer.
timeout | Timeout duration in seconds. |
UIAnimationTransitions PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.animationTransitions = new UIAnimationTransitions() |
UIAutonumberSettings PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.autonumber = new UIAutonumberSettings() |
UnityUIResponseButton [] PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.buttons |
The response buttons, if you want to specify buttons at design time.
UnityUIResponseButton PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.buttonTemplate |
UnityEngine.UI.Graphic PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.buttonTemplateHolder |
UnityEngine.UI.Scrollbar PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.buttonTemplateScrollbar |
float PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.buttonTemplateScrollbarResetValue = 1 |
bool PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.explicitNavigationForTemplateButtons = true |
List<GameObject> PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.instantiatedButtons = new List<GameObject>() |
The instantiated buttons.
These are only valid during a specific response menu, and only if you're using templates. Each showing of the response menu clears this list and re-populates it with new buttons.
bool PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.loopExplicitNavigation = false |
UnityEvent PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.onContentChanged = new UnityEvent() |
UnityEngine.UI.Graphic PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.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.
UnityEngine.UI.Image PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.pcImage |
The PC portrait image to show during the response menu.
UnityEngine.UI.Text PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.pcName |
The label that will show the PC name.
bool PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.selectCurrentOnTimeout = false |
If ticked, then select the currently-focused response on timeout.
UnityUISubtitleControls PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.subtitleReminder |
The reminder of the last subtitle.
System.Action PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.TimeoutHandler = null |
Assign this delegate if you want it to replace the default timeout handler.
UnityEngine.UI.Slider PixelCrushers.DialogueSystem.UnityUIResponseMenuControls.timer |
The (optional) timer.
|
get |
|
get |
|
get |