PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker Class Reference

When you attach this script to the Dialogue Manager object (or a child), it will display tracked quests using NGUI. More...

Inheritance diagram for PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker:
Collaboration diagram for PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker:

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
 

Detailed Description

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().

Member Enumeration Documentation

◆ QuestDescriptionSource

Member Function Documentation

◆ DestroyInstantiatedItems()

void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.DestroyInstantiatedItems ( )

◆ OnConversationEnd()

void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.OnConversationEnd ( Transform  actor)

Quests are often completed in conversations.

This handles changes in quest states after conversations.

Parameters
actorActor.

◆ OnQuestTrackingDisabled()

void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.OnQuestTrackingDisabled ( string  quest)

The quest log window sends this message when the player toggles tracking.

Parameters
questQuest.

◆ OnQuestTrackingEnabled()

void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.OnQuestTrackingEnabled ( string  quest)

The quest log window sends this message when the player toggles tracking.

Parameters
questQuest.

◆ Start()

void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.Start ( )

Wait 0.5s to update the tracker in case other start methods change the state of quests.

◆ UpdateTracker()

void PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.UpdateTracker ( )

Member Data Documentation

◆ container

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

QuestDescriptionSource PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.questDescriptionSource = QuestDescriptionSource.Title

◆ questTrackTemplate

NGUIQuestTrackTemplate PixelCrushers.DialogueSystem.NGUI.NGUIQuestTracker.questTrackTemplate

The quest track template.


The documentation for this class was generated from the following file: