大更新,太多了,具体进游戏查看详细更新内容

反正很多
This commit is contained in:
2025-05-27 11:09:09 +08:00
parent a1e71a6a79
commit 8215cfa3ee
382 changed files with 13838 additions and 2974 deletions

12
GlobalScript/Toast.gd Normal file
View File

@@ -0,0 +1,12 @@
# toast.gd
extends Node
const ToastScene = preload("res://components/ToastShow.tscn")
static func show(text: String,
color: Color = Color.WHITE,
duration: float = 3.0,
fade: float = 1.0) -> void:
var toast = ToastScene.instantiate()
# 延迟设置参数确保节点初始化完成
toast.call_deferred("setup", text, color, duration, fade)