Skip to content

Commit 0fb7054

Browse files
authored
Merge pull request #252 from endlessm/add-emitting-property
blocks_catalog: Add emitting property for CPUParticles2D
2 parents e6940e5 + 31d35d9 commit 0fb7054

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://c188gpgf4rpns"]
2+
3+
[ext_resource type="Script" path="res://addons/block_code/code_generation/block_definition.gd" id="1_pmpup"]
4+
5+
[resource]
6+
script = ExtResource("1_pmpup")
7+
name = &"cpuparticles2d_finished"
8+
target_node_class = "CPUParticles2D"
9+
description = "Emitted when all active particles have finished processing."
10+
category = "Lifecycle | Spawn"
11+
type = 1
12+
variant_type = 0
13+
display_template = "when particles are finished"
14+
code_template = ""
15+
defaults = {}
16+
signal_name = "finished"
17+
scope = ""

addons/block_code/code_generation/blocks_catalog.gd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ const _SETTINGS_FOR_CLASS_PROPERTY = {
7676
{
7777
"velocity": {"category": "Physics | Velocity"},
7878
},
79+
"CPUParticles2D":
80+
{
81+
"emitting":
82+
{
83+
"category": "Lifecycle | Spawn",
84+
"has_change": false,
85+
},
86+
},
7987
}
8088

8189
static var _catalog: Dictionary

0 commit comments

Comments
 (0)