Ejemplo n.º 1
0
        private void ListBox3_SelectedIndexChanged(object sender, EventArgs e)
        {
            string localReadHEX()
            {
                int argStart2 = int.Parse(Ini.GetString(Conversions.ToString(MMainFunctions.GetIniFileLocation()), MainObject.Header, "PokedexSmallestTable", ""), System.Globalization.NumberStyles.HexNumber) + ListBox3.SelectedIndex * 2; int argLength = 2; var ret = HexFunctions.ReadHex(ref MainObject.LoadedRom, ref argStart2, ref argLength); return(ret);
            }

            string localReverseHEX()
            {
                string argHEXData = "hs58434bdf19ed48f38f3040598eedaa65()"; var ret = HexFunctions.ReverseHex(ref argHEXData); return(ret);
            }

            ComboBox3.SelectedIndex = Conversions.ToInteger(Operators.SubtractObject(ByteFunctions.PokedexNumbertoSpecies(int.Parse(localReverseHEX(), System.Globalization.NumberStyles.HexNumber)), 1));
        }
Ejemplo n.º 2
0
        private void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string localReadHEX()
            {
                int argStart2 = int.Parse(Ini.GetString(Conversions.ToString(MMainFunctions.GetIniFileLocation()), MainObject.Header, "PokedexAlphabetTable", ""), System.Globalization.NumberStyles.HexNumber) + ListBox1.SelectedIndex * 2; int argLength = 2; var ret = HexFunctions.ReadHex(ref MainObject.LoadedRom, ref argStart2, ref argLength); return(ret);
            }

            string localReverseHEX()
            {
                string argHEXData = "hsf8dbc22cf9934c8ca5406a8f7013a2fb()"; var ret = HexFunctions.ReverseHex(ref argHEXData); return(ret);
            }

            ComboBox1.SelectedIndex = Conversions.ToInteger(Operators.SubtractObject(ByteFunctions.PokedexNumbertoSpecies(int.Parse(localReverseHEX(), System.Globalization.NumberStyles.HexNumber)), 1));
        }
