Esempio n. 1
0
        public VariableCondition(IEditorEnvironment editorEnvironment, string variableName = null, int variableValue = 0) : base(editorEnvironment)
        {
            _variableUndoRedoWrapper = CreateUndoRedoWrapper(nameof(Variable), variableName);
            _valueUndoRedoWrapper    = CreateUndoRedoWrapper(nameof(Value), variableValue);

            UpdateHeader();
        }
Esempio n. 2
0
        protected NodeProperty(IEditorEnvironment editorEnvironment, PropertyInfo propertyInfo, string propertyName = null) : base(editorEnvironment)
        {
            _valueWrapper = CreateUndoRedoWrapper <object>(nameof(Value));

            Name         = propertyName ?? propertyInfo.Name;
            PropertyInfo = propertyInfo;
        }
        public ChoiceGroup(IEditorEnvironment editorEnvironment, string text = null) : base(editorEnvironment)
        {
            _textUndoRedoWrapper = CreateUndoRedoWrapper(nameof(Text), text);

            Choices = AddGroup <ChoiceItem>(nameof(Choices));

            UpdateHeader();
        }
Esempio n. 4
0
        public ChoiceItem(IEditorEnvironment editorEnvironment, string text = null) : base(editorEnvironment)
        {
            _textUndoRedoWrapper = CreateUndoRedoWrapper(nameof(Text), text);

            Conditions = AddGroup <DialogCondition>(nameof(Conditions));
            Actions    = AddGroup <DialogAction>(nameof(Actions));

            UpdateHeader();
        }
Esempio n. 5
0
        public ShowTextAction(IEditorEnvironment editorEnvironment, string text = null) : base(editorEnvironment)
        {
            _textUndoRedoWrapper = CreateUndoRedoWrapper(nameof(Text), text);

            UpdateHeader();
        }