Beispiel #1
0
        public InRaceMenu(Action onMenuExitCallback, Action onRestartCallback, Action onExitCallback)
        {
            this.menu = new NativeMenu.Menu("Custom Time Trials", "In Race Menu", onMenuExitCallback);

            this.menu.AddButton("Restart", onRestartCallback);
            this.menu.AddButton("Exit Time Trial", onExitCallback);

            this.menu.SetMenuIsReady();
        }
Beispiel #2
0
        public void CreateMenu(Action onMenuExitCallback, Action onStartTimeTrialCallback, Action onStartEditorCallback)
        {
            this.menu = new NativeMenu.Menu("Custom Time Trials", "Main Menu", onMenuExitCallback);

            this.menu.AddListButton("Start Time Trial", this.GetTimeTrialList(), onStartTimeTrialCallback);
            this.menu.AddButton("Time Trial Editor", onStartEditorCallback);

            this.menu.Show();
        }
Beispiel #3
0
        public void CreateMenu(Action onMenuExitCallback, Action onAddCheckpointCallback, Action onRemoveLastCheckpointCallback, Action onRemoveAllCheckpointsCallback, Action onSaveCallback)
        {
            this.menu = new NativeMenu.Menu("Custom Time Trials", "Editor", onMenuExitCallback);

            this.menu.AddListButton("Type", new List <dynamic> {
                "Circuit", "Sprint"
            });
            this.menu.AddButton("Add Checkpoint Here", onAddCheckpointCallback);
            this.menu.AddButton("Remove Last Checkpoint", onRemoveLastCheckpointCallback);
            this.menu.AddButton("Remove All Checkpoint", onRemoveAllCheckpointsCallback);
            this.menu.AddButton("Save Time Trial", onSaveCallback);

            this.menu.Show();
        }
Beispiel #4
0
        public void CreateMenu(string raceName, string raceType, Action onMenuExitCallback, Action onStartCallback)
        {
            this.menu = new NativeMenu.Menu("Custom Time Trials", raceName, onMenuExitCallback);

            if (raceType == "circuit")
            {
                this.menu.AddListButton("Laps", this.GenerateLapsOptions());
            }
            this.menu.AddListButton("Time of Day", this.GenerateTimeOfDayOptions());
            this.menu.AddListButton("Weather", this.GenerateWeatherOptions());
            this.menu.AddListButton("Vehicle Damage", new List <dynamic> {
                "On", "Off"
            });
            this.menu.AddListButton("Traffic", new List <dynamic> {
                "On", "Off"
            });
            this.menu.AddButton("Start", onStartCallback);

            this.menu.Show();
        }