Пример #1
0
 private void ikaBox_Click(object sender, EventArgs e)
 {
     OctohaxLogic.switchToSquid();
     if (SendStats)
     {
         StatisticTransmitter.WriteToSlot(9, 1);
     }
 }
Пример #2
0
 private void gearButton_Click_1(object sender, EventArgs e)
 {
     GearUnlocker.PokeHats();
     GearUnlocker.PokeClothes();
     GearUnlocker.PokeShoes();
     if (SendStats)
     {
         StatisticTransmitter.WriteToSlot(10, 1);
     }
 }
Пример #3
0
 public void PokeAmiibo()
 {
     if (amiiboBox.SelectedIndex == 0) // none / nashi
     {
         SplatAIOCore.PokeAmiibo(UInt32.MaxValue);
     }
     else
     {
         SplatAIOCore.PokeAmiibo(Convert.ToUInt32(amiiboBox.SelectedIndex - 1));
         if (SendStats)
         {
             StatisticTransmitter.WriteToSlot(7, 1);
         }
     }
 }
Пример #4
0
        private void OKButton_Click(object sender, EventArgs e)
        {
            Hold();

            if (SendStats)
            {
                if (kaneBox.Value != SplatAIOCore.Okane)
                {
                    StatisticTransmitter.WriteToSlot(0, Math.Abs(kaneBox.Value - SplatAIOCore.Okane));
                }
                if (rankBox.Value != SplatAIOCore.Rank)
                {
                    StatisticTransmitter.WriteToSlot(3, Math.Abs(rankBox.Value - SplatAIOCore.Rank));
                }
                if (sazaeBox.Value != SplatAIOCore.Sazae)
                {
                    StatisticTransmitter.WriteToSlot(1, Math.Abs(sazaeBox.Value - SplatAIOCore.Sazae));
                }
                if (eyeBox.SelectedIndex != SplatAIOCore.Eyes)
                {
                    StatisticTransmitter.WriteToSlot(5, 1);
                }
                if (genderBox.SelectedIndex != SplatAIOCore.Gender)
                {
                    StatisticTransmitter.WriteToSlot(4, 1);
                }
                if (skinBox.SelectedIndex != SplatAIOCore.Skin)
                {
                    StatisticTransmitter.WriteToSlot(6, 1);
                }
                if (udeBox.SelectedIndex != SplatAIOCore.Ude || maeBox.Value != SplatAIOCore.Mae)
                {
                    StatisticTransmitter.WriteToSlot(2, 1);
                }
            }

            SplatAIOCore.PokeRank(Convert.ToUInt32(rankBox.Value));
            SplatAIOCore.PokeOkane(Convert.ToUInt32(kaneBox.Value));
            SplatAIOCore.PokeUde(Convert.ToUInt32(udeBox.SelectedIndex));
            SplatAIOCore.PokeMae(Convert.ToUInt32(maeBox.Value));
            SplatAIOCore.PokeSazae(Convert.ToUInt32(sazaeBox.Value));
            SplatAIOCore.PokeGender(Convert.ToUInt32(genderBox.SelectedIndex));
            SplatAIOCore.PokeEyes(Convert.ToUInt32(eyeBox.SelectedIndex));
            SplatAIOCore.PokeSkin(Convert.ToUInt32(skinBox.SelectedIndex));
            PokeAmiibo();

            Release();
        }
Пример #5
0
        private void Form1_Load(object sender, EventArgs e)
        {
            var checker = new Checker();

            if (checker.getdata() == 0 && checker.ver > GetCurrentVersion())
            {
                checker.ShowDialog();
            }

            Configuration.Load();
            ipBox.Text = Configuration.CurrentConfig.LastIp;

            Text += " (" + Assembly.GetExecutingAssembly().GetName().Version + ")";

            if (Configuration.CurrentConfig.AllowStatistics)
            {
                SendStats = StatisticTransmitter.WorkingConnection();
            }
            else
            {
                SendStats = false;
            }
        }