Improved UI event system

This commit is contained in:
2024-02-25 23:01:17 +01:00
parent 44fd041c60
commit 0a489e5d2f
16 changed files with 138 additions and 152 deletions

View File

@ -23,6 +23,6 @@ func on_focus_exited():
tween.tween_property(self, "modulate", Color(1, 1, 1, 0), 0.2)
func on_text_submitted(message: String):
(owner as UI).chat_message_submitted.emit(message)
text = ""
release_focus()
(owner as Chat).message_submitted.emit(message)