File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
addons/block_code/ui/picker/categories Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -564,13 +564,15 @@ static func property_to_blocklist(property: Dictionary) -> Array[Block]:
564
564
var variant_type = property .type
565
565
566
566
const FALLBACK_SET_FOR_TYPE = {
567
+ TYPE_BOOL : false ,
567
568
TYPE_INT : "0" ,
568
569
TYPE_FLOAT : "0" ,
569
570
TYPE_VECTOR2 : "0,0" ,
570
571
TYPE_COLOR : "DARK_ORANGE" ,
571
572
}
572
573
573
574
const FALLBACK_CHANGE_FOR_TYPE = {
575
+ TYPE_BOOL : true ,
574
576
TYPE_INT : "1" ,
575
577
TYPE_FLOAT : "1" ,
576
578
TYPE_VECTOR2 : "1,1" ,
@@ -724,6 +726,31 @@ static func get_built_in_blocks(_class_name: String) -> Array[Block]:
724
726
"angular_velocity" : {"category" : "Physics | Velocity" },
725
727
}
726
728
729
+ "AudioStreamPlayer" :
730
+ var b = BLOCKS ["statement_block" ].instantiate ()
731
+ b .block_name = "audiostreamplayer_play"
732
+ b .block_format = "Play"
733
+ b .statement = "play()"
734
+ b .tooltip_text = "Play the audio stream"
735
+ b .category = "Sounds"
736
+ block_list .append (b )
737
+
738
+ b = BLOCKS ["statement_block" ].instantiate ()
739
+ b .block_name = "audiostreamplayer_stop"
740
+ b .block_format = "Stop"
741
+ b .statement = "stop()"
742
+ b .tooltip_text = "Stop the audio stream"
743
+ b .category = "Sounds"
744
+ block_list .append (b )
745
+
746
+ props = {
747
+ "stream_paused" :
748
+ {
749
+ "category" : "Sounds" ,
750
+ "has_change" : false ,
751
+ },
752
+ }
753
+
727
754
"AnimationPlayer" :
728
755
var b = BLOCKS ["statement_block" ].instantiate ()
729
756
b .block_name = "animationplayer_play"
You can’t perform that action at this time.
0 commit comments