增加CE 和MINI设置滚动显示的方向

This commit is contained in:
Irene-Maxine
2025-09-11 15:32:30 +08:00
parent 47580f80d6
commit 29280ddd9a
7 changed files with 30 additions and 3 deletions

View File

@@ -91,6 +91,23 @@ export const display_scroll_string_delay = {
}
};
export const display_scroll_way = {
init: function () {
this.setColour(DISPLAY_ONBOARD_HUE);
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_SETTING + Blockly.Msg.MIXLY_DISPLAY_SCROLL_WAY)
.appendField(new Blockly.FieldDropdown([
[Blockly.Msg.MIXLY_GAME_UP,"0"],
[Blockly.Msg.MIXLY_GAME_DOWN,"1"],
[Blockly.Msg.MIXLY_GAME_RIGHT,"2"],
[Blockly.Msg.MIXLY_GAME_LEFT,"3"]
]),"way");;
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setInputsInline(true);
}
};
export const onboard_tft_scroll_string_delay = {
init: function () {
this.setColour(DISPLAY_ONBOARD_HUE);