Pimentoso/mini4wdchrono

Save races in different JSON files

Closed this issue · 4 comments

  • Race data get saved into a different nconf file instead of the configuration one. This includes tournament, track, times etc
  • Race name is asked when user selects 'new race', and json file is saved - {timestamp}.json
  • All race files are stored in a subfolder
  • On program startup, the latest file is autoloaded
  • Makes for future loading function to see old race data

Need to save the latest json filename in normal config so the program knows what to load when it's opened.

Also enable an override for average speed at race level.

Keys in race specific config file:

  • raceName
  • track
  • tournament
  • currManche
  • currRound
  • playerTimes
  • race
  • timeThreshold
  • speedThreshold
  • startDelay

Plan a race switch function that lets you switch between active races during the same day. It would be nice to have a dropdown menu with all the recent races and the user can switch between them.

Followup: #45