When you attach this script to the Dialogue Manager object (or a child), it will display tracked quests using the new Unity UI and TextMeshPro. More...
Public Types | |
enum | QuestDescriptionSource { QuestDescriptionSource.Title, QuestDescriptionSource.Description } |
Public Member Functions | |
void | Start () |
Wait 0.5s to update the tracker in case other start methods change the state of quests. More... | |
void | OnQuestTrackingEnabled (string quest) |
The quest log window sends this message when the player toggles tracking. More... | |
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... | |
void | UpdateTracker () |
void | DestroyInstantiatedItems () |
Public Attributes | |
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... | |
TextMeshProQuestTrackTemplate | 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 |
When you attach this script to the Dialogue Manager object (or a child), it will display tracked quests using the new Unity UI and TextMeshPro.
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().
void PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.DestroyInstantiatedItems | ( | ) |
void PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.OnConversationEnd | ( | Transform | actor | ) |
Quests are often completed in conversations.
This handles changes in quest states after conversations.
actor | Actor. |
void PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.OnQuestTrackingDisabled | ( | string | quest | ) |
The quest log window sends this message when the player toggles tracking.
quest | Quest. |
void PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.OnQuestTrackingEnabled | ( | string | quest | ) |
The quest log window sends this message when the player toggles tracking.
quest | Quest. |
void PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.Start | ( | ) |
Wait 0.5s to update the tracker in case other start methods change the state of quests.
void PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.UpdateTracker | ( | ) |
Transform PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.container |
The UI control that will hold quest track info (instantiated copies of the quest track template).
This is typically a Vertical Layout Group.
QuestDescriptionSource PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.questDescriptionSource = QuestDescriptionSource.Title |
TextMeshProQuestTrackTemplate PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.questTrackTemplate |
The quest track template.
bool PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.showActiveQuests = true |
Tick to show active quests in the tracker.
bool PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.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.TextMeshPro.TextMeshProQuestTracker.showCompletedQuests = false |
Tick to show successful and failed quests in the tracker.
bool PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProQuestTracker.showContainerIfEmpty = true |
Tick to show the container even if there's nothing to track.