예제 #1
0
        private void Update_CheckCustomDataIsLoaded()
        {
            if (CustomDataLoadCalled)
            {
                return;
            }

            if (!DataBlocksDissolver.IsCustomDataLoaded && GameDataInit.IsLoaded)
            {
                var basePath       = Path.Combine(Imports.GetGameDirectory(), "Mods");
                var customRdwsPath = $"{basePath}\\Rundowns";

                if (!Directory.Exists(customRdwsPath))
                {
                    Directory.CreateDirectory(customRdwsPath);
                }

                CustomDataLoadCalled = true;

                var rundowns = DataBlocksDissolver.DissolveAllRundowns(customRdwsPath);
                foreach (var rundown in rundowns)
                {
                    RundownPicker.AddItem(rundown.Name, rundown.Checksum, rundown.ID);
                }
            }
        }
예제 #2
0
        private void Update_MainScreenRundownSelector()
        {
            if (!RundownPicker.IsMainScreen)
            {
                return;
            }

            if (Input.GetKeyDown(KeyCode.LeftArrow))
            {
                RundownPicker.Previous();
            }
            else if (Input.GetKeyDown(KeyCode.RightArrow))
            {
                RundownPicker.Next();
            }
        }