mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 01:54:04 +09:00
minor changes
This commit is contained in:
@@ -527,10 +527,8 @@ class BasicDebugInfoWindow : UICanvas() {
|
|||||||
val downDb = fullscaleToDecibels(it.downForce.toDouble())
|
val downDb = fullscaleToDecibels(it.downForce.toDouble())
|
||||||
if (downDb.isFinite()) {
|
if (downDb.isFinite()) {
|
||||||
val h = meterHeight + ((downDb + dbLow) / dbLow * -meterHeight).coerceAtMost(0.0).toFloat()
|
val h = meterHeight + ((downDb + dbLow) / dbLow * -meterHeight).coerceAtMost(0.0).toFloat()
|
||||||
batch.color = COL_METER_COMP_BAR2
|
|
||||||
Toolkit.fillArea(batch, x + 32f, faderY + 18f, 1f, h)
|
|
||||||
batch.color = COL_METER_COMP_BAR
|
batch.color = COL_METER_COMP_BAR
|
||||||
Toolkit.fillArea(batch, x + 33f, faderY + 18f, 1f, h)
|
Toolkit.fillArea(batch, x + 33f, faderY + 18f, 2f, h)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user