Example #1
0
        public RSTE(byte[][] trc, byte[][] trd, byte[][] trp)
        {
            trclass = trc;
            trdata  = trd;
            trpoke  = trp;
            Array.Resize(ref specieslist, Main.Config.MaxSpeciesID + 1);
            MegaDictionary   = GiftEditor6.GetMegaDictionary(Main.Config);
            rModelRestricted = Main.Config.ORAS ? Legal.Model_AO : Legal.Model_XY;
            rFinalEvo        = Legal.FinalEvolutions_6;

            InitializeComponent();
            // String Fetching
            #region Combo Box Arrays
            trpk_pkm    = new[] { CB_Pokemon_1_Pokemon, CB_Pokemon_2_Pokemon, CB_Pokemon_3_Pokemon, CB_Pokemon_4_Pokemon, CB_Pokemon_5_Pokemon, CB_Pokemon_6_Pokemon, };
            trpk_lvl    = new[] { CB_Pokemon_1_Level, CB_Pokemon_2_Level, CB_Pokemon_3_Level, CB_Pokemon_4_Level, CB_Pokemon_5_Level, CB_Pokemon_6_Level, };
            trpk_item   = new[] { CB_Pokemon_1_Item, CB_Pokemon_2_Item, CB_Pokemon_3_Item, CB_Pokemon_4_Item, CB_Pokemon_5_Item, CB_Pokemon_6_Item, };
            trpk_abil   = new[] { CB_Pokemon_1_Ability, CB_Pokemon_2_Ability, CB_Pokemon_3_Ability, CB_Pokemon_4_Ability, CB_Pokemon_5_Ability, CB_Pokemon_6_Ability, };
            trpk_m1     = new[] { CB_Pokemon_1_Move_1, CB_Pokemon_2_Move_1, CB_Pokemon_3_Move_1, CB_Pokemon_4_Move_1, CB_Pokemon_5_Move_1, CB_Pokemon_6_Move_1, };
            trpk_m2     = new[] { CB_Pokemon_1_Move_2, CB_Pokemon_2_Move_2, CB_Pokemon_3_Move_2, CB_Pokemon_4_Move_2, CB_Pokemon_5_Move_2, CB_Pokemon_6_Move_2, };
            trpk_m3     = new[] { CB_Pokemon_1_Move_3, CB_Pokemon_2_Move_3, CB_Pokemon_3_Move_3, CB_Pokemon_4_Move_3, CB_Pokemon_5_Move_3, CB_Pokemon_6_Move_3, };
            trpk_m4     = new[] { CB_Pokemon_1_Move_4, CB_Pokemon_2_Move_4, CB_Pokemon_3_Move_4, CB_Pokemon_4_Move_4, CB_Pokemon_5_Move_4, CB_Pokemon_6_Move_4, };
            trpk_IV     = new[] { CB_Pokemon_1_IVs, CB_Pokemon_2_IVs, CB_Pokemon_3_IVs, CB_Pokemon_4_IVs, CB_Pokemon_5_IVs, CB_Pokemon_6_IVs, };
            trpk_form   = new[] { CB_Pokemon_1_Form, CB_Pokemon_2_Form, CB_Pokemon_3_Form, CB_Pokemon_4_Form, CB_Pokemon_5_Form, CB_Pokemon_6_Form, };
            trpk_gender = new[] { CB_Pokemon_1_Gender, CB_Pokemon_2_Gender, CB_Pokemon_3_Gender, CB_Pokemon_4_Gender, CB_Pokemon_5_Gender, CB_Pokemon_6_Gender, };
            #endregion
            Setup();
        }
Example #2
0
        public SMTE(byte[][] trc, byte[][] trd, byte[][] trp)
        {
            trclass      = trc;
            trdata       = trd;
            trpoke       = trp;
            TrainerNames = new TextData(trName);
            InitializeComponent();

            mnuView.Click   += ClickView;
            mnuSet.Click    += ClickSet;
            mnuDelete.Click += ClickDelete;
            Trainers         = new trdata7[trdata.Length];
            Setup();
            foreach (var pb in pba)
            {
                pb.Click += ClickSlot;
            }

            CB_TrainerID.SelectedIndex = 0;
            CB_Moves.SelectedIndex     = 0;
            MegaDictionary             = GiftEditor6.GetMegaDictionary(Main.Config);

            if (CHK_RandomClass.Checked)
            {
                SpecialClasses = CHK_IgnoreSpecialClass.Checked
                    ? Main.Config.USUM
                        ? Legal.SpecialClasses_USUM
                        : Legal.SpecialClasses_SM
                    : new int[] {};
            }

            RandSettings.GetFormSettings(this, Tab_Rand.Controls);
        }
Example #3
0
        public SMTE(byte[][] trc, byte[][] trd, byte[][] trp)
        {
            trclass      = trc;
            trdata       = trd;
            trpoke       = trp;
            TrainerNames = new TextData(trName);
            InitializeComponent();

            mnuView.Click   += ClickView;
            mnuSet.Click    += ClickSet;
            mnuDelete.Click += ClickDelete;
            Trainers         = new trdata7[trdata.Length];
            Setup();
            foreach (var pb in pba)
            {
                pb.Click += ClickSlot;
            }

            CB_TrainerID.SelectedIndex = 0;
            CB_Moves.SelectedIndex     = 0;
            CHK_ReplaceLegend.Visible  = Main.Config.USUM; // Team Rainbow Rocket only in USUM
            MegaDictionary             = GiftEditor6.GetMegaDictionary(Main.Config);

            TrainerClasses    = Main.Config.USUM ? Legal.SpecialClasses_USUM : Legal.SpecialClasses_SM;
            ImportantTrainers = Main.Config.USUM ? Legal.ImportantTrainers_USUM : Legal.ImportantTrainers_SM;
            FinalEvo          = Main.Config.USUM ? Legal.FinalEvolutions_USUM : Legal.FinalEvolutions_SM;
            ReplaceLegend     = Legal.Legendary_Mythical_USUM;
            RandSettings.GetFormSettings(this, Tab_Rand.Controls);
        }