获取图像修改
This commit is contained in:
@@ -277,22 +277,11 @@ export const SHOOT_AND_SAVE_PICTURE = {
|
||||
}
|
||||
};
|
||||
|
||||
export const GET_PICTURE_DATA = {
|
||||
init: function () {
|
||||
this.setColour(AI_LOCAL_GRAPH_HUE);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.MIXLY_GET_PICTURE_DATA);
|
||||
this.setOutput(true);
|
||||
this.setInputsInline(true);
|
||||
this.setTooltip(Blockly.Msg.MIXLY_GET_PICTURE_DATA_TOOLTIP);
|
||||
}
|
||||
};
|
||||
|
||||
export const GET_PICTURE_DATA_EXACT = {
|
||||
init: function () {
|
||||
this.setColour(AI_LOCAL_GRAPH_HUE);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.MIXLY_MICROBIT_PY_STORAGE_GET + Blockly.Msg.MIXLY_MICROBIT_IMAGE)
|
||||
.appendField(Blockly.Msg.MIXLY_GET_PICTURE_DATA)
|
||||
.appendField(new Blockly.FieldDropdown([
|
||||
["RGB565" + Blockly.Msg.MIXLY_SD_DATA,"0"],
|
||||
["JPG" + Blockly.Msg.MIXLY_SD_DATA,"1"],
|
||||
@@ -578,7 +567,7 @@ export const MIXIO_REPORT_IMAGE_DATA = {
|
||||
init: function () {
|
||||
this.setColour(AI_LOCAL_GRAPH_HUE);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.MIXLY_REPORT_IMAGE_DATA + Blockly.Msg.LANG_CONTROLS_FOR_INPUT_FROM + Blockly.Msg.MIXLY_CHOOSE_AND_GET_DIR)
|
||||
.appendField(Blockly.Msg.MIXLY_GET +Blockly.Msg.MIXLY_IMAGE_OF_FILE)
|
||||
this.appendValueInput('SUB');
|
||||
this.setOutput(true);
|
||||
this.setInputsInline(true);
|
||||
|
||||
Reference in New Issue
Block a user