Commit c65d5f1d authored by liujiangnan's avatar liujiangnan

feat: 滚动区域

parent 1ef72cc6
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -226,8 +226,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
const maxLen = cc.find(`L${i}`, typeNode).width
cc.find(`L${i}/processlan`, typeNode).width = Math.floor(maxLen * prcss.process / 100);
}else {
console.log(`L${i}/processlan`);
console.log(cc.find(`L${i}/processlan`, typeNode));
cc.find(`L${i}/percent`, typeNode).getComponent(cc.Label).string = "0%";
cc.find(`L${i}/processlan`, typeNode).width = 0;
}
......@@ -247,6 +245,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
initBg() {
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
// const reportNode = cc.find('Canvas/learnreport');
// reportNode.scale = this._mapScaleMax;
}
// update (dt) {}
......
......@@ -26,10 +26,10 @@
"height": 592,
"rawWidth": 830,
"rawHeight": 592,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"borderTop": 100,
"borderBottom": 50,
"borderLeft": 50,
"borderRight": 50,
"subMetas": {}
}
}
......
......@@ -26,10 +26,10 @@
"height": 473,
"rawWidth": 649,
"rawHeight": 473,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"borderTop": 40,
"borderBottom": 40,
"borderLeft": 40,
"borderRight": 40,
"subMetas": {}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment