Features
New updates to Fuel Calculator by @23Kev
Add a new Target Consumption section that shows what fuel consumption rate is required to make current fuel last different lap counts (±1 from current).
- Calculates target consumption for lapsWithFuel -1, current, and +1
- Highlights current target in blue for easy identification
- Shows in both vertical and horizontal layouts
- Dynamically adjusts based on current fuel level
- Only displays when lapsWithFuel >= 0.5 (meaningful fuel data)
Implementation:
- Added targetScenarios calculation in useFuelCalculation hook
- Added UI sections for both vertical and horizontal layouts
- Renamed showFuelSave to showFuelScenarios setting with backward compatibility
- Added Storybook stories to showcase the feature
- Preserves targetScenarios when fuel level changes in garage
Example:
If current fuel = 55L with 2.5 L/lap average (22 laps of fuel):
- 21 Laps: 2.62 L/lap
- 22 Laps: 2.50 L/lap (highlighted)
- 23 Laps: 2.39 L/lap
Display widget names in Edit Mode by @23Kev
Introducing new Precipitation (%) property by @RenatoCoicev
- Can be used in Standings/Relative
- Can be set either in the header or footer (disabled by default)
Configure buffer for the input trace
You can now configure the number of samples for the input trace to show a shorter/longer window for the input traces
input-trace-window.mov
Show drivers offtrack (yellow flag) in Track Map
This checks the track surface for the player and shows a yellow outline when they are not on the track surface, behaves the same way the yellow flag appears in standing/relative.
Allow customizable decimal places for relative delta values by @DPShillcock
- Defaults to 2 decimal places
- Configure 1 to 3
Support reordering weather items by @DPShillcock
Can now reorder components within the weather widget
Better scaling support for Input bars
Last change Introduced more scalability for the Input widget which had some unexpected behaviour in certain configuration. This has been refined again so that the width of the bar is propotional to the height of the widget rather than the width. The steering wheel also scales better now.
input-scaling.mp4
Bug Fixes
- Weather: Air Temp was not being displayed correctly (was showing Track Temp)
- Weather: Wind component is now centred correctly in browser mode
- Track Map: Monza GP and No Chicane configuration is now available
- Fuel Calculator: Laps was not appearing (regression from 0.33)
Changelog
- feat: add fuel scenarios to fuel calculator by @23Kev in #192
- feat: add widget names to Edit Mode labels by @23Kev in #193
- feat: Introducing Precipitation (%) as a property by @RenatoCoicev in #191
- feat: settings reorg by @tariknz in #189
- feat: setting trace length for input traces by @tariknz in #196
- feat: show drivers offtrack in trackmap by @tariknz in #197
- feat: allow customizable decimal places for delta values (default: 2) by @DPShillcock in #201
- feat: weather reordering by @DPShillcock in #200
- fix: air temp mapped wrong in the weather widget by @tariknz in #198
- fix: center WindDirection component in both browser and Electron views by @DPShillcock in #199
- fix: monza gp and no chicane maps by @tariknz in #202
- fix: undefiend humidity now shows as - % instead of NaN% by @tariknz in #203
- fix: revert unintended change on fuel calc by @tariknz in #188
- fix: input bars don't appear too wide by @tariknz in #190
- chore: reorganize stories by @tariknz in #187
- chore: warn fix to missing tracking key for input container by @tariknz in #194
New Contributors
- @RenatoCoicev made their first contribution in #191
Full Changelog: v0.0.34...v0.0.35