Manages response menus for StandardDialogueUI. More...
Public Member Functions | |
void | Initialize (StandardUIMenuPanel[] menuPanels, StandardUIMenuPanel defaultMenuPanel, bool useFirstResponseForMenuPortrait) |
void | ClearCache () |
virtual void | SetActorMenuPanelNumber (DialogueActor dialogueActor, MenuPanelNumber menuPanelNumber) |
Changes a dialogue actor's menu panel for the current conversation. | |
void | ForceOverrideMenuPanel (StandardUIMenuPanel panel) |
Forces menus to use a specific panel regardless of any other default or override settings. | |
void | OverrideActorMenuPanel (Transform actorTransform, MenuPanelNumber menuPanelNumber, StandardUIMenuPanel customPanel) |
For speakers who do not have DialogueActor components, this method overrides the actor's default panel. | |
void | OverrideActorMenuPanel (Actor actor, MenuPanelNumber menuPanelNumber, StandardUIMenuPanel customPanel) |
For speakers who do not have a GameObject, this method overrides the actor's default panel. | |
virtual StandardUIMenuPanel | GetPanel (Subtitle lastSubtitle, Response[] responses) |
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) |
override void | ShowResponses (Subtitle lastSubtitle, Response[] responses, Transform target) |
Shows a response menu. | |
virtual void | MakeButtonsNonclickable () |
Makes the current menu panel's buttons non-clickable. | |
void | Close () |
Close all panels. | |
bool | AreAnyPanelsClosing () |
override void | StartTimer (float timeout) |
Starts the timer. | |
void | DefaultTimeoutHandler () |
Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls | |
void | StartTimer (float timeout) |
Starts the timer. | |
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 | |
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 | |
Transform | GetActorTransformFromID (int actorID) |
StandardUIMenuPanel | GetDialogueActorPanel (DialogueActor dialogueActor) |
StandardUIMenuPanel | GetPanelFromNumber (MenuPanelNumber menuPanelNumber, StandardUIMenuPanel customPanel) |
override void | ClearResponseButtons () |
override void | SetResponseButtons (Response[] responses, Transform target) |
Protected Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls | |
void | ClearResponseButtons () |
Clears the response buttons. | |
void | SetResponseButtons (Response[] responses, Transform target) |
Sets the response buttons. | |
Protected Attributes | |
List< StandardUIMenuPanel > | m_builtinPanels = new List<StandardUIMenuPanel>() |
StandardUIMenuPanel | m_defaultPanel = null |
Dictionary< Transform, StandardUIMenuPanel > | m_actorPanelCache = new Dictionary<Transform, StandardUIMenuPanel>() |
Dictionary< int, StandardUIMenuPanel > | m_actorIdPanelCache = new Dictionary<int, StandardUIMenuPanel>() |
StandardUIMenuPanel | m_currentPanel = null |
StandardUIMenuPanel | m_forcedOverridePanel = null |
Sprite | m_pcPortraitSprite = null |
string | m_pcPortraitName = null |
bool | useFirstResponseForPortrait = false |
Properties | |
override AbstractUISubtitleControls | subtitleReminderControls [get] |
StandardUIMenuPanel | defaultPanel [get, set] |
virtual bool | allowDialogueActorCustomPanels = true [get, set] |
Properties inherited from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls | |
AbstractUISubtitleControls | subtitleReminderControls [get] |
Gets the subtitle reminder controls. | |
Manages response menus for StandardDialogueUI.
|
inline |
|
inline |
|
inlineprotected |
|
inline |
Close all panels.
|
inline |
|
inline |
Forces menus to use a specific panel regardless of any other default or override settings.
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
|
inlineprotected |
|
inline |
|
inlinevirtual |
Makes the current menu panel's buttons non-clickable.
Typically called by the dialogue UI as soon as a button has been clicked to make sure the player can't click another one while the menu is playing its hide animation.
|
inline |
For speakers who do not have a GameObject, this method overrides the actor's default panel.
|
inline |
For speakers who do not have DialogueActor components, this method overrides the actor's default panel.
|
inline |
|
inlinevirtual |
Changes a dialogue actor's menu panel for the current conversation.
|
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 |
|
inlinevirtual |
Shows a response menu.
lastSubtitle | The last subtitle shown. Used to determine which menu panel to use. |
responses | Responses to show in menu panel. |
target | Send OnClick events to this GameObject (the dialogue UI). |
Reimplemented from PixelCrushers.DialogueSystem.AbstractUIResponseMenuControls.
|
inline |
Starts the timer.
timeout | Timeout duration in seconds. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
System.Action PixelCrushers.DialogueSystem.StandardUIResponseMenuControls.timeoutHandler = null |
Assign this delegate if you want it to replace the default timeout handler.
|
protected |
|
getset |
|
getset |
|
get |