File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
addons/block_code/ui/picker/categories Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -206,12 +206,18 @@ static func get_general_blocks() -> Array[Block]:
206
206
b .block_formats = ["repeat {number: INT} " ]
207
207
b .statements = ["for i in {number} :" ]
208
208
b .category = "Loops"
209
+ b .tooltip_text = "Run the connected blocks [i]number[/i] times"
209
210
block_list .append (b )
210
211
211
212
b = BLOCKS ["control_block" ].instantiate ()
212
213
b .block_formats = ["while {condition: BOOL} " ]
213
214
b .statements = ["while {condition} :" ]
214
215
b .category = "Loops"
216
+ b .tooltip_text = """
217
+ Run the connected blocks as long as [i]condition[/i] is true.
218
+
219
+ Hint: snap a [b]Comparison[/b] block into the condition.
220
+ """ .dedent ()
215
221
block_list .append (b )
216
222
217
223
b = BLOCKS ["statement_block" ].instantiate ()
You can’t perform that action at this time.
0 commit comments