Fix(boards): 修复所有板卡在使用函数块进行复制时一定概率出现块渲染异常

This commit is contained in:
王立帮
2025-02-25 12:04:24 +08:00
parent 08a2e18af9
commit 0033cff33a
42 changed files with 480 additions and 215 deletions

View File

@@ -0,0 +1 @@
<xml version="Mixly 3.0 rc0" board="Python ESP32-C2@MixGo MINI" shown="block"><block type="controls_whileUntil" id="i-vX7oF);/,,YlXjE]*j" x="-675" y="-487"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="?eGDJbGLJqFGoA_WG0St"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_forEach" id=",1(-Omw_m(~m7,U;QLj;"><value name="LIST"><shadow type="list_many_input" id="KjS3Xc=afY~h.//v(55g"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="t`8IZ:Wu-ho,L:Glize}"><value name="FROM"><shadow type="math_number" id="uZF+f]leEPj10.gbt-*,"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id=",lXvW1furb5Izf~lXq*e"><field name="NUM">10</field></shadow></value><value name="STEP"><shadow type="math_number" id="--=KO~c(v{lxEva1OK0o"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="0R0k^?6;^Y9ycWEC0t8f"><field name="VAR">篮子位置</field></shadow></value><statement name="DO"><block type="display_clear" id="BTw$F[s__~g8C=K^a(^s"><next><block type="display_bright_point" id="ZK?;S;:SpMXWQ|)(01O6"><value name="x"><shadow type="pins_exlcdh" id="P?dQ(IiI5{Yd^FCxKJ-m"><field name="PIN">0</field></shadow><block type="math_arithmetic" id="*L1nuQ:XdIk27BCIPz$e"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="0B.7S.SPaV5]AMWjXMVX"><field name="NUM">1</field></shadow><block type="variables_get" id="EfjNBSy[Dsors:EAMu-x"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="dwmu8VU.X4E|(B-[:tH1"><field name="NUM">0</field></shadow></value></block></value><value name="y"><shadow type="pins_exlcdv" id=";RFoaiaYN,M}aWVeYuxE"><field name="PIN">7</field></shadow></value><value name="STAT"><shadow type="display_onoff" id="4TceV8H(dvYtkmfhrY!8"><field name="ONOFF">ON</field></shadow></value><next><block type="display_bright_point" id="c-{R@(CV(`80c2k:In=*"><value name="x"><shadow type="pins_exlcdh" id="ccgE1a2~?B0)6L@PGY@["><field name="PIN">1</field></shadow><block type="math_arithmetic" id="ah-SO|X}1j]wjo$(I^L]"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="QD,gboD;wHS-fNbpeoTE"><field name="NUM">1</field></shadow><block type="variables_get" id="hJK$j*bgVf3)-54apg28"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="gapK$$}DrtmfOA9bTVZ{"><field name="NUM">1</field></shadow></value></block></value><value name="y"><shadow type="pins_exlcdv" id="m@H-dl-0}Sz;nnQnjeNI"><field name="PIN">7</field></shadow></value><value name="STAT"><shadow type="display_onoff" id="]A^}`?p_}{g!5s~A0O99"><field name="ONOFF">ON</field></shadow></value><next><block type="display_bright_point" id="dJ,]+?EJ.T?XsoB-^/(c"><value name="x"><shadow type="pins_exlcdh" id="fN}:SeWROR/L`H8@Iq,b"><field name="PIN">2</field></shadow><block type="math_arithmetic" id=".BaKKo*^0G3g$S*VHO^("><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="_@f~,/Ep]dARpINqq2od"><field name="NUM">1</field></shadow><block type="variables_get" id="!c^$gRv_Rt$RJ:7U#4l3"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="+dP)~v,T/-412)|QH2`N"><field name="NUM">2</field></shadow></value></block></value><value name="y"><shadow type="pins_exlcdv" id="wM1J4oc=9s8wYzHXE^/h"><field name="PIN">7</field></shadow></value><value name="STAT"><shadow type="display_onoff" id="Ymoyl:Ecfo/0.mk(ob*v"><field name="ONOFF">ON</field></shadow></value><next><block type="controls_delay_new" id="l+rBxJ]fSUVhq){-alS2"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="zdS]duv5`S!kN}X~BAts"><field name="NUM">0.2</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></statement></block></xml><config>{}</config><code>ZnJvbSBtaXhnb19taW5pIGltcG9ydCBvbmJvYXJkX21hdHJpeAppbXBvcnQgdGltZQoKCndoaWxlIFRydWU6CiAgICBmb3Ig56+u5a2Q5L2N572uIGluIHJhbmdlKDAsIDEwLCAxKToKICAgICAgICBvbmJvYXJkX21hdHJpeC5maWxsKDApCiAgICAgICAgb25ib2FyZF9tYXRyaXguc2hvdygpCiAgICAgICAgb25ib2FyZF9tYXRyaXgucGl4ZWwoaW50KOevruWtkOS9jee9riArIDApLCBpbnQoNyksIDEpCiAgICAgICAgb25ib2FyZF9tYXRyaXguc2hvdygpCiAgICAgICAgb25ib2FyZF9tYXRyaXgucGl4ZWwoaW50KOevruWtkOS9jee9riArIDEpLCBpbnQoNyksIDEpCiAgICAgICAgb25ib2FyZF9tYXRyaXguc2hvdygpCiAgICAgICAgb25ib2FyZF9tYXRyaXgucGl4ZWwoaW50KOevruWtkOS9jee9riArIDIpLCBpbnQoNyksIDEpCiAgICAgICAgb25ib2FyZF9tYXRyaXguc2hvdygpCiAgICAgICAgdGltZS5zbGVlcCgwLjIpCg==</code>

View File

@@ -228,38 +228,6 @@
"__file__": true,
"__name__": "24-2-无线广播-防丢检测.mix"
},
"25-1-飞机游戏-显示飞机.mix": {
"__file__": true,
"__name__": "25-1-飞机游戏-显示飞机.mix"
},
"25-2-飞机游戏-移动飞机.mix": {
"__file__": true,
"__name__": "25-2-飞机游戏-移动飞机.mix"
},
"26-1-飞机游戏-发射子弹.mix": {
"__file__": true,
"__name__": "26-1-飞机游戏-发射子弹.mix"
},
"26-2-飞机游戏-移动音效.mix": {
"__file__": true,
"__name__": "26-2-飞机游戏-移动音效.mix"
},
"27-1-飞机游戏-显示敌机.mix": {
"__file__": true,
"__name__": "27-1-飞机游戏-显示敌机.mix"
},
"27-2-飞机游戏-消灭敌机.mix": {
"__file__": true,
"__name__": "27-2-飞机游戏-消灭敌机.mix"
},
"28-1-飞机游戏-显示得分.mix": {
"__file__": true,
"__name__": "28-1-飞机游戏-显示得分.mix"
},
"28-2-飞机游戏-结束游戏.mix": {
"__file__": true,
"__name__": "28-2-飞机游戏-结束游戏.mix"
},
"29-1-物联网-简单数据定时上报.mix": {
"__file__": true,
"__name__": "29-1-物联网-简单数据定时上报.mix"
@@ -540,6 +508,90 @@
"__file__": false,
"__name__": "外设使用示例"
},
"经典游戏复刻": {
"G1-1 接金币游戏-显示移动篮子.mix": {
"__file__": true,
"__name__": "G1-1 接金币游戏-显示移动篮子.mix"
},
"G1-10 接金币游戏-改用传感器控制游戏.mix": {
"__file__": true,
"__name__": "G1-10 接金币游戏-改用传感器控制游戏.mix"
},
"G1-11 接金币游戏-加入剩余时间显示.mix": {
"__file__": true,
"__name__": "G1-11 接金币游戏-加入剩余时间显示.mix"
},
"G1-12 接金币游戏-加入随机难度.mix": {
"__file__": true,
"__name__": "G1-12 接金币游戏-加入随机难度.mix"
},
"G1-2 接金币游戏-手动移动篮子.mix": {
"__file__": true,
"__name__": "G1-2 接金币游戏-手动移动篮子.mix"
},
"G1-3 接金币游戏-模块化手动移动篮子.mix": {
"__file__": true,
"__name__": "G1-3 接金币游戏-模块化手动移动篮子.mix"
},
"G1-4 接金币游戏-移动范围控制.mix": {
"__file__": true,
"__name__": "G1-4 接金币游戏-移动范围控制.mix"
},
"G1-5 接金币游戏-显示金豆下落.mix": {
"__file__": true,
"__name__": "G1-5 接金币游戏-显示金豆下落.mix"
},
"G1-6 接金币游戏-手动启动游戏.mix": {
"__file__": true,
"__name__": "G1-6 接金币游戏-手动启动游戏.mix"
},
"G1-7 接金币游戏-判断游戏到时结束.mix": {
"__file__": true,
"__name__": "G1-7 接金币游戏-判断游戏到时结束.mix"
},
"G1-8 接金币游戏-判断是否接住.mix": {
"__file__": true,
"__name__": "G1-8 接金币游戏-判断是否接住.mix"
},
"G1-9 接金币游戏-计算并显示最终得分.mix": {
"__file__": true,
"__name__": "G1-9 接金币游戏-计算并显示最终得分.mix"
},
"G2-1-飞机游戏-发射子弹.mix": {
"__file__": true,
"__name__": "G2-1-飞机游戏-发射子弹.mix"
},
"G2-1-飞机游戏-显示得分.mix": {
"__file__": true,
"__name__": "G2-1-飞机游戏-显示得分.mix"
},
"G2-1-飞机游戏-显示敌机.mix": {
"__file__": true,
"__name__": "G2-1-飞机游戏-显示敌机.mix"
},
"G2-1-飞机游戏-显示飞机.mix": {
"__file__": true,
"__name__": "G2-1-飞机游戏-显示飞机.mix"
},
"G2-2-飞机游戏-消灭敌机.mix": {
"__file__": true,
"__name__": "G2-2-飞机游戏-消灭敌机.mix"
},
"G2-2-飞机游戏-移动音效.mix": {
"__file__": true,
"__name__": "G2-2-飞机游戏-移动音效.mix"
},
"G2-2-飞机游戏-移动飞机.mix": {
"__file__": true,
"__name__": "G2-2-飞机游戏-移动飞机.mix"
},
"G2-2-飞机游戏-结束游戏.mix": {
"__file__": true,
"__name__": "G2-2-飞机游戏-结束游戏.mix"
},
"__file__": false,
"__name__": "经典游戏复刻"
},
"__file__": false,
"__name__": "MixGo MINI"
}

File diff suppressed because one or more lines are too long