fix(safebox): fix inventory_changed signal arg mismatch and optimize warp mob names
This commit is contained in:
@@ -66,7 +66,7 @@ func setup(m2client: Node, parent: Node, proto_node: Node = null, assets_overrid
|
||||
if client and client.has_signal("safebox_changed"):
|
||||
client.safebox_changed.connect(refresh)
|
||||
if client and client.has_signal("inventory_changed"):
|
||||
client.inventory_changed.connect(_refresh_inventory_candidates)
|
||||
client.inventory_changed.connect(func(_w = 0, _c = 0): _refresh_inventory_candidates())
|
||||
if client and client.has_signal("safebox_password_required"):
|
||||
client.safebox_password_required.connect(func(): _ask_password("safebox"))
|
||||
if client and client.has_signal("safebox_wrong_password"):
|
||||
@@ -422,7 +422,7 @@ func _apply_mobile_layout() -> void:
|
||||
if _exit_btn:
|
||||
_exit_btn.position = Vector2(51, 381)
|
||||
|
||||
func _refresh_inventory_candidates() -> void:
|
||||
func _refresh_inventory_candidates(_w: int = 0, _c: int = 0) -> void:
|
||||
if _mobile_inventory_list == null or not is_open():
|
||||
return
|
||||
for child in _mobile_inventory_list.get_children():
|
||||
|
||||
Reference in New Issue
Block a user