round down scan percent

This commit is contained in:
YuRaNnNzZZ 2023-07-19 03:13:33 +03:00
parent ab7e416453
commit 18a10e1f6c
Signed by: YuRaNnNzZZ
GPG Key ID: 5F71738C85A6006D

View File

@ -184,7 +184,7 @@ class MatterPanelScreen(
menu.patternsFiltered.getOrNull(index)?.let {
if (it.researchPercent < 1f) {
font.drawScaledAligned(graphics.pose(), graphics.bufferSource(), (it.researchPercent * 100.0).roundToInt().toString() + "%", .5f, RenderGravity.BOTTOM_RIGHT, width - 1f, height - 1f, true, color = RGBAColor.WHITE)
font.drawScaledAligned(graphics.pose(), graphics.bufferSource(), (it.researchPercent * 100.0).toInt().toString() + "%", .5f, RenderGravity.BOTTOM_RIGHT, width - 1f, height - 1f, true, color = RGBAColor.WHITE)
}
}
} else {