updating project files
Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 31s
Create tag and build when new code gets to main / Test (push) Has been cancelled
Create tag and build when new code gets to main / Export (push) Has been cancelled

This commit is contained in:
2026-01-28 09:50:10 +01:00
parent 119850a7b4
commit af1f6da98d
656 changed files with 12395 additions and 5889 deletions

View File

@@ -1,26 +1,26 @@
[gd_scene load_steps=11 format=3 uid="uid://cnqh7qot0estd"]
[gd_scene format=3 uid="uid://cnqh7qot0estd"]
[ext_resource type="PackedScene" uid="uid://bcwkugn6v3oy7" path="res://addons/godot_state_charts/utilities/state_chart_debugger.tscn" id="1_oec6f"]
[ext_resource type="PackedScene" uid="uid://ch1pukkyc07qo" path="res://godot_state_charts_examples/cooldown/skill_button/skill_button.tscn" id="2_aahy2"]
[ext_resource type="Texture2D" uid="uid://bphe0g2d306fe" path="res://godot_state_charts_examples/cooldown/icons/enchant-red-3.png" id="3_a8h0q"]
[ext_resource type="Texture2D" uid="uid://bjmc4abduaxww" path="res://godot_state_charts_examples/cooldown/icons/fireball-eerie-2.png" id="4_jhd8u"]
[ext_resource type="Texture2D" uid="uid://b87nmomi1l48x" path="res://godot_state_charts_examples/cooldown/icons/heal-jade-2.png" id="5_xxunm"]
[ext_resource type="Script" path="res://addons/godot_state_charts/state_chart.gd" id="6_d3pqh"]
[ext_resource type="Script" path="res://addons/godot_state_charts/parallel_state.gd" id="7_l6ahs"]
[ext_resource type="Script" path="res://addons/godot_state_charts/compound_state.gd" id="8_pvst5"]
[ext_resource type="Script" path="res://addons/godot_state_charts/atomic_state.gd" id="9_h41ei"]
[ext_resource type="Script" path="res://addons/godot_state_charts/transition.gd" id="10_5fig4"]
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="6_d3pqh"]
[ext_resource type="Script" uid="uid://c1vp0ojjvaby1" path="res://addons/godot_state_charts/parallel_state.gd" id="7_l6ahs"]
[ext_resource type="Script" uid="uid://jk2jm1g6q853" path="res://addons/godot_state_charts/compound_state.gd" id="8_pvst5"]
[ext_resource type="Script" uid="uid://cytafq8i1y8qm" path="res://addons/godot_state_charts/atomic_state.gd" id="9_h41ei"]
[ext_resource type="Script" uid="uid://cf1nsco3w0mf6" path="res://addons/godot_state_charts/transition.gd" id="10_5fig4"]
[node name="Cooldown Example" type="Node2D"]
[node name="Cooldown Example" type="Node2D" unique_id=2122567517]
[node name="StateChartDebugger" parent="." instance=ExtResource("1_oec6f")]
[node name="StateChartDebugger" parent="." unique_id=1664704555 instance=ExtResource("1_oec6f")]
offset_left = 290.0
offset_top = 16.0
offset_right = 629.0
offset_bottom = 466.0
initial_node_to_watch = NodePath("../StateChart")
[node name="InfoLabel" type="Label" parent="."]
[node name="InfoLabel" type="Label" parent="." unique_id=118581593]
offset_left = 10.0
offset_top = 24.0
offset_right = 277.0
@@ -28,106 +28,109 @@ offset_bottom = 128.0
text = "This example shows how to connect delayed transitions with game UI to model skill buttons that have cooldowns. Click the buttons to try it."
autowrap_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="."]
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=2055911793]
offset_left = 18.0
offset_top = 164.0
offset_right = 278.0
offset_bottom = 435.0
theme_override_constants/separation = 15
[node name="AttackSkillButton" parent="VBoxContainer" instance=ExtResource("2_aahy2")]
[node name="AttackSkillButton" parent="VBoxContainer" unique_id=2001105087 instance=ExtResource("2_aahy2")]
editor_description = "This is the attack skill button. When you press it, it will send the \"attack\" event to the state chart."
layout_mode = 2
size_flags_horizontal = 4
texture = ExtResource("3_a8h0q")
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer" unique_id=2119134243]
layout_mode = 2
alignment = 1
[node name="MagicSkillButton" parent="VBoxContainer/HBoxContainer" instance=ExtResource("2_aahy2")]
[node name="MagicSkillButton" parent="VBoxContainer/HBoxContainer" unique_id=334516547 instance=ExtResource("2_aahy2")]
editor_description = "This is the magic skill button. When you press it, it will send the \"magic\" event to the state chart."
layout_mode = 2
texture = ExtResource("4_jhd8u")
[node name="HealSkillButton" parent="VBoxContainer/HBoxContainer" instance=ExtResource("2_aahy2")]
[node name="HealSkillButton" parent="VBoxContainer/HBoxContainer" unique_id=1434522268 instance=ExtResource("2_aahy2")]
editor_description = "This is the heal skill button. When you press it, it will send the \"heal\" event to the state chart."
layout_mode = 2
texture = ExtResource("5_xxunm")
[node name="StateChart" type="Node" parent="."]
[node name="StateChart" type="Node" parent="." unique_id=1393050534]
script = ExtResource("6_d3pqh")
track_in_editor = true
[node name="Root" type="Node" parent="StateChart"]
[node name="Root" type="Node" parent="StateChart" unique_id=813086625]
editor_description = "Since all three skills can be used independently of each other we use a parallel state as the root here."
script = ExtResource("7_l6ahs")
[node name="AttackSkill" type="Node" parent="StateChart/Root"]
[node name="AttackSkill" type="Node" parent="StateChart/Root" unique_id=995735444]
script = ExtResource("8_pvst5")
initial_state = NodePath("Available")
[node name="Available" type="Node" parent="StateChart/Root/AttackSkill"]
[node name="Available" type="Node" parent="StateChart/Root/AttackSkill" unique_id=621169652]
editor_description = "State indicating that attack is available. Entering this state will reset the cooldown on the attack skill button."
script = ExtResource("9_h41ei")
[node name="On Attack To Cooldown" type="Node" parent="StateChart/Root/AttackSkill/Available"]
[node name="On Attack To Cooldown" type="Node" parent="StateChart/Root/AttackSkill/Available" unique_id=2038100611]
script = ExtResource("10_5fig4")
to = NodePath("../../Cooldown")
event = &"attack"
delay_in_seconds = "0.0"
[node name="Cooldown" type="Node" parent="StateChart/Root/AttackSkill"]
[node name="Cooldown" type="Node" parent="StateChart/Root/AttackSkill" unique_id=1091186431]
editor_description = "Cooldown state for the attack skill. While the delayed transition is pending, this state will send status updates on the pending transition to the attack skill button. The attack skill button will then update itself and show the remaining cooldown."
script = ExtResource("9_h41ei")
[node name="Back to Available" type="Node" parent="StateChart/Root/AttackSkill/Cooldown"]
[node name="Back to Available" type="Node" parent="StateChart/Root/AttackSkill/Cooldown" unique_id=668227510]
script = ExtResource("10_5fig4")
to = NodePath("../../Available")
delay_seconds = 1.0
delay_in_seconds = "1.0"
[node name="MagicSkill" type="Node" parent="StateChart/Root"]
[node name="MagicSkill" type="Node" parent="StateChart/Root" unique_id=1434969870]
script = ExtResource("8_pvst5")
initial_state = NodePath("Available")
[node name="Available" type="Node" parent="StateChart/Root/MagicSkill"]
[node name="Available" type="Node" parent="StateChart/Root/MagicSkill" unique_id=562565153]
editor_description = "State indicating that the magic skill is available. Entering this state will reset the cooldown on the magic skill button."
script = ExtResource("9_h41ei")
[node name="On Magic To Cooldown" type="Node" parent="StateChart/Root/MagicSkill/Available"]
[node name="On Magic To Cooldown" type="Node" parent="StateChart/Root/MagicSkill/Available" unique_id=1792277839]
script = ExtResource("10_5fig4")
to = NodePath("../../Cooldown")
event = &"magic"
delay_in_seconds = "0.0"
[node name="Cooldown" type="Node" parent="StateChart/Root/MagicSkill"]
[node name="Cooldown" type="Node" parent="StateChart/Root/MagicSkill" unique_id=313937582]
editor_description = "Cooldown state for the magic skill. While the delayed transition is pending, this state will send status updates on the pending transition to the magic skill button. The magic skill button will then update itself and show the remaining cooldown."
script = ExtResource("9_h41ei")
[node name="Back to Available" type="Node" parent="StateChart/Root/MagicSkill/Cooldown"]
[node name="Back to Available" type="Node" parent="StateChart/Root/MagicSkill/Cooldown" unique_id=1842504050]
script = ExtResource("10_5fig4")
to = NodePath("../../Available")
delay_seconds = 3.0
delay_in_seconds = "3.0"
[node name="HealSkill" type="Node" parent="StateChart/Root"]
[node name="HealSkill" type="Node" parent="StateChart/Root" unique_id=1203253186]
script = ExtResource("8_pvst5")
initial_state = NodePath("Available")
[node name="Available" type="Node" parent="StateChart/Root/HealSkill"]
[node name="Available" type="Node" parent="StateChart/Root/HealSkill" unique_id=935630631]
editor_description = "State indicating that the heal skill is available. Entering this state will reset the cooldown on the heal skill button."
script = ExtResource("9_h41ei")
[node name="On Heal To Cooldown" type="Node" parent="StateChart/Root/HealSkill/Available"]
[node name="On Heal To Cooldown" type="Node" parent="StateChart/Root/HealSkill/Available" unique_id=1433492155]
script = ExtResource("10_5fig4")
to = NodePath("../../Cooldown")
event = &"heal"
delay_in_seconds = "0.0"
[node name="Cooldown" type="Node" parent="StateChart/Root/HealSkill"]
[node name="Cooldown" type="Node" parent="StateChart/Root/HealSkill" unique_id=1602266344]
editor_description = "Cooldown state for the heal skill. While the delayed transition is pending, this state will send status updates on the pending transition to the heal skill button. The heal skill button will then update itself and show the remaining cooldown."
script = ExtResource("9_h41ei")
[node name="Back to Available" type="Node" parent="StateChart/Root/HealSkill/Cooldown"]
[node name="Back to Available" type="Node" parent="StateChart/Root/HealSkill/Cooldown" unique_id=67709776]
script = ExtResource("10_5fig4")
to = NodePath("../../Available")
delay_seconds = 10.0
delay_in_seconds = "10.0"
[connection signal="pressed" from="VBoxContainer/AttackSkillButton" to="StateChart" method="send_event" binds= ["attack"]]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/MagicSkillButton" to="StateChart" method="send_event" binds= ["magic"]]

