大更新,太多了,具体进游戏查看详细更新内容
反正很多
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://ffw2vjwnwvew"]
|
||||
|
||||
[ext_resource type="Script" path="res://components/ToastShow.gd" id="1_0rpwy"]
|
||||
[ext_resource type="Script" uid="uid://caly13tf4ni1d" path="res://Components/ToastShow.gd" id="1_0rpwy"]
|
||||
|
||||
[node name="ToastShow" type="PanelContainer"]
|
||||
offset_left = 469.0
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
# 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)
|
||||
@@ -1,6 +0,0 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cvip7owyfmqav"]
|
||||
|
||||
[ext_resource type="Script" path="res://components/toast.gd" id="1_rdgmi"]
|
||||
|
||||
[node name="Toast" type="Node"]
|
||||
script = ExtResource("1_rdgmi")
|
||||
Reference in New Issue
Block a user