When you attach this script to the Dialogue Manager object (or a child), it will display tracked quests using NGUI. 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... | |
NGUIQuestTrackTemplate | questTrackTemplate |
The quest track template. More... | |
QuestDescriptionSource | questDescriptionSource = QuestDescriptionSource.Title |
When you attach this script to the Dialogue Manager object (or a child), it will display tracked quests using NGUI.
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.NGUI.NGUIQuestTracker.DestroyInstantiatedItems | ( | ) |
void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.OnConversationEnd | ( | Transform | actor | ) |
Quests are often completed in conversations.
This handles changes in quest states after conversations.
actor | Actor. |
void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.OnQuestTrackingDisabled | ( | string | quest | ) |
The quest log window sends this message when the player toggles tracking.
quest | Quest. |
void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.OnQuestTrackingEnabled | ( | string | quest | ) |
The quest log window sends this message when the player toggles tracking.
quest | Quest. |
void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.Start | ( | ) |
Wait 0.5s to update the tracker in case other start methods change the state of quests.
void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.UpdateTracker | ( | ) |
Transform PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.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.NGUI.NGUIQuestTracker.questDescriptionSource = QuestDescriptionSource.Title |
NGUIQuestTrackTemplate PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.questTrackTemplate |
The quest track template.