Browse Source

Deferred Block action list is now public

Call Event.current.Use(); to a) stop anything else handling the click
and b) tell the editor window to refresh.
master
chrisgregan 9 years ago
parent
commit
b708320e63
  1. 3
      Assets/Fungus/Flowchart/Editor/BlockEditor.cs

3
Assets/Fungus/Flowchart/Editor/BlockEditor.cs

@ -29,7 +29,7 @@ namespace Fungus
public int index; public int index;
} }
protected static List<Action> actionList = new List<Action>(); public static List<Action> actionList = new List<Action>();
protected Texture2D upIcon; protected Texture2D upIcon;
protected Texture2D downIcon; protected Texture2D downIcon;
@ -131,6 +131,7 @@ namespace Fungus
Event.current.button == 1) Event.current.button == 1)
{ {
ShowContextMenu(); ShowContextMenu();
Event.current.Use();
} }
if (GUIUtility.keyboardControl == 0) //Only call keyboard shortcuts when not typing in a text field if (GUIUtility.keyboardControl == 0) //Only call keyboard shortcuts when not typing in a text field

Loading…
Cancel
Save