PixelCrushers.DialogueSystem.LuaScriptWizard Class Reference

This Lua script wizard is meant to be called from a custom editor's OnInspectorGUI() method. More...

Inheritance diagram for PixelCrushers.DialogueSystem.LuaScriptWizard:
Collaboration diagram for PixelCrushers.DialogueSystem.LuaScriptWizard:

Public Member Functions

 LuaScriptWizard (DialogueDatabase database)
 
float GetHeight ()
 
string Draw (GUIContent guiContent, string luaCode)
 
void OpenWizard (string luaCode)
 
void ResetWizard ()
 
string CancelScriptWizard ()
 
string AcceptScriptWizard ()
 
string Draw (Rect position, GUIContent guiContent, string luaCode)
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.LuaWizardBase
 LuaWizardBase (DialogueDatabase database)
 
void RefreshWizardResources ()
 
void RefreshQuestNames ()
 
void RefreshVariableNames ()
 
void RefreshActorNames ()
 
void RefreshItemNames ()
 
void RefreshLocationNames ()
 
string[] GetQuestEntryNames (string questName)
 
string GetWizardQuestName (string[] questNames, int index)
 
string GetLogicalOperatorText (LogicalOperatorType logicalOperator)
 
FieldType GetWizardVariableType (int variableIndex)
 
FieldType GetWizardActorFieldType (int actorFieldIndex)
 
FieldType GetWizardItemFieldType (int itemFieldIndex)
 
FieldType GetWizardLocationFieldType (int locationFieldIndex)
 
string GetWizardEqualityText (EqualityType equalityType)
 
string GetWizardComparisonText (ComparisonType comparisonType)
 

Properties

bool IsOpen [get]
 

Additional Inherited Members

- Public Types inherited from PixelCrushers.DialogueSystem.LuaWizardBase
enum  WizardResourceType {
  WizardResourceType.Quest, WizardResourceType.QuestEntry, WizardResourceType.Variable, WizardResourceType.Actor,
  WizardResourceType.Item, WizardResourceType.Location, WizardResourceType.SimStatus, WizardResourceType.Custom
}
 
enum  EqualityType { EqualityType.Is, EqualityType.IsNot }
 
enum  ComparisonType {
  ComparisonType.Is, ComparisonType.IsNot, ComparisonType.Less, ComparisonType.Greater,
  ComparisonType.LessEqual, ComparisonType.GreaterEqual, ComparisonType.Between
}
 
enum  LogicalOperatorType { LogicalOperatorType.All, LogicalOperatorType.Any }
 
enum  BooleanType { BooleanType.True, BooleanType.False }
 
enum  SimStatusType { SimStatusType.Untouched, SimStatusType.WasOffered, SimStatusType.WasDisplayed }
 
- Public Attributes inherited from PixelCrushers.DialogueSystem.LuaWizardBase
DialogueDatabase database
 
string[] questNames = new string[0]
 
string[] complexQuestNames = new string[0]
 
string[] variableNames = new string[0]
 
FieldType[] variableTypes = new FieldType[0]
 
string[] actorNames = new string[0]
 
string[] actorFieldNames = new string[0]
 
FieldType[] actorFieldTypes = new FieldType[0]
 
string[] itemNames = new string[0]
 
string[] itemFieldNames = new string[0]
 
FieldType[] itemFieldTypes = new FieldType[0]
 
string[] locationNames = new string[0]
 
string[] locationFieldNames = new string[0]
 
FieldType[] locationFieldTypes = new FieldType[0]
 

Detailed Description

This Lua script wizard is meant to be called from a custom editor's OnInspectorGUI() method.

Constructor & Destructor Documentation

◆ LuaScriptWizard()

PixelCrushers.DialogueSystem.LuaScriptWizard.LuaScriptWizard ( DialogueDatabase  database)

Member Function Documentation

◆ AcceptScriptWizard()

string PixelCrushers.DialogueSystem.LuaScriptWizard.AcceptScriptWizard ( )

◆ CancelScriptWizard()

string PixelCrushers.DialogueSystem.LuaScriptWizard.CancelScriptWizard ( )

◆ Draw() [1/2]

string PixelCrushers.DialogueSystem.LuaScriptWizard.Draw ( GUIContent  guiContent,
string  luaCode 
)

◆ Draw() [2/2]

string PixelCrushers.DialogueSystem.LuaScriptWizard.Draw ( Rect  position,
GUIContent  guiContent,
string  luaCode 
)

◆ GetHeight()

float PixelCrushers.DialogueSystem.LuaScriptWizard.GetHeight ( )

◆ OpenWizard()

void PixelCrushers.DialogueSystem.LuaScriptWizard.OpenWizard ( string  luaCode)

◆ ResetWizard()

void PixelCrushers.DialogueSystem.LuaScriptWizard.ResetWizard ( )

Property Documentation

◆ IsOpen

bool PixelCrushers.DialogueSystem.LuaScriptWizard.IsOpen
get

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