Make the "seats =" block not deletable.

If this block is removed, the puzzle cannot be completed. THis will make a good example users can be pointed to for a use example of setDeletable(boolean).
This commit is contained in:
Blake Bourque
2015-01-28 16:07:30 -05:00
parent 906b62f7ef
commit dd58c2a776

View File

@@ -31,6 +31,7 @@ Blockly.Blocks['plane_set_seats'] = {
this.appendValueInput('VALUE')
.appendField(Plane.getMsg('Plane_setSeats'));
this.setTooltip(Blockly.Msg.VARIABLES_SET_TOOLTIP);
this.setDeletable(false);
}
};