forked from xiangwang25/whale-town-front-v2
feat: add nearby social interactions
This commit is contained in:
@@ -30,6 +30,7 @@ var _resignConfirmButton: Button
|
||||
var _resignCancelButton: Button
|
||||
|
||||
func _ready() -> void:
|
||||
add_to_group("whaletown_escape_dismissible")
|
||||
chatFrame.visible = false
|
||||
purchaseButton.pressed.connect(_on_purchase_pressed)
|
||||
sendButton.pressed.connect(_on_send_pressed)
|
||||
@@ -238,6 +239,18 @@ func _on_close_pressed() -> void:
|
||||
_waitingForReply = false
|
||||
chatInput.release_focus()
|
||||
|
||||
func is_escape_dismissible() -> bool:
|
||||
return (is_instance_valid(_resignDialog) and _resignDialog.visible) or chatFrame.visible
|
||||
|
||||
func get_escape_priority() -> int:
|
||||
return 850
|
||||
|
||||
func request_escape_close() -> void:
|
||||
if is_instance_valid(_resignDialog) and _resignDialog.visible:
|
||||
_hide_resign_dialog()
|
||||
return
|
||||
_on_close_pressed()
|
||||
|
||||
func _confirm_resign() -> void:
|
||||
var servicePointId := str(_resignTarget.get("service_point_id", "")).strip_edges()
|
||||
if servicePointId.is_empty():
|
||||
|
||||
Reference in New Issue
Block a user