Browse Source

Fixed context menu not appearing on command list view

master
chrisgregan 10 years ago
parent
commit
bffa9363bb
  1. 7
      Assets/Fungus/FungusScript/Editor/SequenceEditor.cs

7
Assets/Fungus/FungusScript/Editor/SequenceEditor.cs

@ -86,7 +86,10 @@ namespace Fungus
ReorderableListControl.DrawControlFromState(adaptor, null, flags);
if (Event.current.type == EventType.ContextClick)
// EventType.contextClick doesn't register since we moved the Sequence Editor to be inside
// a GUI Area, no idea why. As a workaround we just check for right click instead.
if (Event.current.type == EventType.mouseUp &&
Event.current.button == 1)
{
ShowContextMenu();
}
@ -618,7 +621,7 @@ namespace Fungus
}
}
public void ShowContextMenu()
public virtual void ShowContextMenu()
{
Sequence sequence = target as Sequence;
FungusScript fungusScript = sequence.GetFungusScript();

Loading…
Cancel
Save