This is the Standard UI implementation of the abstract QuestLogWindow class. More...
Public Member Functions | |
override void | Awake () |
override void | OpenWindow (System.Action openedWindowHandler) |
Open the window by showing the main panel. | |
override void | CloseWindow (System.Action closedWindowHandler) |
Close the window by hiding the main panel. | |
virtual void | Toggle () |
virtual bool | IsGroupExpanded (string groupName) |
True if the group is expanded in the UI. | |
virtual void | ToggleGroup (string groupName) |
Toggles whether a group is expanded or not. | |
virtual void | Repaint () |
override void | OnQuestListUpdated () |
Called when the quest list has been updated – for example, when switching between active and completed quests. | |
virtual void | SelectQuest (string questTitle) |
virtual void | OnToggleTracking (bool value, object data) |
Toggles quest tracking. | |
override void | ConfirmAbandonQuest (string title, System.Action confirmAbandonQuestHandler) |
Opens the abandon confirmation popup. | |
virtual void | AbandonQuestConfirmed () |
Public Member Functions inherited from PixelCrushers.DialogueSystem.QuestLogWindow | |
virtual void | OpenWindow (Action openedWindowHandler) |
Opens the window. | |
virtual void | CloseWindow (Action closedWindowHandler) |
Closes the window. | |
virtual void | ConfirmAbandonQuest (string title, Action confirmedAbandonQuestHandler) |
Asks the player to confirm abandonment of a quest. | |
virtual void | Open () |
Opens the quest window. | |
virtual void | Close () |
Closes the quest log window. | |
virtual bool | IsQuestVisible (string questTitle) |
virtual string | GetLocalizedText (string fieldName) |
Gets the localized text for a field name. | |
virtual bool | IsSelectedQuest (QuestInfo questInfo) |
Determines whether the specified questInfo is for the currently-selected quest. | |
void | ClickClose (object data) |
Your GUI close button should call this. | |
virtual void | ClickShowActiveQuests (object data) |
Your GUI "show active quests" button should call this. | |
virtual void | ClickShowCompletedQuests (object data) |
Your GUI "show completed quests" button should call this. | |
virtual void | ClickQuest (object data) |
Your GUI should call this when the player clicks on a quest to expand or close it. | |
virtual void | ClickAbandonQuest (object data) |
Your GUI should call this when the player clicks to abandon a quest. | |
virtual void | ClickTrackQuest (object data) |
Your GUI should call this when the player clicks to toggle quest tracking. | |
virtual void | ClickShowActiveQuestsButton () |
void | ClickShowCompletedQuestsButton () |
void | ClickCloseButton () |
void | ClickAbandonQuestButton () |
void | ClickTrackQuestButton () |
void | UpdateTracker () |
Protected Member Functions | |
virtual void | InitializeTemplates () |
void | SetStateToggleButtons () |
virtual StandardUIQuestTitleButtonTemplate | GetQuestTitleTemplate (QuestInfo quest) |
virtual StandardUIQuestTitleButtonTemplate | GetSelectedQuestTitleTemplate (QuestInfo quest) |
IEnumerator | SelectElement (UnityEngine.UI.Selectable elementToSelect) |
virtual void | AddShowDetailsOnSelect (UnityEngine.UI.Button button, string target) |
virtual void | OnClickGroup (string groupName, StandardUIFoldoutTemplate groupFoldout) |
virtual void | ShowDetailsOnSelect (string questTitle) |
virtual void | OnClickQuest (string questTitle) |
virtual void | RepaintSelectedQuest (QuestInfo quest) |
virtual StandardUITextTemplate | GetEntryTemplate (QuestState state) |
override void | ShowQuests (QuestState questStateMask) |
Protected Member Functions inherited from PixelCrushers.DialogueSystem.QuestLogWindow | |
virtual void | Start () |
virtual void | OnEnable () |
virtual void | OnDisable () |
void | RegisterForUpdateTrackerEvents () |
void | UnregisterFromUpdateTrackerEvents () |
virtual void | OnOpenedWindow () |
virtual void | OnClosedWindow () |
virtual void | PauseGameplay () |
virtual void | ResumeGameplay () |
virtual QuestInfo | GetQuestInfo (string group, string title) |
virtual string | GetNoQuestsMessage (QuestState questStateMask) |
Gets the "no quests" message for a quest state (active or success|failure). | |
virtual void | OnConfirmAbandonQuest () |
Your GUI should call this when the player confirms abandonment of a quest. | |
IEnumerator | UpdateQuestDisplayAtEndOfFrame () |
Protected Attributes | |
List< string > | expandedGroupNames = new List<string>() |
System.Action | confirmAbandonQuestHandler = null |
string | mostRecentSelectedActiveQuest = null |
string | mostRecentSelectedCompletedQuest = null |
Protected Attributes inherited from PixelCrushers.DialogueSystem.QuestLogWindow | |
QuestState | currentQuestStateMask = ActiveQuestStateMask |
The current quest state mask. | |
float | previousTimeScale = 1 |
The previous time scale prior to opening the window. | |
Coroutine | refreshCoroutine = null |
bool | started = false |
Properties | |
StandardUIInstancedContentManager | selectionPanelContentManager [get, set] |
StandardUIInstancedContentManager | detailsPanelContentManager [get, set] |
UnityEngine.EventSystems.EventSystem | eventSystem [get, set] |
Properties inherited from PixelCrushers.DialogueSystem.QuestLogWindow | |
bool | isOpen [get, protected set] |
Indicates whether the quest log window is currently open. | |
QuestInfo[] | quests [get, protected set] |
The current list of quests. | |
string[] | groups [get, protected set] |
The current list of quest groups. | |
string | selectedQuest [get, protected set] |
The title of the currently-selected quest. | |
string | noQuestsMessage [get, protected set] |
The message to show if Quests[] is empty. | |
virtual bool | isShowingActiveQuests [get] |
Indicates whether the window is showing active quests or completed quests. | |
Properties inherited from PixelCrushers.IEventSystemUser |
Additional Inherited Members | |
Public Types inherited from PixelCrushers.DialogueSystem.QuestLogWindow | |
enum | QuestHeadingSource { Name , Description } |
Static Protected Attributes inherited from PixelCrushers.DialogueSystem.QuestLogWindow | |
const QuestState | ActiveQuestStateMask = QuestState.Active | QuestState.ReturnToNPC |
This is the Standard UI implementation of the abstract QuestLogWindow class.
|
inlinevirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
Reimplemented from PixelCrushers.DialogueSystem.QuestLogWindow.
|
inline |
Close the window by hiding the main panel.
Re-enable the bark UI.
closedWindowHandler | Closed window handler. |
|
inline |
Opens the abandon confirmation popup.
title | Quest title. |
confirmAbandonQuestHandler | Confirm abandon quest handler. |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
True if the group is expanded in the UI.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
Called when the quest list has been updated – for example, when switching between active and completed quests.
Your implementation may override this to do processing.
Reimplemented from PixelCrushers.DialogueSystem.QuestLogWindow.
|
inlinevirtual |
Toggles quest tracking.
value | Tracking on or off. |
data | Quest name (string). |
|
inline |
Open the window by showing the main panel.
openedWindowHandler | Opened window handler. |
|
inlinevirtual |
|
inlineprotectedvirtual |
|
inlineprotected |
|
inlinevirtual |
|
inlineprotected |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Reimplemented from PixelCrushers.DialogueSystem.QuestLogWindow.
|
inlinevirtual |
|
inlinevirtual |
Toggles whether a group is expanded or not.
groupName | Group to toggle. |
StandardUIButtonTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.abandonButtonTemplate |
UIPanel PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.abandonQuestPanel |
UITextField PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.abandonQuestTitleText |
StandardUIQuestTitleButtonTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.activeQuestHeadingTemplate |
UnityEngine.UI.Button PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.activeQuestsButton |
bool PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.addEventSystemIfNeeded = true |
StandardUIQuestTitleButtonTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.completedQuestHeadingTemplate |
UnityEngine.UI.Button PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.completedQuestsButton |
|
protected |
|
protected |
string PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.foldoutToSelect = null |
bool PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.keepGroupsExpanded = false |
UIPanel PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.mainPanel |
|
protected |
|
protected |
UnityEvent PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.onClose = new UnityEvent() |
UnityEvent PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.onOpen = new UnityEvent() |
StandardUITextTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.questDescriptionTextTemplate |
RectTransform PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.questDetailsContentContainer |
StandardUITextTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.questEntryActiveTextTemplate |
StandardUITextTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.questEntryFailureTextTemplate |
StandardUITextTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.questEntrySuccessTextTemplate |
StandardUIFoldoutTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.questGroupTemplate |
StandardUITextTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.questHeadingTextTemplate |
RectTransform PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.questSelectionContentContainer |
string PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.questTitleToSelect = null |
StandardUIQuestTitleButtonTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.selectedActiveQuestHeadingTemplate |
StandardUIQuestTitleButtonTemplate PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.selectedCompletedQuestHeadingTemplate |
bool PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.selectFirstQuestOnOpen = false |
bool PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.showDetailsOnSelect = false |
UITextField PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.showingActiveQuestsHeading |
UITextField PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.showingCompletedQuestHeading |
bool PixelCrushers.DialogueSystem.StandardUIQuestLogWindow.showNoQuestsText = true |
|
getsetprotected |
|
getset |
Implements PixelCrushers.IEventSystemUser.
|
getsetprotected |