mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 14:04:05 +09:00
reducing number of warnings on the codebase
This commit is contained in:
@@ -30,13 +30,13 @@ class UIVitalMetre(
|
||||
private val gap = 4f
|
||||
|
||||
override var width: Int = 80 + 2 * margin; set(value) { throw Error("operation not permitted") }
|
||||
override var height: Int; get() = player.baseHitboxH ?: 0 * 3 + margin; set(value) { throw Error("operation not permitted") }
|
||||
override var height: Int; get() = player.baseHitboxH; set(value) { throw Error("operation not permitted") }
|
||||
|
||||
override var openCloseTime: Second = 0.05f
|
||||
|
||||
//private val relativePX = width / 2f
|
||||
private val offsetY: Float; get() = (player.baseHitboxH ?: 0) * 1.5f
|
||||
private val circleRadius: Float; get() = (player.baseHitboxH ?: 0) * 3f
|
||||
private val offsetY: Float; get() = player.baseHitboxH * 1.5f
|
||||
private val circleRadius: Float; get() = player.baseHitboxH * 3f
|
||||
|
||||
private val theta = 33f
|
||||
private val halfTheta = theta / 2f
|
||||
|
||||
Reference in New Issue
Block a user