Merge remote-tracking branch 'origin/demo'

This commit is contained in:
cakipaul 2025-07-30 21:24:25 +08:00
commit e68f1e1f05

View File

@ -38,15 +38,18 @@ func show_center_texture(texture, duration := 3.0):
tween.tween_interval(max(0.1, duration - 0.8)) tween.tween_interval(max(0.1, duration - 0.8))
tween.tween_property(center_texture, "modulate:a", 0, 0.4) tween.tween_property(center_texture, "modulate:a", 0, 0.4)
var center_notification_tween: Tween
func show_center_notification(msg, duration := 3.0): func show_center_notification(msg, duration := 3.0):
if not top_center_label: if not top_center_label:
return return
top_center_label.text = msg top_center_label.text = msg
var tween = create_tween() if center_notification_tween and center_notification_tween.is_running():
tween.tween_property(top_center_label, "modulate:a", 1, 0.4) center_notification_tween.kill()
tween.tween_interval(max(0.1, duration - 0.8)) center_notification_tween = create_tween()
tween.tween_property(top_center_label, "modulate:a", 0, 0.4) center_notification_tween.tween_property(top_center_label, "modulate:a", 1, 0.4)
center_notification_tween.tween_interval(max(0.1, duration - 0.8))
center_notification_tween.tween_property(top_center_label, "modulate:a", 0, 0.4)
func show_notification(msg, number): func show_notification(msg, number):