round down scan percent
This commit is contained in:
parent
ab7e416453
commit
18a10e1f6c
@ -184,7 +184,7 @@ class MatterPanelScreen(
|
|||||||
|
|
||||||
menu.patternsFiltered.getOrNull(index)?.let {
|
menu.patternsFiltered.getOrNull(index)?.let {
|
||||||
if (it.researchPercent < 1f) {
|
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 {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user