1- [gd_resource type ="Resource" load_steps =6 format =3 uid ="uid://c5e1byehtxwc0" ]
1+ [gd_resource type ="Resource" load_steps =7 format =3 uid ="uid://c5e1byehtxwc0" ]
22
33[ext_resource type ="Script" path ="res://addons/block_code/code_generation/block_definition.gd" id ="1_emeuv" ]
44[ext_resource type ="Script" path ="res://addons/block_code/code_generation/option_data.gd" id ="1_xu43h" ]
@@ -14,6 +14,11 @@ script = ExtResource("1_xu43h")
1414selected = 0
1515items = ["forward" , "backwards" ]
1616
17+ [sub_resource type ="Resource" id ="Resource_17pec" ]
18+ script = ExtResource ("1_xu43h" )
19+ selected = 0
20+ items = ["until done" , "in the background" ]
21+
1722[resource ]
1823script = ExtResource ("1_emeuv" )
1924name = &"animationplayer_play"
@@ -22,15 +27,18 @@ description = "Play the animation."
2227category = "Graphics | Animation"
2328type = 2
2429variant_type = 0
25- display_template = "play {animation: STRING} {direction: NIL}"
30+ display_template = "play {animation: STRING} {direction: NIL} {wait_mode: NIL} "
2631code_template = "if {direction} == \" forward\" :
2732 play({animation})
2833else:
2934 play_backwards({animation})
35+ if {wait_mode} == \" until done\" :
36+ await animation_finished
3037"
3138defaults = {
3239"animation" : SubResource ("Resource_qpxn2" ),
33- "direction" : SubResource ("Resource_vnp2w" )
40+ "direction" : SubResource ("Resource_vnp2w" ),
41+ "wait_mode" : SubResource ("Resource_17pec" )
3442}
3543signal_name = ""
3644scope = ""
0 commit comments