|
|
|
@ -19,6 +19,8 @@ namespace Fungus.EditorUtils
|
|
|
|
|
{ |
|
|
|
|
public static List<Action> actionList = new List<Action>(); |
|
|
|
|
|
|
|
|
|
public static bool SelectedBlockDataStale { get; set; } |
|
|
|
|
|
|
|
|
|
protected Texture2D upIcon; |
|
|
|
|
protected Texture2D downIcon; |
|
|
|
|
protected Texture2D addIcon; |
|
|
|
@ -101,6 +103,8 @@ namespace Fungus.EditorUtils
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EditorGUI.BeginChangeCheck(); |
|
|
|
|
|
|
|
|
|
if (block == flowchart.SelectedBlock) |
|
|
|
|
{ |
|
|
|
|
// Custom tinting |
|
|
|
@ -251,6 +255,12 @@ namespace Fungus.EditorUtils
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (EditorGUI.EndChangeCheck()) |
|
|
|
|
{ |
|
|
|
|
SelectedBlockDataStale = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
serializedObject.ApplyModifiedProperties(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -364,7 +374,14 @@ namespace Fungus.EditorUtils
|
|
|
|
|
EventHandlerEditor eventHandlerEditor = Editor.CreateEditor(block._EventHandler) as EventHandlerEditor; |
|
|
|
|
if (eventHandlerEditor != null) |
|
|
|
|
{ |
|
|
|
|
EditorGUI.BeginChangeCheck(); |
|
|
|
|
eventHandlerEditor.DrawInspectorGUI(); |
|
|
|
|
|
|
|
|
|
if(EditorGUI.EndChangeCheck()) |
|
|
|
|
{ |
|
|
|
|
SelectedBlockDataStale = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
DestroyImmediate(eventHandlerEditor); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|