D5/UI/main/ui_main.gd
2025-05-09 15:36:04 +08:00

14 lines
343 B
GDScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

extends CanvasLayer
@onready var popup_ui_group = $Pop_Up
# 隐藏所有弹出窗口
func hide_all_popup():
#遍历$Pop_Up下面所有子节点全部hide()
for each_node in popup_ui_group.get_children():
each_node.hide()
func show_popup(group_name):
var popup_ui = get_tree().get_first_node_in_group(group_name)
popup_ui.show_up()