Esempio n. 1
0
        public void SelectItem(CommandItem item)
        {
            if (SelectedItem == item)
            {
                return;
            }

            SelectedItem?.OnDeselected();

            SelectedItem = item;

            item?.OnSelected();

            OnItemSelected?.Invoke(item);
        }
Esempio n. 2
0
        private void OnItemSelected(CommandItem item)
        {
            var commandEditor = rootVisualElement.Q <VisualElement>("CommandEditor");

            if (commandEditor == null)
            {
                return;
            }
            commandEditor.Clear();

            if (item == null)
            {
                return;
            }

            var editor = item.Editor;
            var customCommandEditor = editor.CreateCommandEditorGUI();

            commandEditor.Add(customCommandEditor);
        }
Esempio n. 3
0
 public CommandMovableManipulator(CommandItem item)
 {
     //if (target != item) throw new ArgumentException("Target must be CommandItem.");
 }
Esempio n. 4
0
 public WhileVariableCommandEditor(CommandItem commandItem, VisualElement customDetailRoot) : base(commandItem, customDetailRoot)
 {
 }
Esempio n. 5
0
 public WaitCommandEditor(CommandItem commandItem, VisualElement customDetailRoot) : base(commandItem, customDetailRoot)
 {
 }
Esempio n. 6
0
 public NestEventScriptCommandEditor(CommandItem commandItem, VisualElement customDetailRoot) : base(commandItem, customDetailRoot)
 {
 }
Esempio n. 7
0
 public EventCommandEditor(CommandItem commandItem, VisualElement customDetailRoot)
 {
     CommandItem      = commandItem;
     CustomDetailRoot = customDetailRoot;
 }
Esempio n. 8
0
 public SkipContainerCommandEditor(CommandItem commandItem, VisualElement customDetailRoot) : base(commandItem, customDetailRoot)
 {
 }