|
|
|
@ -138,10 +138,16 @@ namespace Fungus.EditorUtils
|
|
|
|
|
|
|
|
|
|
public void DrawVarList(int w) |
|
|
|
|
{ |
|
|
|
|
//we want to eat the throw that occurs when switching back to editor from play |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
if (_arrayProperty == null || _arrayProperty.serializedObject == null) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
_arrayProperty.serializedObject.Update(); |
|
|
|
|
this.widthOfList = (w == 0 ? VariableListAdaptor.DefaultWidth : w) - ScrollSpacer; |
|
|
|
|
|
|
|
|
|
if(GUILayout.Button("Variables")) |
|
|
|
|
if (GUILayout.Button("Variables")) |
|
|
|
|
{ |
|
|
|
|
_arrayProperty.isExpanded = !_arrayProperty.isExpanded; |
|
|
|
|
} |
|
|
|
@ -152,6 +158,10 @@ namespace Fungus.EditorUtils
|
|
|
|
|
} |
|
|
|
|
_arrayProperty.serializedObject.ApplyModifiedProperties(); |
|
|
|
|
} |
|
|
|
|
catch (Exception) |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void DrawItem(Rect position, int index, bool selected, bool focused) |
|
|
|
|
{ |
|
|
|
|