客户端问题修改
This commit is contained in:
@@ -102,6 +102,8 @@ func build(assets_root: String, proto: Node, race: int, pump := Callable()) -> b
|
||||
model.set("gr2_path", gr2) # 重:解 gr2 + 建网格
|
||||
if pump.is_valid(): pump.call()
|
||||
add_child(model)
|
||||
model.ready.connect(_ground_model)
|
||||
_ground_model()
|
||||
_load_motlist()
|
||||
if ClassDB.class_exists("Metin2AnimPlayer"):
|
||||
anim = ClassDB.instantiate("Metin2AnimPlayer")
|
||||
@@ -160,6 +162,10 @@ func set_display_name(n: String) -> void:
|
||||
add_child(tag)
|
||||
tag.text = n
|
||||
|
||||
func _ground_model() -> void:
|
||||
if model and model.has_method("get_ground_offset"):
|
||||
model.position.y = float(model.call("get_ground_offset"))
|
||||
|
||||
# --- 内部 -------------------------------------------------------------------
|
||||
|
||||
func _folder_candidates(proto: Node, race: int) -> Array:
|
||||
|
||||
Reference in New Issue
Block a user