fix: clicking outside inventory panel closes overlay
This commit is contained in:
@@ -180,10 +180,12 @@ func _gui_input(event: InputEvent) -> void:
|
||||
if not _is_visible:
|
||||
return
|
||||
|
||||
if event is InputEventMouseButton:
|
||||
if event is InputEventMouseButton:
|
||||
if event.button_index == 1 and event.pressed:
|
||||
if not _is_dragging:
|
||||
pass
|
||||
hide_overlay()
|
||||
close_requested.emit()
|
||||
return
|
||||
elif event.button_index == 1 and not event.pressed:
|
||||
if _is_dragging:
|
||||
if _hovered_slot == null:
|
||||
|
||||
Reference in New Issue
Block a user