feat(boards): python_mixpy turtle下添加 tracer 图形块
This commit is contained in:
@@ -424,7 +424,6 @@ export const turtle_visible = {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
export const turtle_bgcolor = {
|
||||
init: function () {
|
||||
|
||||
@@ -438,6 +437,25 @@ export const turtle_bgcolor = {
|
||||
}
|
||||
};
|
||||
|
||||
export const turtle_tracer = {
|
||||
init: function () {
|
||||
this.setColour(TURTLE_HUE);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.MIXLY_TURTLE_TRACER);
|
||||
this.appendValueInput('STEP')
|
||||
.setCheck(null)
|
||||
.setAlign(Blockly.inputs.Align.RIGHT)
|
||||
.appendField(Blockly.Msg.MIXLY_TURTLE_TRACER_STEP);
|
||||
this.appendValueInput('DELAY')
|
||||
.setCheck(null)
|
||||
.setAlign(Blockly.inputs.Align.RIGHT)
|
||||
.appendField(Blockly.Msg.MIXLY_TURTLE_TRACER_DELAY_MS);
|
||||
this.setInputsInline(true);
|
||||
this.setPreviousStatement(true);
|
||||
this.setNextStatement(true);
|
||||
}
|
||||
};
|
||||
|
||||
export const turtle_pencolor = {
|
||||
init: function () {
|
||||
this.appendValueInput('TUR')
|
||||
|
||||
Reference in New Issue
Block a user