Exemple #1
0
        internal ScriptActionControlListTransfer(MudData.FormulaActionListTransfer action)
        {
            InitializeComponent();

            ScriptableComboBox.Text     = action.scriptable;
            OriginListComboBox.Text     = action.list;
            TargetComboBox.Text         = action.target;
            TargetListComboBox.Text     = action.targetList;
            FilterConditionTextBox.Text = action.condition;
        }
        internal MudData.FormulaActionListTransfer GenerateMudDataAction()
        {
            var ret = new MudData.FormulaActionListTransfer();
            ret.action = "ListTransfer";
            ret.condition = FilterConditionTextBox.Text;
            ret.list = OriginListComboBox.Text;
            ret.scriptable = ScriptableComboBox.Text;
            ret.target = TargetComboBox.Text;
            ret.targetList = TargetListComboBox.Text;

            return ret;
        }
Exemple #3
0
        internal MudData.FormulaActionListTransfer GenerateMudDataAction()
        {
            var ret = new MudData.FormulaActionListTransfer();

            ret.action     = "ListTransfer";
            ret.condition  = FilterConditionTextBox.Text;
            ret.list       = OriginListComboBox.Text;
            ret.scriptable = ScriptableComboBox.Text;
            ret.target     = TargetComboBox.Text;
            ret.targetList = TargetListComboBox.Text;

            return(ret);
        }
        private MudData.FormulaAction GetRawActionFromDropdownSelection()
        {
            MudData.FormulaAction action = null;

            if (ActionComboBox.Text == "AddToList")
            {
                action = new MudData.FormulaActionAddToList();
            }
            else if (ActionComboBox.Text == "CreateListMember")
            {
                action = new MudData.FormulaActionCreateListMember();
            }
            else if (ActionComboBox.Text == "foreach")
            {
                action = new MudData.FormulaActionForEach();
            }
            else if (ActionComboBox.Text == "if")
            {
                action = new MudData.FormulaActionIf();
            }
            else if (ActionComboBox.Text == "ListTransfer")
            {
                action = new MudData.FormulaActionListTransfer();
            }
            else if (ActionComboBox.Text == "ListRemove")
            {
                action = new MudData.FormulaActionListRemove();
            }
            else if (ActionComboBox.Text == "RepeatEvent")
            {
                action = new MudData.FormulaActionRepeatEvent();
            }
            else if (ActionComboBox.Text == "SetGoalState")
            {
                action = new MudData.FormulaActionSetGoalState();
            }
            else if (ActionComboBox.Text == "SetProperty")
            {
                action = new MudData.FormulaActionSetProperty();
            }
            else if (ActionComboBox.Text == "TriggerEvent")
            {
                action = new MudData.FormulaActionTriggerEvent();
            }
            else
            {
                action = new MudData.FormulaAction();
            }

            return action;
        }