mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 02:42:16 -04:00
Fixed dev console requiring scrolling on small UI settings
This commit is contained in:
parent
f3c8e2d009
commit
e8fd27bf34
@ -104,6 +104,7 @@ class DevConsolePopup(val screen: WorldScreen) : Popup(screen) {
|
||||
fun String.removeFromEnd(n: Int) = substring(0, (length - n).coerceAtLeast(0))
|
||||
textField.text = textField.text.removeFromEnd(toRemove) + toAdd
|
||||
textField.cursorPosition = Int.MAX_VALUE // because the setText implementation actively resets it after the paste it uses (auto capped at length)
|
||||
pack()
|
||||
}
|
||||
|
||||
private fun onAltDelete() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user