mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +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 keycapFill = Toolkit.Theme.COL_CELL_FILL
|
||||||
|
|
||||||
private val keylabelCol = Toolkit.Theme.COL_DISABLED
|
private val keylabelCol = Color(0xddddddff.toInt())
|
||||||
private val configuredKeyCol = Color.WHITE
|
private val configuredKeyCol = Color.WHITE
|
||||||
|
|
||||||
override fun update(delta: Float) {
|
override fun update(delta: Float) {
|
||||||
@@ -280,12 +280,8 @@ private class UIItemInputKeycap(
|
|||||||
|
|
||||||
batch.color = if (key == null)
|
batch.color = if (key == null)
|
||||||
borderKeyForbidden
|
borderKeyForbidden
|
||||||
else if (Gdx.input.isKeyPressed(key) && selected)
|
else if (Gdx.input.isKeyPressed(key))
|
||||||
borderKeyPressedAndSelected
|
|
||||||
else if (Gdx.input.isKeyPressed(key) || selected)
|
|
||||||
borderKeyPressed
|
borderKeyPressed
|
||||||
else if (mouseUp)
|
|
||||||
borderMouseUp
|
|
||||||
else
|
else
|
||||||
borderKeyNormal
|
borderKeyNormal
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user