feat: add nearby social interactions

This commit is contained in:
ANG-Server
2026-07-21 22:19:41 +08:00
parent 0bab768b14
commit 9dee47492c
43 changed files with 1499 additions and 77 deletions

View File

@@ -62,6 +62,7 @@ var _transitionTween: Tween
var _toastTween: Tween
func _ready() -> void:
add_to_group("whaletown_escape_dismissible")
visible = false
mouse_filter = Control.MOUSE_FILTER_IGNORE
set_process(false)
@@ -82,6 +83,8 @@ func _notification(what: int) -> void:
_position_panel()
func _input(event: InputEvent) -> void:
if get_viewport().is_input_handled():
return
if not _isOpen:
return
if event is InputEventKey:
@@ -120,6 +123,18 @@ func hide_panel() -> void:
func is_panel_open() -> bool:
return _isOpen
func is_escape_dismissible() -> bool:
return _isOpen
func get_escape_priority() -> int:
return 700
func request_escape_close() -> void:
if is_instance_valid(_confirmDialog) and _confirmDialog.visible:
_hide_confirm_dialog()
return
hide_panel()
func _build_ui() -> void:
_overlay = ColorRect.new()
_overlay.name = "mallDimOverlay"