Ejemplo n.º 3
0
        private void PokedexListEditor_Load(object sender, EventArgs e)
        {
            int LoopVar;

            if (MainObject.Header2 == "BPE" | MainObject.Header2 == "BPR" | MainObject.Header2 == "BPG")
            {
                if (MainObject.Header2 != "BPE")
                {
                    GroupBox4.Enabled = true;
                }
                else
                {
                    GroupBox4.Enabled = false;
                }

                ComboBox1.Items.Clear();
                ComboBox2.Items.Clear();
                ComboBox3.Items.Clear();
                ComboBox4.Items.Clear();
                LoopVar = 0;
                while (LoopVar < Conversions.ToDouble(Ini.GetString(Conversions.ToString(MMainFunctions.GetIniFileLocation()), MainObject.Header, "NumberOfPokemon", "")) - 1d == true)
                {
                    LoopVar = LoopVar + 1;
                    ComboBox1.Items.Add(GetNameFunctions.GetPokemonName(LoopVar));
                    ComboBox2.Items.Add(GetNameFunctions.GetPokemonName(LoopVar));
                    ComboBox3.Items.Add(GetNameFunctions.GetPokemonName(LoopVar));
                    ComboBox4.Items.Add(GetNameFunctions.GetPokemonName(LoopVar));
                }

                ListBox1.Items.Clear();
                ListBox2.Items.Clear();
                ListBox3.Items.Clear();
                ListBox4.Items.Clear();
                LoopVar = 0;
                while (LoopVar < Conversions.ToDouble(Ini.GetString(Conversions.ToString(MMainFunctions.GetIniFileLocation()), MainObject.Header, "NumberOfPokemon", "")) - 1d == true)
                {
                    string localReadHEX()
                    {
                        int argStart2 = int.Parse(Ini.GetString(Conversions.ToString(MMainFunctions.GetIniFileLocation()), MainObject.Header, "PokedexAlphabetTable", ""), System.Globalization.NumberStyles.HexNumber) + LoopVar * 2; int argLength = 2; var ret = HexFunctions.ReadHex(ref MainObject.LoadedRom, ref argStart2, ref argLength); return(ret);
                    }

                    string localReverseHEX()
                    {
                        string argHEXData = "hsd4e41ad50eae4354a61ac37a2cd57a45()"; var ret = HexFunctions.ReverseHex(ref argHEXData); return(ret);
                    }

                    ListBox1.Items.Add(GetNameFunctions.GetPokemonName(Conversions.ToInteger(ByteFunctions.PokedexNumbertoSpecies(int.Parse(localReverseHEX(), System.Globalization.NumberStyles.HexNumber)))));
                    if (MainObject.Header2 != "BPE")
                    {
                        string localReadHEX1()
                        {
                            int argStart2 = int.Parse(Ini.GetString(Conversions.ToString(MMainFunctions.GetIniFileLocation()), MainObject.Header, "PokedexTypeTable", ""), System.Globalization.NumberStyles.HexNumber) + LoopVar * 2; int argLength = 2; var ret = HexFunctions.ReadHex(ref MainObject.LoadedRom, ref argStart2, ref argLength); return(ret);
                        }

                        string localReverseHEX1()
                        {
                            string argHEXData = "hs13991fce0c324b8b918d905f8babb6a1()"; var ret = HexFunctions.ReverseHex(ref argHEXData); return(ret);
                        }

                        ListBox4.Items.Add(GetNameFunctions.GetPokemonName(int.Parse(localReverseHEX1(), System.Globalization.NumberStyles.HexNumber)));
                    }

                    LoopVar = LoopVar + 1;
                }

                LoopVar = 0;
                while (LoopVar < Conversions.ToDouble(Ini.GetString(Conversions.ToString(MMainFunctions.GetIniFileLocation()), MainObject.Header, "NumberOfDexEntries", "")) - 1d)
                {
                    string localReadHEX2()
                    {
                        int argStart2 = int.Parse(Ini.GetString(Conversions.ToString(MMainFunctions.GetIniFileLocation()), MainObject.Header, "PokedexLightestTable", ""), System.Globalization.NumberStyles.HexNumber) + LoopVar * 2; int argLength = 2; var ret = HexFunctions.ReadHex(ref MainObject.LoadedRom, ref argStart2, ref argLength); return(ret);
                    }

                    string localReverseHEX2()
                    {
                        string argHEXData = "hse19d2278defd46c3a6c05fad62508a9a()"; var ret = HexFunctions.ReverseHex(ref argHEXData); return(ret);
                    }

                    ListBox2.Items.Add(GetNameFunctions.GetPokemonName(Conversions.ToInteger(ByteFunctions.PokedexNumbertoSpecies(int.Parse(localReverseHEX2(), System.Globalization.NumberStyles.HexNumber)))));
                    string localReadHEX3()
                    {
                        int argStart2 = int.Parse(Ini.GetString(Conversions.ToString(MMainFunctions.GetIniFileLocation()), MainObject.Header, "PokedexSmallestTable", ""), System.Globalization.NumberStyles.HexNumber) + LoopVar * 2; int argLength = 2; var ret = HexFunctions.ReadHex(ref MainObject.LoadedRom, ref argStart2, ref argLength); return(ret);
                    }

                    string localReverseHEX3()
                    {
                        string argHEXData = "hsdda2192684f249da9ffbe9dd46f9aada()"; var ret = HexFunctions.ReverseHex(ref argHEXData); return(ret);
                    }

                    ListBox3.Items.Add(GetNameFunctions.GetPokemonName(Conversions.ToInteger(ByteFunctions.PokedexNumbertoSpecies(int.Parse(localReverseHEX3(), System.Globalization.NumberStyles.HexNumber)))));
                    LoopVar = LoopVar + 1;
                }

                ListBox1.SelectedIndex = 0;
                ListBox2.SelectedIndex = 0;
                ListBox3.SelectedIndex = 0;
                if (MainObject.Header2 != "BPE")
                {
                    ListBox4.SelectedIndex = 0;
                }
            }
            else
            {
                //Interaction.MsgBox("Not supported!");
                Close();
            }
        }