Improved transporter lock strength formatting in LUA scripts

This commit is contained in:
LemADEC 2022-01-15 20:39:19 +01:00
parent dd2b177583
commit 6d1cf48fd1
2 changed files with 6 additions and 6 deletions

View file

@ -179,13 +179,13 @@ function transporter_page_writeLockStrength(lockStrength)
else
w.setColorWarning()
end
w.write(w.format_float(percent) .. " % ")
w.write(w.format_float(percent) .. " %")
else
w.setColorDisabled()
w.write(w.format_string("-none-", 7))
w.write("-none-")
end
w.setColorNormal()
w.write(".")
w.write(". ")
end
function transporter_setEnergyFactor()

View file

@ -178,13 +178,13 @@ function transporter_page_writeLockStrength(lockStrength)
else
w.setColorWarning()
end
w.write(w.format_float(percent) .. " % ")
w.write(w.format_float(percent) .. " %")
else
w.setColorDisabled()
w.write(w.format_string("-none-", 7))
w.write("-none-")
end
w.setColorNormal()
w.write(".")
w.write(". ")
end
function transporter_setEnergyFactor()