mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-25 21:12:29 +08:00
feat(技能图标): 添加技能冷却显示功能
- 新增 SkillIcon.gd 脚本用于管理武器技能图标显示 - 修改 CooldownProgress.gdshader 增加背景透明度参数 - 更新 CooldownTimer.gd 添加时间计算方法 - 重构 SkillIconBase.tscn 场景以支持新功能
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
shader_type canvas_item;
|
||||
uniform float progress:hint_range(0.0, 1.0, 0.01)=0.5;
|
||||
uniform float backAlpha:hint_range(0.0, 1.0, 0.01)=0.25;
|
||||
void fragment() {
|
||||
COLOR=texture(TEXTURE,UV);
|
||||
if(UV.y>=progress){
|
||||
COLOR.a*=0.5;
|
||||
COLOR.a*=backAlpha;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user