PixelCrushers.DialogueSystem.NGUISupport.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.NGUISupport.NGUIQuestTracker:
Collaboration diagram for PixelCrushers.DialogueSystem.NGUISupport.NGUIQuestTracker:

Public Types

enum  QuestDescriptionSource { Title , Description }
 

Public Member Functions

void Start ()
 Wait 0.5s to update the tracker in case other start methods change the state of quests.
 
void OnQuestTrackingEnabled (string quest)
 The quest log window sends this message when the player toggles tracking.
 
void OnQuestTrackingDisabled (string quest)
 The quest log window sends this message when the player toggles tracking.
 
void OnConversationEnd (Transform actor)
 Quests are often completed in conversations.
 
void UpdateTracker ()
 
void DestroyInstantiatedItems ()
 

Public Attributes

Transform container
 The UI control that will hold quest track info (instantiated copies of the quest track template).
 
NGUIQuestTrackTemplate questTrackTemplate
 The quest track template.
 
QuestDescriptionSource questDescriptionSource = QuestDescriptionSource.Title
 
bool showCompletedEntries = false
 

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.NGUISupport.NGUIQuestTracker.DestroyInstantiatedItems ( )
inline

◆ OnConversationEnd()

void PixelCrushers.DialogueSystem.NGUISupport.NGUIQuestTracker.OnConversationEnd ( Transform  actor)
inline

Quests are often completed in conversations.

This handles changes in quest states after conversations.

Parameters
actorActor.

◆ OnQuestTrackingDisabled()

void PixelCrushers.DialogueSystem.NGUISupport.NGUIQuestTracker.OnQuestTrackingDisabled ( string  quest)
inline

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

Parameters
questQuest.

◆ OnQuestTrackingEnabled()

void PixelCrushers.DialogueSystem.NGUISupport.NGUIQuestTracker.OnQuestTrackingEnabled ( string  quest)
inline

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

Parameters
questQuest.

◆ Start()

void PixelCrushers.DialogueSystem.NGUISupport.NGUIQuestTracker.Start ( )
inline

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

◆ UpdateTracker()

void PixelCrushers.DialogueSystem.NGUISupport.NGUIQuestTracker.UpdateTracker ( )
inline

Member Data Documentation

◆ container

Transform PixelCrushers.DialogueSystem.NGUISupport.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.NGUISupport.NGUIQuestTracker.questDescriptionSource = QuestDescriptionSource.Title

◆ questTrackTemplate

NGUIQuestTrackTemplate PixelCrushers.DialogueSystem.NGUISupport.NGUIQuestTracker.questTrackTemplate

The quest track template.

◆ showCompletedEntries

bool PixelCrushers.DialogueSystem.NGUISupport.NGUIQuestTracker.showCompletedEntries = false

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