17 lines
328 B
GDScript
17 lines
328 B
GDScript
extends Control
|
|
|
|
onready var chat_bar = $ResizablePanel/LineEdit
|
|
|
|
func _input(event):
|
|
if event is InputEventMouseButton:
|
|
if not chat_bar_focus:
|
|
chat_bar.release_focus()
|
|
|
|
var chat_bar_focus = false
|
|
|
|
func _chat_bar_status(editing):
|
|
$"/root/scene".writing = editing
|
|
|
|
func _chat_bar_focus(entered):
|
|
chat_bar_focus = entered
|