PixelCrushers.DialogueSystem.QuestStateDrawer Class Reference

This custom property drawer for the QuestState enum shows the states in lowercase so they match Lua. More...

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

Public Member Functions

override void OnGUI (Rect position, SerializedProperty prop, GUIContent label)
 

Static Public Member Functions

static int QuestStateToDrawerIndex (QuestState questState)
 
static QuestState DrawerIndexToQuestState (int index)
 
static QuestState RectQuestStatePopup (Rect position, QuestState questState)
 
static QuestState LayoutQuestStatePopup (QuestState questState, float width)
 

Static Public Attributes

static string[] stateNames
 

Detailed Description

This custom property drawer for the QuestState enum shows the states in lowercase so they match Lua.

Member Function Documentation

◆ DrawerIndexToQuestState()

static QuestState PixelCrushers.DialogueSystem.QuestStateDrawer.DrawerIndexToQuestState ( int  index)
static

◆ LayoutQuestStatePopup()

static QuestState PixelCrushers.DialogueSystem.QuestStateDrawer.LayoutQuestStatePopup ( QuestState  questState,
float  width 
)
static

◆ OnGUI()

override void PixelCrushers.DialogueSystem.QuestStateDrawer.OnGUI ( Rect  position,
SerializedProperty  prop,
GUIContent  label 
)

◆ QuestStateToDrawerIndex()

static int PixelCrushers.DialogueSystem.QuestStateDrawer.QuestStateToDrawerIndex ( QuestState  questState)
static

◆ RectQuestStatePopup()

static QuestState PixelCrushers.DialogueSystem.QuestStateDrawer.RectQuestStatePopup ( Rect  position,
QuestState  questState 
)
static

Member Data Documentation

◆ stateNames

string [] PixelCrushers.DialogueSystem.QuestStateDrawer.stateNames
static
Initial value:
= {
"unassigned",
"active",
"success",
"failure",
"abandoned"
}

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