@@ -18,6 +18,11 @@ const BUILTIN_PROPS: Dictionary = {
18
18
"color" : Color ("ffad76" ),
19
19
"order" : 30 ,
20
20
},
21
+ "Graphics" :
22
+ {
23
+ "color" : Color ("9be371" ),
24
+ "order" : 110 ,
25
+ },
21
26
"Input" :
22
27
{
23
28
"color" : Color .SLATE_GRAY ,
@@ -38,6 +43,11 @@ const BUILTIN_PROPS: Dictionary = {
38
43
"color" : Color ("3042c5" ),
39
44
"order" : 50 ,
40
45
},
46
+ "Movement" :
47
+ {
48
+ "color" : Color ("e2e72b" ),
49
+ "order" : 90 ,
50
+ },
41
51
"Signal" :
42
52
{
43
53
"color" : Color ("f0c300" ),
@@ -48,6 +58,11 @@ const BUILTIN_PROPS: Dictionary = {
48
58
"color" : Color ("e30fc0" ),
49
59
"order" : 80 ,
50
60
},
61
+ "Size" :
62
+ {
63
+ "color" : Color ("f79511" ),
64
+ "order" : 100 ,
65
+ },
51
66
"Test" :
52
67
{
53
68
"color" : Color ("9989df" ),
@@ -408,19 +423,19 @@ static func get_built_in_blocks(_class_name: String) -> Array[Block]:
408
423
var b = BLOCKS ["statement_block" ].instantiate ()
409
424
b .block_format = "Set Rotation Degrees {angle: FLOAT} "
410
425
b .statement = "rotation_degrees = {angle} "
411
- b .category = "Node2D "
426
+ b .category = "Movement "
412
427
block_list .append (b )
413
428
414
429
props = {
415
- "position" : "Node2D " ,
416
- "rotation" : "Node2D " ,
417
- "scale" : "Node2D " ,
430
+ "position" : "Movement " ,
431
+ "rotation" : "Movement " ,
432
+ "scale" : "Size " ,
418
433
}
419
434
420
435
"CanvasItem" :
421
436
props = {
422
- "modulate" : "CanvasItem " ,
423
- "visible" : "CanvasItem " ,
437
+ "modulate" : "Graphics " ,
438
+ "visible" : "Graphics " ,
424
439
}
425
440
426
441
"RigidBody2D" :
@@ -431,19 +446,19 @@ static func get_built_in_blocks(_class_name: String) -> Array[Block]:
431
446
# convert to path
432
447
b .statement = "func _on_body_%s (_body: Node):\n\t var body: NodePath = _body.get_path()" % [verb ]
433
448
b .signal_name = "body_%s " % [verb ]
434
- b .category = "RigidBody2D "
449
+ b .category = "Signal "
435
450
block_list .append (b )
436
451
437
452
var b = BLOCKS ["statement_block" ].instantiate ()
438
453
b .block_format = "Set Physics Position {position: VECTOR2} "
439
454
b .statement = "PhysicsServer2D.body_set_state(get_rid(),PhysicsServer2D.BODY_STATE_TRANSFORM,Transform2D.IDENTITY.translated({position} ))"
440
- b .category = "RigidBody2D "
455
+ b .category = "Movement "
441
456
block_list .append (b )
442
457
443
458
props = {
444
- "mass" : "RigidBody2D " ,
445
- "linear_velocity" : "RigidBody2D " ,
446
- "angular_velocity" : "RigidBody2D " ,
459
+ "mass" : "Size " ,
460
+ "linear_velocity" : "Movement " ,
461
+ "angular_velocity" : "Movement " ,
447
462
}
448
463
449
464
"Area2D" :
@@ -454,7 +469,7 @@ static func get_built_in_blocks(_class_name: String) -> Array[Block]:
454
469
# convert to path
455
470
b .statement = "func _on_body_%s (_body: Node2D):\n\t var body: NodePath = _body.get_path()" % [verb ]
456
471
b .signal_name = "body_%s " % [verb ]
457
- b .category = "Area2D "
472
+ b .category = "Signal "
458
473
block_list .append (b )
459
474
460
475
var prop_list = ClassDB .class_get_property_list (_class_name , true )
0 commit comments