Loading...
Searching...
No Matches
PixelCrushers.QuestMachine.QuestEditorCounterWizard Class Reference

Wizard that adds a counter and condition node. More...

Inheritance diagram for PixelCrushers.QuestMachine.QuestEditorCounterWizard:
Collaboration diagram for PixelCrushers.QuestMachine.QuestEditorCounterWizard:

Public Member Functions

 QuestEditorCounterWizard (int clickedIndex)
 
override bool Draw ()
 
- Public Member Functions inherited from PixelCrushers.QuestMachine.QuestEditorWizard
 QuestEditorWizard (int clickedIndex)
 
bool Draw ()
 Draws the wizard.
 

Protected Member Functions

virtual void AddCounterAndNode ()
 
void AddBodyContent (List< QuestContent > contentList, string text)
 
string AddCounterTags (string text)
 
- Protected Member Functions inherited from PixelCrushers.QuestMachine.QuestEditorWizard
QuestNode GetParentNode (Quest quest)
 
QuestNode GetLastNodeBeforeSuccess (Quest quest)
 
void AddSuccessNode (Quest quest, QuestNode node)
 
QuestContent CreateBodyContent (string text)
 
void AddAndSaveSubasset (QuestSubasset subasset)
 

Protected Attributes

string counterName = "orcsKilled"
 
int min = 0
 
int max = 99
 
string incrementMessage = "Killed:Orc"
 
string hudInstructionsText = "Kill {1} Orcs"
 
string hudCountText = "{0}/{1} Killed"
 
string journalText = "{QUESTGIVER} has asked you to kill {1} Orcs."
 
string dialogueText = "I want you to kill {1} Orcs."
 
bool leadsToSuccess = false
 
GUIContent incrementGUIContent = new GUIContent("Message", "To increment, listen for this message. Parameter is separated by colon (:).")
 
GUIContent hudInstructionsGUIContent = new GUIContent("HUD Text", "Show this alert/journal text when counter node becomes active. {0} is current counter value, {1} is max value. Leave blank to skip.")
 
GUIContent hudCountGUIContent = new GUIContent("HUD Count", "{0} is current value, {1} is max value.")
 
GUIContent journalTextGUIContent = new GUIContent("Journal Text", "Show this journal text when this node is active. {0} is current counter value, {1} is max value.")
 
GUIContent dialogueTextGUIContent = new GUIContent("Dialogue Text", "Show this dialogue content when this node is active. {0} is current counter value, {1} is max value.")
 
GUIContent leadsToSuccessGUIContent = new GUIContent("Leads to Success", "Add a success node immediately after this node.")
 

Static Protected Attributes

const string helpText = "This wizard adds a counter and a condition node that requires the counter to reach a specified value. The fields have been set to example values. Change them and click Add. {0} will be replaced by the current counter value, {1} by the goal value."
 

Additional Inherited Members

- Properties inherited from PixelCrushers.QuestMachine.QuestEditorWizard
int clickedIndex [get, set]
 

Detailed Description

Wizard that adds a counter and condition node.

Constructor & Destructor Documentation

◆ QuestEditorCounterWizard()

PixelCrushers.QuestMachine.QuestEditorCounterWizard.QuestEditorCounterWizard ( int  clickedIndex)
inline

Member Function Documentation

◆ AddBodyContent()

void PixelCrushers.QuestMachine.QuestEditorCounterWizard.AddBodyContent ( List< QuestContent contentList,
string  text 
)
inlineprotected

◆ AddCounterAndNode()

virtual void PixelCrushers.QuestMachine.QuestEditorCounterWizard.AddCounterAndNode ( )
inlineprotectedvirtual

◆ AddCounterTags()

string PixelCrushers.QuestMachine.QuestEditorCounterWizard.AddCounterTags ( string  text)
inlineprotected

◆ Draw()

override bool PixelCrushers.QuestMachine.QuestEditorCounterWizard.Draw ( )
inline

Member Data Documentation

◆ counterName

string PixelCrushers.QuestMachine.QuestEditorCounterWizard.counterName = "orcsKilled"
protected

◆ dialogueText

string PixelCrushers.QuestMachine.QuestEditorCounterWizard.dialogueText = "I want you to kill {1} Orcs."
protected

◆ dialogueTextGUIContent

GUIContent PixelCrushers.QuestMachine.QuestEditorCounterWizard.dialogueTextGUIContent = new GUIContent("Dialogue Text", "Show this dialogue content when this node is active. {0} is current counter value, {1} is max value.")
protected

◆ helpText

const string PixelCrushers.QuestMachine.QuestEditorCounterWizard.helpText = "This wizard adds a counter and a condition node that requires the counter to reach a specified value. The fields have been set to example values. Change them and click Add. {0} will be replaced by the current counter value, {1} by the goal value."
staticprotected

◆ hudCountGUIContent

GUIContent PixelCrushers.QuestMachine.QuestEditorCounterWizard.hudCountGUIContent = new GUIContent("HUD Count", "{0} is current value, {1} is max value.")
protected

◆ hudCountText

string PixelCrushers.QuestMachine.QuestEditorCounterWizard.hudCountText = "{0}/{1} Killed"
protected

◆ hudInstructionsGUIContent

GUIContent PixelCrushers.QuestMachine.QuestEditorCounterWizard.hudInstructionsGUIContent = new GUIContent("HUD Text", "Show this alert/journal text when counter node becomes active. {0} is current counter value, {1} is max value. Leave blank to skip.")
protected

◆ hudInstructionsText

string PixelCrushers.QuestMachine.QuestEditorCounterWizard.hudInstructionsText = "Kill {1} Orcs"
protected

◆ incrementGUIContent

GUIContent PixelCrushers.QuestMachine.QuestEditorCounterWizard.incrementGUIContent = new GUIContent("Message", "To increment, listen for this message. Parameter is separated by colon (:).")
protected

◆ incrementMessage

string PixelCrushers.QuestMachine.QuestEditorCounterWizard.incrementMessage = "Killed:Orc"
protected

◆ journalText

string PixelCrushers.QuestMachine.QuestEditorCounterWizard.journalText = "{QUESTGIVER} has asked you to kill {1} Orcs."
protected

◆ journalTextGUIContent

GUIContent PixelCrushers.QuestMachine.QuestEditorCounterWizard.journalTextGUIContent = new GUIContent("Journal Text", "Show this journal text when this node is active. {0} is current counter value, {1} is max value.")
protected

◆ leadsToSuccess

bool PixelCrushers.QuestMachine.QuestEditorCounterWizard.leadsToSuccess = false
protected

◆ leadsToSuccessGUIContent

GUIContent PixelCrushers.QuestMachine.QuestEditorCounterWizard.leadsToSuccessGUIContent = new GUIContent("Leads to Success", "Add a success node immediately after this node.")
protected

◆ max

int PixelCrushers.QuestMachine.QuestEditorCounterWizard.max = 99
protected

◆ min

int PixelCrushers.QuestMachine.QuestEditorCounterWizard.min = 0
protected

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