1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-06 03:37:13 +08:00
Files
Dog-Lynx-And-HCN/components/Abstracts/SkillIconBase.tscn
T
fallingshrimp 234a632f39 refactor(UI): 调整技能图标布局并优化冷却效果
修改技能图标面板的锚点设置以改善布局
将冷却进度着色器逻辑反转并优化视觉效果
统一材质管理方式,移除重复的材质复制
2025-09-10 06:31:53 +08:00

41 lines
1.4 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://ufl4kek8hrmt"]
[ext_resource type="Shader" path="res://shaders/CooldownProgress.gdshader" id="1_jaivk"]
[ext_resource type="Script" 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"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3fyf3"]
shader = ExtResource("1_jaivk")
shader_parameter/progress = 0.55
shader_parameter/backAlpha = 0.25
shader_parameter/edgeHeight = 0.05
shader_parameter/trailHeight = 0.3
shader_parameter/trailAlpha = 0.5
[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.5)
corner_radius_top_left = 20
corner_radius_top_right = 20
corner_radius_bottom_right = 20
corner_radius_bottom_left = 20
[node name="SkillIconBase" type="PanelContainer"]
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