File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
addons/block_code/ui/picker/categories Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -153,10 +153,17 @@ static func get_general_categories() -> Array[BlockCategory]:
153
153
variable_list .append (b )
154
154
155
155
b = BLOCKS ["parameter_block" ].instantiate ()
156
+ b .block_type = Types .BlockType .STRING
156
157
b .block_format = "Get String {var: STRING} "
157
158
b .statement = "VAR_DICT[{var} ]"
158
159
variable_list .append (b )
159
160
161
+ b = BLOCKS ["parameter_block" ].instantiate ()
162
+ b .block_type = Types .BlockType .STRING
163
+ b .block_format = "Get String {var: STRING} from {object: NODE} "
164
+ b .statement = '{object} .VAR_DICT[{var} ]'
165
+ variable_list .append (b )
166
+
160
167
b = BLOCKS ["statement_block" ].instantiate ()
161
168
b .block_format = "Set Int {var: STRING} {value: INT} "
162
169
b .statement = "VAR_DICT[{var} ] = {value} "
You can’t perform that action at this time.
0 commit comments