完善客户端功能并同步差距文档
This commit is contained in:
@@ -32,6 +32,8 @@ func is_open() -> bool:
|
||||
func close() -> void:
|
||||
if _root:
|
||||
_root.visible = false
|
||||
if _invite_dialog:
|
||||
_invite_dialog.hide()
|
||||
|
||||
func toggle() -> void:
|
||||
_root.visible = not _root.visible
|
||||
@@ -94,6 +96,8 @@ func _on_friend_invite(name: String) -> void:
|
||||
func _answer_invite(accept: bool) -> void:
|
||||
var name := _pending_invite
|
||||
_pending_invite = ""
|
||||
if _invite_dialog:
|
||||
_invite_dialog.hide()
|
||||
if name != "" and client != null and client.has_method("friend_answer"):
|
||||
client.friend_answer(name, accept)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user