semi-idle-arpg/scenes/ability_player.tscn
2024-11-05 09:29:20 -07:00

43 lines
1.3 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://dvwo26vsk46tl"]
[ext_resource type="Texture2D" uid="uid://dvvtnenxps3yu" path="res://assets/high-shot.svg" id="1_djmgc"]
[ext_resource type="Script" path="res://scripts/AbilityPlayer.gd" id="2_l8ort"]
[sub_resource type="Curve" id="Curve_kjbdd"]
_data = [Vector2(0.605263, 0.767048), 0.0, 0.0, 0, 0]
point_count = 1
[sub_resource type="CurveTexture" id="CurveTexture_4mo46"]
texture_mode = 1
curve = SubResource("Curve_kjbdd")
[node name="Ability" type="PanelContainer"]
offset_right = 64.0
offset_bottom = 64.0
size_flags_horizontal = 4
size_flags_vertical = 4
script = ExtResource("2_l8ort")
[node name="AutoCooldown" type="Timer" parent="."]
[node name="AttackCooldown" type="Timer" parent="."]
one_shot = true
[node name="AbilityIcon" type="TextureRect" parent="."]
layout_mode = 2
texture = ExtResource("1_djmgc")
expand_mode = 1
[node name="CooldownIndicator" type="TextureProgressBar" parent="."]
modulate = Color(1, 1, 1, 0.631373)
layout_mode = 2
max_value = 0.2
step = 0.01
value = 0.09
fill_mode = 4
nine_patch_stretch = true
texture_progress = SubResource("CurveTexture_4mo46")
[connection signal="timeout" from="AutoCooldown" to="." method="_on_auto_cooldown_timeout"]
[connection signal="timeout" from="AttackCooldown" to="." method="_on_attack_cooldown_timeout"]