File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -212,11 +212,21 @@ const STEPS = {
212212 const fieldFlydown = createStepFieldFlydown ( stepName , true ) ;
213213 fieldFlydown . setValidator ( this . mrcUpdateStepName . bind ( this , j ) ) ;
214214
215- this . appendValueInput ( 'CONDITION_' + j )
215+ const conditionInput = this . appendValueInput ( 'CONDITION_' + j )
216216 . appendField ( fieldFlydown )
217217 . setCheck ( 'Boolean' )
218218 . appendField ( Blockly . Msg . REPEAT_UNTIL ) ;
219219 this . appendStatementInput ( 'STEP_' + j ) ;
220+
221+ // Add shadow True block to the new condition input
222+ if ( this . workspace ) {
223+ const shadowBlock = this . workspace . newBlock ( 'logic_boolean' ) as Blockly . BlockSvg ;
224+ shadowBlock . setShadow ( true ) ;
225+ shadowBlock . setFieldValue ( 'TRUE' , 'BOOL' ) ;
226+ shadowBlock . initSvg ( ) ;
227+ shadowBlock . render ( ) ;
228+ conditionInput . connection ?. connect ( shadowBlock . outputConnection ! ) ;
229+ }
220230 }
221231 }
222232
You can’t perform that action at this time.
0 commit comments