diff --git a/.DS_Store b/.DS_Store index 4da30c5..ef4237d 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/assets/.DS_Store b/assets/.DS_Store index 4ac00ac..52f8b8d 100644 Binary files a/assets/.DS_Store and b/assets/.DS_Store differ diff --git a/assets/app-bundle/app-view/page/main/native/PageMain.ts b/assets/app-bundle/app-view/page/main/native/PageMain.ts index 3c4bc7a..d088142 100644 --- a/assets/app-bundle/app-view/page/main/native/PageMain.ts +++ b/assets/app-bundle/app-view/page/main/native/PageMain.ts @@ -14,6 +14,8 @@ const enum M_DIR { COUNTER_CLOCKWISE = 1, /** 逆时针 */ } +const MOVE_TIME = 0.04 // 每格移动时间 + const AUTO_TIMES : any[] = [ "∞", "500", @@ -430,7 +432,7 @@ export class PageMain extends BaseView { // 移动标签 this.scheduleOnce(() => { // 执行动画 - this.animateSign(path, steps * 0.12, lastIndex); + this.animateSign(path, steps * MOVE_TIME, lastIndex); Tools.ActChild(b, "light", false) }, 3); } @@ -492,14 +494,14 @@ export class PageMain extends BaseView { let opc = light.getComponent(UIOpacity) opc.opacity = 0 tween(opc) - .to(0.12, { opacity: 255 }) // 渐隐 - .to(0.12 / 2, { opacity: 0 }) // 渐显 tween(opc) + .to(MOVE_TIME, { opacity: 255 }) // 渐隐 + .to(MOVE_TIME / 2, { opacity: 0 }) // 渐显 tween(opc) .call(() => { light.active = false opc.opacity = 255 }) .start(); - }, 0.06 / 2); + }, MOVE_TIME / 4); tween(this.sign) .to(segmentTime, { position: targetPos }, { easing: "linear" }) @@ -519,7 +521,7 @@ export class PageMain extends BaseView { } this.scheduleOnce(() => { moveNext(index + 1); - }, 0.06); + }, MOVE_TIME/2); }) .start(); }; diff --git a/assets/res-native/.DS_Store b/assets/res-native/.DS_Store index b67f569..2570c9d 100644 Binary files a/assets/res-native/.DS_Store and b/assets/res-native/.DS_Store differ