@@ -76,7 +76,7 @@ Blockly.Blocks['control_expandableIf'] = {
7676 // TODO maybe? Rare instances where the text is misplaced
7777 if ( this . nextIsElse ) {
7878 this . appendDummyInput ( `TEXTSTART${ this . branches_ } ` ) . appendField ( "else" ) ;
79- this . appendStatementInput ( `STACK ${ this . branches_ } ` ) ;
79+ this . appendStatementInput ( `SUBSTACK ${ this . branches_ } ` ) ;
8080 this . endsInElse = true ;
8181 } else {
8282 const prevText = this . getInput ( `TEXTSTART${ this . branches_ } ` ) ;
@@ -87,12 +87,12 @@ Blockly.Blocks['control_expandableIf'] = {
8787 this . appendDummyInput ( `TEXTEND${ this . branches_ } ` ) . appendField ( "then" ) ;
8888
8989 // swap out the connection with the old and new branch
90- const prevBranch = this . getInput ( `STACK ${ this . branches_ } ` ) ;
91- const newBranch = this . appendStatementInput ( `STACK ${ this . branches_ } ` ) ;
90+ const prevBranch = this . getInput ( `SUBSTACK ${ this . branches_ } ` ) ;
91+ const newBranch = this . appendStatementInput ( `SUBSTACK ${ this . branches_ } ` ) ;
9292 if ( this . branches_ > 1 ) {
9393 const prevBranchBlock = prevBranch . connection . targetBlock ( ) ;
9494 if ( prevBranchBlock ) newBranch . connection . connect ( prevBranchBlock . previousConnection ) ;
95- this . removeInput ( `STACK ${ this . branches_ } ` ) ;
95+ this . removeInput ( `SUBSTACK ${ this . branches_ } ` ) ;
9696 }
9797 this . endsInElse = false ;
9898 }
@@ -123,7 +123,7 @@ Blockly.Blocks['control_expandableIf'] = {
123123 this . fillInBlock ( input . connection , "checkbox" ) ;
124124 this . appendDummyInput ( `TEXTEND${ i } ` ) . appendField ( "then" ) ;
125125 }
126- this . appendStatementInput ( `STACK ${ i } ` ) ;
126+ this . appendStatementInput ( `SUBSTACK ${ i } ` ) ;
127127 }
128128
129129 this . fixupButtons ( ) ;
@@ -140,7 +140,7 @@ Blockly.Blocks['control_expandableIf'] = {
140140 this . nextIsElse = ! this . nextIsElse ;
141141 } else if ( this . branches_ > 1 ) {
142142 this . removeInput ( `BOOL${ this . branches_ } ` ) ;
143- this . removeInput ( `STACK ${ this . branches_ } ` ) ;
143+ this . removeInput ( `SUBSTACK ${ this . branches_ } ` ) ;
144144 this . removeInput ( `TEXTSTART${ this . branches_ } ` ) ;
145145 this . removeInput ( `TEXTEND${ this . branches_ } ` ) ;
146146 this . branches_ -- ;
0 commit comments