Skip to content

Commit 02eba02

Browse files
dylanmccallmanuq
andcommitted
Apply suggestions from code review
Co-authored-by: manuq <manuel.por.aca@gmail.com>
1 parent da6e0c2 commit 02eba02

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

addons/block_code/ui/picker/categories/category_factory.gd

+11-11
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ static func get_general_categories() -> Array[BlockCategory]:
151151

152152
b = BLOCKS["parameter_block"].instantiate()
153153
b.block_type = Types.BlockType.STRING
154-
b.block_format = "Get String {var: STRING} from {object: NODE}"
155-
b.statement = "{object}.VAR_DICT[{var}]"
154+
b.block_format = "Get String {var: STRING} from {node: NODE}"
155+
b.statement = "{node}.VAR_DICT[{var}]"
156156
variable_list.append(b)
157157

158158
b = BLOCKS["statement_block"].instantiate()
@@ -173,18 +173,18 @@ static func get_general_categories() -> Array[BlockCategory]:
173173

174174
b = BLOCKS["parameter_block"].instantiate()
175175
b.block_type = Types.BlockType.INT
176-
b.block_format = "Get Int {var: INT} from {object: NODE}"
177-
b.statement = "{object}.VAR_DICT[{var}]"
176+
b.block_format = "Get Int {var: INT} from {node: NODE}"
177+
b.statement = "{node}.VAR_DICT[{var}]"
178178
variable_list.append(b)
179179

180180
var variable_category: BlockCategory = BlockCategory.new("Variables", variable_list, Color("4f975d"))
181181

182-
# Objects & Types
182+
# Nodes & Types
183183
var type_list: Array[Block] = []
184184

185185
b = BLOCKS["parameter_block"].instantiate()
186186
b.block_type = Types.BlockType.NODE
187-
b.block_format = "This object"
187+
b.block_format = "This node"
188188
b.statement = "self"
189189
type_list.append(b)
190190

@@ -220,16 +220,16 @@ static func get_general_categories() -> Array[BlockCategory]:
220220

221221
b = BLOCKS["parameter_block"].instantiate()
222222
b.block_type = Types.BlockType.VARIANT
223-
b.block_format = "Get property {key: STRING} from {object: NODE}"
224-
b.statement = "{object}.get({key})"
223+
b.block_format = "Get property {key: STRING} from {node: NODE}"
224+
b.statement = "{node}.get({key})"
225225
type_list.append(b)
226226

227227
b = BLOCKS["statement_block"].instantiate()
228-
b.block_format = "Set property {key: STRING} in {object: NODE} to {value: VARIANT}"
229-
b.statement = "{object}.set({key}, {value})"
228+
b.block_format = "Set property {key: STRING} in {node: NODE} to {value: VARIANT}"
229+
b.statement = "{node}.set({key}, {value})"
230230
type_list.append(b)
231231

232-
var type_category: BlockCategory = BlockCategory.new("Objects & Types", type_list, Color("c12f8e"))
232+
var type_category: BlockCategory = BlockCategory.new("Nodes & Types", type_list, Color("c12f8e"))
233233

234234
# Math
235235
var math_list: Array[Block] = []

0 commit comments

Comments
 (0)