juicermv / GTA-GPS-Redux

A complete GPS mod for Grand Theft Auto San Andreas
23 stars 4 forks source link

Less decimals when displaying the value of units (displayDistance) #30

Closed Jessyy closed 6 months ago

Jessyy commented 6 months ago

Currently there are 6 decimal placed, visually for a player is a bit overkill ( if you ask me ). image_2024-04-08_212802615

My recommendation for this situation, to have a new parameter in config that:

  1. rounds off the number to the specified value (e..g distanceDecimals = 6)
  2. for the most common (e..g distanceType = 3)

    0 - 539m 1 - 539.40m 2 - 539.401m 3 - 539.401672m

juicermv commented 6 months ago

Addressed this in the latest commit :) I don't really see anyone using anything above 3 decimal places and even that's redundant really so unless there's considerable pushback at the moment it's gonna be 1, and only on Mile/Kilometer distance.

juicermv commented 6 months ago

Addressed in 17ad804.