更新三个按钮 修了一堆bug

This commit is contained in:
2025-05-27 19:53:17 +08:00
parent 8215cfa3ee
commit 94f09b8dd9
47 changed files with 10303 additions and 3085 deletions

View File

@@ -15,7 +15,7 @@ func setup(text: String, color: Color, duration: float, fade: float):
display_time = duration
fade_duration = fade
# 确保添加到场景树
Engine.get_main_loop().root.add_child(self)
Engine.get_main_loop().root.get_node("main/UI").add_child(self)
Toast(text, color)
func Toast(text: String, text_color: Color = Color.WHITE):