Ejemplo n.º 1
0
        private void LoadingRace_Loaded(object sender, RaceLoadedEventArgs e)
        {
            hud.SetRaceName(e.race.Name);
            hud.SetSelectedIdx("S", editingMode);
            hud.SetTotalCP(e.race.checkpoints.Count - 1);

            checkpointIndex = 0;
            editingRace     = e.race;
            UpdatePlayerCheckpoint();
            isEditing   = true;
            editingMode = EditingMode.Checkpoints;
            player.SendClientMessage(Color.Green, "Race #" + e.race.Id + " loaded successfully in creation mode");
        }
Ejemplo n.º 2
0
 private void LoadingRace_Loaded(object sender, RaceLoadedEventArgs e)
 {
     if (e.race.IsPlayable())
     {
         loadedRace = e.race;
         OnLoaded(new EventLoadedEventArgs {
             EventLoaded = this, ErrorMessage = null
         });
     }
     else
     {
         OnLoaded(new EventLoadedEventArgs {
             ErrorMessage = "This race is not playable !"
         });
     }
 }