|
|
|
@ -15,6 +15,8 @@ namespace Fungus
|
|
|
|
|
{ |
|
|
|
|
protected ReorderableList boundObjectsList; |
|
|
|
|
|
|
|
|
|
protected SerializedProperty allLuaEnvironmentsProp; |
|
|
|
|
protected SerializedProperty luaEnvironmentProp; |
|
|
|
|
protected SerializedProperty tableNameProp; |
|
|
|
|
protected SerializedProperty registerTypesProp; |
|
|
|
|
protected SerializedProperty boundObjectsProp; |
|
|
|
@ -24,6 +26,8 @@ namespace Fungus
|
|
|
|
|
|
|
|
|
|
protected virtual void OnEnable() |
|
|
|
|
{ |
|
|
|
|
allLuaEnvironmentsProp = serializedObject.FindProperty("allEnvironments"); |
|
|
|
|
luaEnvironmentProp = serializedObject.FindProperty("luaEnvironment"); |
|
|
|
|
tableNameProp = serializedObject.FindProperty("tableName"); |
|
|
|
|
registerTypesProp = serializedObject.FindProperty("registerTypes"); |
|
|
|
|
boundObjectsProp = serializedObject.FindProperty("boundObjects"); |
|
|
|
@ -140,6 +144,12 @@ namespace Fungus
|
|
|
|
|
{ |
|
|
|
|
serializedObject.Update(); |
|
|
|
|
|
|
|
|
|
EditorGUILayout.PropertyField(allLuaEnvironmentsProp); |
|
|
|
|
if (!allLuaEnvironmentsProp.boolValue) |
|
|
|
|
{ |
|
|
|
|
EditorGUILayout.PropertyField(luaEnvironmentProp); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EditorGUILayout.PropertyField(tableNameProp); |
|
|
|
|
EditorGUILayout.PropertyField(registerTypesProp); |
|
|
|
|
|
|
|
|
|