View File

@@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/cooldown_overlay.png-5594f471c10cac21fce498b6
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
@@ -25,6 +27,10 @@ mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false

View File

@@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/enchant-red-3.png-1df2c19bbfe03c22227b3db03bc
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
@@ -25,6 +27,10 @@ mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false

View File

@@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/fireball-eerie-2.png-a420ae5d8f4f4f86ea5ef03e
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
@@ -25,6 +27,10 @@ mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false

View File

@@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/heal-jade-2.png-5317fa8cf716c70c254fee8762a0d
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
@@ -25,6 +27,10 @@ mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false

View File

@@ -1,18 +1,18 @@
[gd_scene load_steps=3 format=3 uid="uid://ch1pukkyc07qo"]
[gd_scene format=3 uid="uid://ch1pukkyc07qo"]
[ext_resource type="Script" path="res://godot_state_charts_examples/cooldown/skill_button/skill_button.gd" id="1_r0ivs"]
[ext_resource type="Script" uid="uid://cjlrmcmit4jhm" path="res://godot_state_charts_examples/cooldown/skill_button/skill_button.gd" id="1_r0ivs"]
[ext_resource type="Texture2D" uid="uid://tgsnqiq40n41" path="res://godot_state_charts_examples/cooldown/icons/cooldown_overlay.png" id="3_pgrfi"]
[node name="SkillButton" type="MarginContainer"]
[node name="SkillButton" type="MarginContainer" unique_id=384343079]
offset_right = 32.0
offset_bottom = 32.0
script = ExtResource("1_r0ivs")
[node name="Button" type="Button" parent="."]
[node name="Button" type="Button" parent="." unique_id=834783109]
unique_name_in_owner = true
layout_mode = 2
[node name="TextureProgressBar" type="TextureProgressBar" parent="."]
[node name="TextureProgressBar" type="TextureProgressBar" parent="." unique_id=857403012]
unique_name_in_owner = true
layout_mode = 2
mouse_filter = 2
@@ -21,7 +21,7 @@ fill_mode = 4
texture_progress = ExtResource("3_pgrfi")
tint_progress = Color(0, 0, 0, 1)
[node name="Label" type="Label" parent="."]
[node name="Label" type="Label" parent="." unique_id=423936835]
unique_name_in_owner = true
layout_mode = 2
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)