Commit c65d5f1d authored by liujiangnan's avatar liujiangnan

feat: 滚动区域

parent 1ef72cc6
...@@ -226,8 +226,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -226,8 +226,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
const maxLen = cc.find(`L${i}`, typeNode).width const maxLen = cc.find(`L${i}`, typeNode).width
cc.find(`L${i}/processlan`, typeNode).width = Math.floor(maxLen * prcss.process / 100); cc.find(`L${i}/processlan`, typeNode).width = Math.floor(maxLen * prcss.process / 100);
}else { }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}/percent`, typeNode).getComponent(cc.Label).string = "0%";
cc.find(`L${i}/processlan`, typeNode).width = 0; cc.find(`L${i}/processlan`, typeNode).width = 0;
} }
...@@ -247,6 +245,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -247,6 +245,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
initBg() { initBg() {
const bgNode = cc.find('Canvas/bg'); const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax; bgNode.scale = this._mapScaleMax;
// const reportNode = cc.find('Canvas/learnreport');
// reportNode.scale = this._mapScaleMax;
} }
// update (dt) {} // update (dt) {}
......
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
"height": 592, "height": 592,
"rawWidth": 830, "rawWidth": 830,
"rawHeight": 592, "rawHeight": 592,
"borderTop": 0, "borderTop": 100,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 50,
"borderRight": 0, "borderRight": 50,
"subMetas": {} "subMetas": {}
} }
} }
......
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
"height": 473, "height": 473,
"rawWidth": 649, "rawWidth": 649,
"rawHeight": 473, "rawHeight": 473,
"borderTop": 0, "borderTop": 40,
"borderBottom": 0, "borderBottom": 40,
"borderLeft": 0, "borderLeft": 40,
"borderRight": 0, "borderRight": 40,
"subMetas": {} "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