hide chat scrollbar when chat is not opened
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user