mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
keylayout config keycaps to not respond to the mouseup
This commit is contained in:
@@ -260,7 +260,7 @@ private class UIItemInputKeycap(
|
||||
|
||||
private val keycapFill = Toolkit.Theme.COL_CELL_FILL
|
||||
|
||||
private val keylabelCol = Toolkit.Theme.COL_DISABLED
|
||||
private val keylabelCol = Color(0xddddddff.toInt())
|
||||
private val configuredKeyCol = Color.WHITE
|
||||
|
||||
override fun update(delta: Float) {
|
||||
@@ -280,12 +280,8 @@ private class UIItemInputKeycap(
|
||||
|
||||
batch.color = if (key == null)
|
||||
borderKeyForbidden
|
||||
else if (Gdx.input.isKeyPressed(key) && selected)
|
||||
borderKeyPressedAndSelected
|
||||
else if (Gdx.input.isKeyPressed(key) || selected)
|
||||
else if (Gdx.input.isKeyPressed(key))
|
||||
borderKeyPressed
|
||||
else if (mouseUp)
|
||||
borderMouseUp
|
||||
else
|
||||
borderKeyNormal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user