Browse Source

Added info box if no commands currently in command list

master
chrisgregan 10 years ago
parent
commit
a151d31df5
  1. 7
      Assets/Fungus/Flowchart/Editor/BlockEditor.cs

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

@ -81,7 +81,14 @@ namespace Fungus
ReorderableListFlags flags = ReorderableListFlags.HideAddButton | ReorderableListFlags.HideRemoveButtons | ReorderableListFlags.DisableContextMenu;
if (block.commandList.Count == 0)
{
EditorGUILayout.HelpBox("Press the + button below to add a command to the list.", MessageType.Info);
}
else
{
ReorderableListControl.DrawControlFromState(adaptor, null, flags);
}
// 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.

Loading…
Cancel
Save