feat: add nearby social interactions
This commit is contained in:
@@ -680,6 +680,7 @@ func _registration_texture_rect(nodeName: String, texturePath: String, rect: Rec
|
||||
return textureRect
|
||||
|
||||
func _ready() -> void:
|
||||
add_to_group("whaletown_escape_dismissible")
|
||||
_auth_manager = get_node_or_null("/root/AuthManager")
|
||||
_chat_manager = get_node_or_null("/root/ChatManager")
|
||||
_scene_manager = get_node_or_null("/root/SceneManager")
|
||||
@@ -1625,6 +1626,15 @@ func _hide_skin_workshop() -> void:
|
||||
if is_instance_valid(skin_workshop_overlay):
|
||||
skin_workshop_overlay.hide()
|
||||
|
||||
func is_escape_dismissible() -> bool:
|
||||
return is_instance_valid(skin_workshop_overlay) and skin_workshop_overlay.visible
|
||||
|
||||
func get_escape_priority() -> int:
|
||||
return 900
|
||||
|
||||
func request_escape_close() -> void:
|
||||
_hide_skin_workshop()
|
||||
|
||||
func _on_workshop_source_pressed() -> void:
|
||||
var err := DisplayServer.file_dialog_show(
|
||||
"选择角色参考图片",
|
||||
|
||||
Reference in New Issue
Block a user