mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-11 14:21:52 +09:00
fixed bad color rendering on blocksdrawer and lightmaprenderer
This commit is contained in:
@@ -123,11 +123,18 @@ class ConsoleWindow : UICanvas, KeyControlled {
|
||||
return true
|
||||
}
|
||||
|
||||
override fun keyTyped(character: Char): Boolean {
|
||||
commandInputPool!!.append(character)
|
||||
inputCursorPos += 1
|
||||
val acceptedChars = "1234567890-=qwfpgjluy;[]\\arstdhneio'zxcvbkm,./!@#$%^&*()_+QWFPGJLUY:{}|ARSTDHNEIO\"ZXCVBKM<>? ".toSet()
|
||||
|
||||
return true
|
||||
override fun keyTyped(character: Char): Boolean {
|
||||
if (character in acceptedChars) {
|
||||
commandInputPool!!.append(character)
|
||||
inputCursorPos += 1
|
||||
|
||||
return true
|
||||
}
|
||||
else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
override fun keyUp(keycode: Int): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user