mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-16 16:46:07 +09:00
prev commit didn't work
This commit is contained in:
@@ -61,9 +61,8 @@ class UIItemTextButtonList(
|
|||||||
|
|
||||||
val h = height.toFloat()
|
val h = height.toFloat()
|
||||||
val ss = labelsList.size.toFloat()
|
val ss = labelsList.size.toFloat()
|
||||||
val half_lh = UIItemTextButton.height / 2f
|
val lh = UIItemTextButton.height
|
||||||
val vertOff = (i * h/ss - half_lh).roundInt()
|
val vertOff = (h/ss * i + (h/ss - lh) / 2f).roundInt()
|
||||||
println("$i -> $vertOff for height $height")
|
|
||||||
|
|
||||||
if (!kinematic) {
|
if (!kinematic) {
|
||||||
UIItemTextButton(
|
UIItemTextButton(
|
||||||
|
|||||||
Reference in New Issue
Block a user