- 修复Z轴逻辑调整精灵与物品的排序 - 渲染前强制 content_container.modulate.a = 1.0,避免内容区被透明度状态卡住导致看起来空白
12 lines
312 B
GDScript
12 lines
312 B
GDScript
extends StaticBody2D
|
|
|
|
func interact():
|
|
# Check if dialog already exists
|
|
if get_tree().root.has_node("NoticeDialog"):
|
|
return null
|
|
|
|
var dialog = preload("res://scenes/ui/notice_dialog.tscn").instantiate()
|
|
dialog.name = "NoticeDialog"
|
|
get_tree().root.add_child(dialog)
|
|
return null # No bubble text needed
|