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

            SelectedItem?.OnDeselected();

            SelectedItem = item;

            item?.OnSelected();

            OnItemSelected?.Invoke(item);
        }
Exemplo 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);
        }
Exemplo n.º 3
0
 public CommandMovableManipulator(CommandItem item)
 {
     //if (target != item) throw new ArgumentException("Target must be CommandItem.");
 }
Exemplo n.º 4
0
 public WhileVariableCommandEditor(CommandItem commandItem, VisualElement customDetailRoot) : base(commandItem, customDetailRoot)
 {
 }
Exemplo n.º 5
0
 public WaitCommandEditor(CommandItem commandItem, VisualElement customDetailRoot) : base(commandItem, customDetailRoot)
 {
 }
Exemplo n.º 6
0
 public NestEventScriptCommandEditor(CommandItem commandItem, VisualElement customDetailRoot) : base(commandItem, customDetailRoot)
 {
 }
Exemplo n.º 7
0
 public EventCommandEditor(CommandItem commandItem, VisualElement customDetailRoot)
 {
     CommandItem      = commandItem;
     CustomDetailRoot = customDetailRoot;
 }
Exemplo n.º 8
0
 public SkipContainerCommandEditor(CommandItem commandItem, VisualElement customDetailRoot) : base(commandItem, customDetailRoot)
 {
 }