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