Exemplo n.º 1
0
        public void RankEditorOpenConfig()
        {
            if (File.Exists(rankJsonPath))
            {
                RankContainer container = JsonSerializable <RankContainer> .FromPath(rankJsonPath);

                NumericSonicA.Value   = container.normalMission.SonicA;
                NumericSonicB.Value   = container.normalMission.SonicB;
                NumericSonicC.Value   = container.normalMission.SonicC;
                NumericSonicD.Value   = container.normalMission.SonicD;
                NumericDarkA.Value    = container.normalMission.DarkA;
                NumericDarkB.Value    = container.normalMission.DarkB;
                NumericDarkC.Value    = container.normalMission.DarkC;
                NumericDarkD.Value    = container.normalMission.DarkD;
                NumericRoseA.Value    = container.normalMission.RoseA;
                NumericRoseB.Value    = container.normalMission.RoseB;
                NumericRoseC.Value    = container.normalMission.RoseC;
                NumericRoseD.Value    = container.normalMission.RoseD;
                NumericChaotixA.Value = container.normalMission.ChaotixA;
                NumericChaotixB.Value = container.normalMission.ChaotixB;
                NumericChaotixC.Value = container.normalMission.ChaotixC;
                NumericChaotixD.Value = container.normalMission.ChaotixD;

                NumericSonicEA.Value   = container.extraMissionScore.SonicA;
                NumericSonicEB.Value   = container.extraMissionScore.SonicB;
                NumericSonicEC.Value   = container.extraMissionScore.SonicC;
                NumericSonicED.Value   = container.extraMissionScore.SonicD;
                NumericChaotixEA.Value = container.extraMissionScore.ChaotixA;
                NumericChaotixEB.Value = container.extraMissionScore.ChaotixB;
                NumericChaotixEC.Value = container.extraMissionScore.ChaotixC;
                NumericChaotixED.Value = container.extraMissionScore.ChaotixD;

                NumericDarkEAMin.Value = container.extraMissionTime.DarkAMin;
                NumericDarkEBMin.Value = container.extraMissionTime.DarkBMin;
                NumericDarkECMin.Value = container.extraMissionTime.DarkCMin;
                NumericDarkEDMin.Value = container.extraMissionTime.DarkDMin;
                NumericRoseEAMin.Value = container.extraMissionTime.RoseAMin;
                NumericRoseEBMin.Value = container.extraMissionTime.RoseBMin;
                NumericRoseECMin.Value = container.extraMissionTime.RoseCMin;
                NumericRoseEDMin.Value = container.extraMissionTime.RoseDMin;

                NumericDarkEASec.Value = container.extraMissionTime.DarkASec;
                NumericDarkEBSec.Value = container.extraMissionTime.DarkBSec;
                NumericDarkECSec.Value = container.extraMissionTime.DarkCSec;
                NumericDarkEDSec.Value = container.extraMissionTime.DarkDSec;
                NumericRoseEASec.Value = container.extraMissionTime.RoseASec;
                NumericRoseEBSec.Value = container.extraMissionTime.RoseBSec;
                NumericRoseECSec.Value = container.extraMissionTime.RoseCSec;
                NumericRoseEDSec.Value = container.extraMissionTime.RoseDSec;
            }
        }