1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/components/UI/SkillIcon.tscn
T
fallingshrimp 0138d1017f feat(技能图标): 添加冷却进度百分比功能并优化能量显示
为CooldownTimer添加percent方法计算冷却进度百分比
重构SkillIcon使用新的冷却进度和能量填充进度计算
添加白色圆圈SVG资源作为粒子效果
优化EntityBase的能量计算方法
更新SkillIcon场景配置
2026-01-24 09:43:25 +08:00

72 lines
2.5 KiB
Plaintext

[gd_scene load_steps=12 format=3 uid="uid://ufl4kek8hrmt"]
[ext_resource type="Shader" uid="uid://u6weu6llk46k" path="res://shaders/CooldownProgress.gdshader" id="1_jaivk"]
[ext_resource type="Script" uid="uid://bp8catom6i0ul" path="res://scripts/Statemachine/SkillIcon.gd" id="1_l7say"]
[ext_resource type="Texture2D" uid="uid://cp4ypuarjoshp" path="res://resources/skillIcons/purple-crystal.png" id="2_hh1bl"]
[ext_resource type="Texture2D" uid="uid://bmpo06vnnywim" path="res://resources/common/whitecircle.svg" id="4_blv04"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3fyf3"]
shader = ExtResource("1_jaivk")
shader_parameter/progress = 0.5
shader_parameter/backAlpha = 0.0
shader_parameter/edgeHeight = 0.06
shader_parameter/edgeColor = Color(1, 1, 1, 1)
shader_parameter/trailHeight = 0.4
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_a60wd"]
content_margin_left = 5.0
content_margin_top = 5.0
content_margin_right = 5.0
content_margin_bottom = 5.0
bg_color = Color(0, 0, 0, 0.7)
corner_radius_top_left = 20
corner_radius_top_right = 20
corner_radius_bottom_right = 20
corner_radius_bottom_left = 20
[sub_resource type="Curve" id="Curve_rgp6n"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.504673, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_qk3pj"]
curve = SubResource("Curve_rgp6n")
[sub_resource type="Curve" id="Curve_h7g2c"]
_limits = [0.0, 2.0, 0.0, 1.0]
_data = [Vector2(0, 0.4), 0.0, 0.0, 0, 0, Vector2(1, 0.6), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_05v0d"]
curve = SubResource("Curve_h7g2c")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_7cgpa"]
particle_flag_disable_z = true
gravity = Vector3(0, 0, 0)
scale_curve = SubResource("CurveTexture_05v0d")
alpha_curve = SubResource("CurveTexture_qk3pj")
[node name="SkillIconBase" type="PanelContainer"]
z_index = 1
texture_filter = 2
material = SubResource("ShaderMaterial_3fyf3")
custom_minimum_size = Vector2(40, 40)
offset_right = 30.0
offset_bottom = 30.0
theme_override_styles/panel = SubResource("StyleBoxFlat_a60wd")
script = ExtResource("1_l7say")
[node name="texture" type="TextureRect" parent="."]
unique_name_in_owner = true
z_index = -1
layout_mode = 2
texture = ExtResource("2_hh1bl")
expand_mode = 1
stretch_mode = 5
[node name="particle" type="GPUParticles2D" parent="."]
unique_name_in_owner = true
position = Vector2(20, 20)
amount = 2
texture = ExtResource("4_blv04")
process_material = SubResource("ParticleProcessMaterial_7cgpa")