mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 18:14:06 +09:00
UI testing env and working text buttons
Former-commit-id: b8fd27c7f71f9bc8da259ae132badcbc9ce117ac
This commit is contained in:
@@ -94,11 +94,11 @@ class ActorValueTracker constructor() : JFrame() {
|
||||
override fun mouseExited(e: MouseEvent?) { }
|
||||
override fun mousePressed(e: MouseEvent?) {
|
||||
if (actorIDField.text.toLowerCase() == "player") {
|
||||
actor = Terrarum.ingame.player
|
||||
actor = Terrarum.ingame!!.player
|
||||
actorValue = actor!!.actorValue
|
||||
}
|
||||
else if (actorIDField.text.isNotBlank()) {
|
||||
actor = Terrarum.ingame.getActorByID(actorIDField.text.toInt()) as ActorWithSprite
|
||||
actor = Terrarum.ingame!!.getActorByID(actorIDField.text.toInt()) as ActorWithSprite
|
||||
actorValue = actor!!.actorValue
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user