File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
addons/block_code/ui/picker/categories Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -206,12 +206,21 @@ 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
+ """
218
+ Run the connected blocks as long as [i]condition[/i] is true.
219
+
220
+ Hint: snap a [b]Comparison[/b] block into the condition.
221
+ """
222
+ . dedent ()
223
+ )
215
224
block_list .append (b )
216
225
217
226
b = BLOCKS ["statement_block" ].instantiate ()
You can’t perform that action at this time.
0 commit comments