click on palette item to select it

This commit is contained in:
minjaesong
2021-11-18 11:39:25 +09:00
parent 3f88e7965a
commit 63d7009dcf
5 changed files with 59 additions and 33 deletions

View File

@@ -30,8 +30,8 @@ class UIItemInlineRadioButtons(
private fun getCellX(i: Int) = posX - 3 + cellWidth * i + 3 * (i + 1)
override fun update(delta: Float) {
val mx = relativeMouseX
val my = relativeMouseY
val mx = itemRelativeMouseX
val my = itemRelativeMouseY
mouseOnSelection = -1
val oldSelection = selection
if (my in 0 until height) {