mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-30 16:01:53 +08:00
feat(技能图标): 改进冷却进度视觉效果和样式
- 移除进度值的clamp限制,允许超出范围效果 - 为冷却进度着色器添加边缘高光和拖尾效果 - 调整图标容器圆角和最小尺寸 - 更新材质参数以支持新的着色器效果
This commit is contained in:
@@ -11,4 +11,4 @@ func _physics_process(_delta):
|
||||
if is_instance_valid(weapon):
|
||||
textureRect.texture = weapon.avatarTexture
|
||||
var progress = weapon.cooldownTimer.timeSinceLastStart() / weapon.cooldownTimer.cooldown
|
||||
textureRect.material.set_shader_parameter("progress", clamp(progress, 0, 1))
|
||||
textureRect.material.set_shader_parameter("progress", progress)
|
||||
|
||||
Reference in New Issue
Block a user