hide chat scrollbar when chat is not opened

This commit is contained in:
2025-02-14 01:12:51 +10:00
parent 76676f53f5
commit 3b182431ae
2 changed files with 3 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ func _unhandled_input(event: InputEvent) -> void:
open = true
_message_edit.visible = true
_message_edit.grab_focus()
_msg_scroll.vertical_scroll_mode = ScrollContainer.SCROLL_MODE_AUTO
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
@@ -43,6 +44,7 @@ func _close() -> void:
open = false
_message_edit.release_focus()
_message_edit.visible = false
_msg_scroll.vertical_scroll_mode = ScrollContainer.SCROLL_MODE_SHOW_NEVER
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED