public override void OnInspectorGUI()
        {
            InstructionBreadcrumbsDrawer.Draw();

            using (new UndoScope(serializedObject))
                _instructions.DrawList();
        }
Esempio n. 2
0
        public override void OnInspectorGUI()
        {
            InstructionBreadcrumbsDrawer.Draw();

            var set    = target as InstructionSet;
            var design = GUILayout.Button("Show Designer");

            _toEdit   = null;
            _toRemove = -1;

            EditorGUILayout.Space();
            EditorHelper.Separator(Color.grey);
            EditorGUILayout.Space();

            using (new UndoScope(serializedObject))
                _instructions.DrawList();

            if (_toEdit != null)
            {
                InstructionBreadcrumbs.Edit(_toEdit);
            }

            if (_toRemove >= 0)
            {
                Remove(set, _toRemove);
            }

            if (design)
            {
                Design(set);
            }
        }
        public override void OnInspectorGUI()
        {
            var expressions = target as ExpressionInstruction;

            InstructionBreadcrumbsDrawer.Draw();

            using (new UndoScope(expressions))
                _expressions.DrawList();
        }
        public override void OnInspectorGUI()
        {
            InstructionBreadcrumbsDrawer.Draw();

            using (new UndoScope(serializedObject))
            {
                EditorGUILayout.PropertyField(_variable);
                EditorGUILayout.Space();
                EditorGUILayout.PropertyField(_default);
                EditorGUILayout.Space();
                EditorGUILayout.PropertyField(_unset);
            }
        }
Esempio n. 5
0
        public override void OnInspectorGUI()
        {
            InstructionBreadcrumbsDrawer.Draw();

            using (new UndoScope(serializedObject))
            {
                EditorGUILayout.PropertyField(_category);
                EditorGUILayout.Space();
                EditorGUILayout.PropertyField(_message);
                EditorGUILayout.Space();
                EditorGUILayout.PropertyField(_variable);
                EditorGUILayout.Space();
                EditorGUILayout.PropertyField(_cancel);
                EditorGUILayout.Space();

                _instructions.DrawList();
            }
        }