Skip to content

Commit

Permalink
format floats in playeroptions xmod displays
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 18, 2018
1 parent 28b32bd commit a27c7e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Themes/_fallback/Scripts/03 CustomSpeedMods.lua
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ function ArbitrarySpeedMods()
local big_inc= inc_large
local small_inc= increment
if show_x_incs then
big_inc= tostring(big_inc / 100)
small_inc= tostring(small_inc / 100)
big_inc= string.format("%.2fx",tostring(big_inc/100))
small_inc= string.format("%.2fx",tostring(small_inc/100))
else
big_inc= tostring(big_inc)
small_inc= tostring(small_inc)
Expand All @@ -446,7 +446,7 @@ function ArbitrarySpeedMods()
local val= self.CurValues[pn]
if val then
if val.mode == "x" then
table.insert(self.Choices, 1, (val.speed/100) .. "x")
table.insert(self.Choices, 1, string.format("%.2fx",tostring(val.speed/100)))
else
table.insert(self.Choices, 1, val.mode .. val.speed)
end
Expand Down

0 comments on commit a27c7e9

Please sign in to comment.