When you attach this script to the Dialogue Manager object (or a child), it will display tracked quests using the new Unity UI. More...
Public Types | |
enum | QuestDescriptionSource { QuestDescriptionSource.Title, QuestDescriptionSource.Description } |
Public Member Functions | |
virtual void | Start () |
Wait 0.5s to update the tracker in case other start methods change the state of quests. More... | |
virtual void | ShowTracker () |
Shows the quest tracker HUD. More... | |
virtual void | HideTracker () |
Hides the quest tracker HUD entirely. More... | |
virtual void | ToggleTracker () |
Toggles the quest tracker HUD visibility. More... | |
virtual void | OnQuestTrackingEnabled (string quest) |
The quest log window sends this message when the player toggles tracking. More... | |
virtual void | OnQuestTrackingDisabled (string quest) |
The quest log window sends this message when the player toggles tracking. More... | |
void | OnConversationEnd (Transform actor) |
Quests are often completed in conversations. More... | |
virtual void | UpdateTracker () |
Public Attributes | |
string | playerPrefsToggleKey = "QuestTracker" |
Transform | container |
The UI control that will hold quest track info (instantiated copies of the quest track template). More... | |
bool | showContainerIfEmpty = true |
Tick to show the container even if there's nothing to track. More... | |
UnityUIQuestTrackTemplate | questTrackTemplate |
The quest track template. More... | |
bool | showActiveQuests = true |
Tick to show active quests in the tracker. More... | |
bool | showCompletedQuests = false |
Tick to show successful and failed quests in the tracker. More... | |
bool | showCompletedEntryText = false |
Tick to look up "Entry n Success" or "Entry n Failure" if the quest entry is in the success or failure state. More... | |
QuestDescriptionSource | questDescriptionSource = QuestDescriptionSource.Title |
bool | visibleOnStart = true |
Protected Member Functions | |
virtual IEnumerator | RefreshAtEndOfFrame () |
virtual void | AddQuestTrack (string quest) |
virtual string | GetQuestEntryText (string quest, int entryNum, QuestState entryState) |
Protected Attributes | |
List< UnityUIQuestTrackTemplate > | instantiatedItems = new List<UnityUIQuestTrackTemplate>() |
bool | isVisible = true |
Coroutine | refreshCoroutine = null |
When you attach this script to the Dialogue Manager object (or a child), it will display tracked quests using the new Unity UI.
It updates when the player toggles tracking in the quest log window and at the end of conversations. If you change the state of a quest elsewhere, you must manually call UpdateTracker().
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Hides the quest tracker HUD entirely.
void PixelCrushers.DialogueSystem.UnityUIQuestTracker.OnConversationEnd | ( | Transform | actor | ) |
Quests are often completed in conversations.
This handles changes in quest states after conversations.
actor | Actor. |
|
virtual |
The quest log window sends this message when the player toggles tracking.
quest | Quest. |
|
virtual |
The quest log window sends this message when the player toggles tracking.
quest | Quest. |
|
protectedvirtual |
|
virtual |
Shows the quest tracker HUD.
|
virtual |
Wait 0.5s to update the tracker in case other start methods change the state of quests.
|
virtual |
Toggles the quest tracker HUD visibility.
|
virtual |
Transform PixelCrushers.DialogueSystem.UnityUIQuestTracker.container |
The UI control that will hold quest track info (instantiated copies of the quest track template).
This is typically a Vertical Layout Group.
|
protected |
|
protected |
string PixelCrushers.DialogueSystem.UnityUIQuestTracker.playerPrefsToggleKey = "QuestTracker" |
QuestDescriptionSource PixelCrushers.DialogueSystem.UnityUIQuestTracker.questDescriptionSource = QuestDescriptionSource.Title |
UnityUIQuestTrackTemplate PixelCrushers.DialogueSystem.UnityUIQuestTracker.questTrackTemplate |
The quest track template.
|
protected |
bool PixelCrushers.DialogueSystem.UnityUIQuestTracker.showActiveQuests = true |
Tick to show active quests in the tracker.
bool PixelCrushers.DialogueSystem.UnityUIQuestTracker.showCompletedEntryText = false |
Tick to look up "Entry n Success" or "Entry n Failure" if the quest entry is in the success or failure state.
bool PixelCrushers.DialogueSystem.UnityUIQuestTracker.showCompletedQuests = false |
Tick to show successful and failed quests in the tracker.
bool PixelCrushers.DialogueSystem.UnityUIQuestTracker.showContainerIfEmpty = true |
Tick to show the container even if there's nothing to track.
bool PixelCrushers.DialogueSystem.UnityUIQuestTracker.visibleOnStart = true |