Exemple #1
0
 public M_PvpTact(string id, TACT_BASIC basic = TACT_BASIC.TACT_REACT_L, string skill = "SKILL_ALWAYS", TACT_KITE kite = TACT_KITE.KITE_NEVER, TACT_CAST cast = TACT_CAST.CAST_REACT, TACT_PUSHBACK push = TACT_PUSHBACK.PUSH_NEVER, TACT_DEBUFF debuff = TACT_DEBUFF.DEBUFF_NEVER, TACT_SKILLCLASS size = TACT_SKILLCLASS.CLASS_S, TACT_RESCUE rescue = TACT_RESCUE.RESCUE_NEVER)
 {
     // Set the tactic values
     _id     = id;
     _basic  = basic;
     _skill  = skill;
     _kite   = kite;
     _cast   = cast;
     _push   = push;
     _debuff = debuff;
     _size   = size;
     _rescue = rescue;
 }
Exemple #2
0
 public Tact(int id, string name = "", TACT_BASIC basic = TACT_BASIC.TACT_IGNORE, string skill = "SKILL_ALWAYS", TACT_KITE kite = TACT_KITE.KITE_NEVER, TACT_CAST cast = TACT_CAST.CAST_REACT, TACT_PUSHBACK push = TACT_PUSHBACK.PUSH_NEVER, TACT_DEBUFF debuff = TACT_DEBUFF.DEBUFF_NEVER, TACT_SKILLCLASS sclass = TACT_SKILLCLASS.CLASS_BOTH, TACT_RESCUE rescue = TACT_RESCUE.RESCUE_NEVER, int sp = -1, TACT_SNIPE snipe = TACT_SNIPE.SNIPE_OK, TACT_KS ffa = TACT_KS.KS_NEVER, decimal weight = 1, TACT_CHASE chase = TACT_CHASE.CHASE_NORMAL)
 {
     // Set the tactic variables
     _id     = id;
     _basic  = basic;
     _skill  = skill;
     _kite   = kite;
     _cast   = cast;
     _push   = push;
     _debuff = debuff;
     _sclass = sclass;
     _rescue = rescue;
     _sp     = sp;
     _snipe  = snipe;
     _ffa    = ffa;
     _weight = weight;
     _chase  = chase;
     _name   = name;
 }
Exemple #3
0
        private void listBoxTactics_SelectedIndexChanged(object sender, EventArgs e)
        {
            // Remove event handlers
            buttonAdd.Click       -= new EventHandler(buttonAdd_Click);
            buttonRemove.Click    -= new EventHandler(buttonRemove_Click);
            textBoxID.TextChanged -= new EventHandler(textBoxID_TextChanged);
            comboBoxBasic.SelectedIndexChanged    -= new EventHandler(comboBoxBasic_SelectedIndexChanged);
            comboBoxReact.SelectedIndexChanged    -= new EventHandler(comboBoxReact_SelectedIndexChanged);
            comboBoxDebuff.SelectedIndexChanged   -= new EventHandler(comboBoxDebuff_SelectedIndexChanged);
            comboBoxSkill.SelectedIndexChanged    -= new EventHandler(comboBoxSkill_SelectedIndexChanged);
            numericUpDownSkill.ValueChanged       -= new EventHandler(numericUpDownSkill_ValueChanged);
            comboBoxPushback.SelectedIndexChanged -= new EventHandler(comboBoxPushback_SelectedIndexChanged);
            comboBoxKite.SelectedIndexChanged     -= new EventHandler(comboBoxKite_SelectedIndexChanged);
            comboBoxSize.SelectedIndexChanged     -= new EventHandler(comboBoxSize_SelectedIndexChanged);
            comboBoxRescue.SelectedIndexChanged   -= new EventHandler(comboBoxRescue_SelectedIndexChanged);

            // Check if the listBoxTactics selected item is not null
            if (listBoxTactics.SelectedItem != null)
            {
                // Get the listBoxTactics selected tactic
                PvpTact t = (PvpTact)listBoxTactics.SelectedItem;

                // Update the graphical user interface with the values of the current tactic
                TACT_ID         = t.ID;
                TACT_BASIC      = t.TACT_BASIC;
                TACT_CAST       = t.TACT_CAST;
                TACT_DEBUFF     = t.TACT_DEBUFF;
                TACT_SKILL      = t.TACT_SKILL;
                TACT_PUSHBACK   = t.TACT_PUSHBACK;
                TACT_KITE       = t.TACT_KITE;
                TACT_SKILLCLASS = t.TACT_SKILLCLASS;
                TACT_RESCUE     = t.TACT_RESCUE;

                // Check if the TACT_ID is 0
                if (TACT_ID == "new")
                {
                    // Disable buttonRemove and textBoxID
                    buttonRemove.Enabled = true;
                    textBoxID.Enabled    = true;
                }
                // If the TACT_ID is not 0
                else
                {
                    // Enable buttonRemove and textBoxID
                    textBoxID.Enabled = false;
                }
                if (TACT_ID == "0")
                {
                    buttonRemove.Enabled = false;
                }
            }

            // Add event handlers
            buttonAdd.Click       += new EventHandler(buttonAdd_Click);
            buttonRemove.Click    += new EventHandler(buttonRemove_Click);
            textBoxID.TextChanged += new EventHandler(textBoxID_TextChanged);
            comboBoxBasic.SelectedIndexChanged    += new EventHandler(comboBoxBasic_SelectedIndexChanged);
            comboBoxReact.SelectedIndexChanged    += new EventHandler(comboBoxReact_SelectedIndexChanged);
            comboBoxDebuff.SelectedIndexChanged   += new EventHandler(comboBoxDebuff_SelectedIndexChanged);
            comboBoxSkill.SelectedIndexChanged    += new EventHandler(comboBoxSkill_SelectedIndexChanged);
            numericUpDownSkill.ValueChanged       += new EventHandler(numericUpDownSkill_ValueChanged);
            comboBoxPushback.SelectedIndexChanged += new EventHandler(comboBoxPushback_SelectedIndexChanged);
            comboBoxKite.SelectedIndexChanged     += new EventHandler(comboBoxKite_SelectedIndexChanged);
            comboBoxSize.SelectedIndexChanged     += new EventHandler(comboBoxSize_SelectedIndexChanged);
            comboBoxRescue.SelectedIndexChanged   += new EventHandler(comboBoxRescue_SelectedIndexChanged);
        }