原timer增加弃用警告

This commit is contained in:
Irene-Maxine
2025-08-12 14:31:45 +08:00
parent b64104272b
commit 2f39feb91a

View File

@@ -159,6 +159,7 @@ export const system_timer = {
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setTooltip(Blockly.Msg.MIXLY_ESP32_SYSTEM_TIMER_TOOLTIP);
this.setWarningText(Blockly.Msg.MIXLY_DEPRECATED_WARNING_TEXT);
}
};
@@ -193,6 +194,7 @@ export const system_timer_init = {
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setTooltip(Blockly.Msg.MIXLY_ESP32_SYSTEM_TIMER_INIT_TOOLTIP);
this.setWarningText(Blockly.Msg.MIXLY_DEPRECATED_WARNING_TEXT);
}
};