Commit 85b12b63 authored by wildfirecode13's avatar wildfirecode13

u

parent 320d8b30
...@@ -67,8 +67,8 @@ ...@@ -67,8 +67,8 @@
</script> </script>
<!-- 构建的js --> <!-- 构建的js -->
<!-- <script src="output.js" crossorigin="anonymous"></script> --> <script src="output.js" crossorigin="anonymous"></script>
<script src="https://yun.duiba.com.cn/db_games/activity/template/1628646732/output.js" crossorigin="anonymous"></script> <!-- <script src="https://yun.duiba.com.cn/db_games/activity/template/1628646732/output.js" crossorigin="anonymous"></script> -->
......
This diff is collapsed.
...@@ -51,7 +51,7 @@ export class NewbieScene extends Scene { ...@@ -51,7 +51,7 @@ export class NewbieScene extends Scene {
opensvga.mouseChildren = opensvga.mouseEnable = false; opensvga.mouseChildren = opensvga.mouseEnable = false;
layers.topLayer.addChild(opensvga); layers.topLayer.addChild(opensvga);
opensvga.startAniRange(1, opensvga.totalFrames, 1, () => { opensvga.startAniRange(1, opensvga.totalFrames, 1, () => {
FYGE.Tween.get(opensvga).to({alpha:0},200).call(()=>{layers.topLayer.removeChild(opensvga);}) FYGE.Tween.get(opensvga).to({ alpha: 0 }, 200).call(() => { layers.topLayer.removeChild(opensvga); })
}); });
const func = () => { const func = () => {
if (opensvga.currentFrame == 70) { if (opensvga.currentFrame == 70) {
...@@ -70,7 +70,8 @@ export class NewbieScene extends Scene { ...@@ -70,7 +70,8 @@ export class NewbieScene extends Scene {
} }
onClick_openBtn() { onClick_openBtn() {
FYGE.Tween.removeTweens(getObject(this,'newbie_open')) FYGE.Tween.removeTweens(this.newbie_open);
this.newbie_open.stop();
this.openPrize() this.openPrize()
} }
...@@ -80,6 +81,12 @@ export class NewbieScene extends Scene { ...@@ -80,6 +81,12 @@ export class NewbieScene extends Scene {
initUi() { initUi() {
super.initUi(); super.initUi();
const oldbtn = getObject(this, 'newbie_open');
oldbtn.visible = false;
const newbie_open = new FYGE.MovieClip(RES.getRes('start.svga'));
newbie_open.position.set(oldbtn.x+10, oldbtn.y);
this.addChild(newbie_open);
this.newbie_open = newbie_open;
const layer = new FYGE.Sprite; const layer = new FYGE.Sprite;
layer.mouseEnable = layer.mouseChildren = false; layer.mouseEnable = layer.mouseChildren = false;
...@@ -103,28 +110,28 @@ export class NewbieScene extends Scene { ...@@ -103,28 +110,28 @@ export class NewbieScene extends Scene {
indexsvga.mouseChildren = indexsvga.mouseEnable = false; indexsvga.mouseChildren = indexsvga.mouseEnable = false;
this.addChild(indexsvga); this.addChild(indexsvga);
this.addChild(getObject(this,'newbie_pic2')); this.addChild(getObject(this, 'newbie_pic2'));
const newbie_open = getObject(this,'newbie_open'); this.newbie_open.anchorX = 400 / 2;
newbie_open.anchorX = 408/2; this.newbie_open.anchorY = 150 / 2;
newbie_open.anchorY = 158/2; FYGE.Tween.get(this.newbie_open, { loop: true }).to({ scaleX: 1.1, scaleY: 1.1 }, 500).to({ scaleX: 1, scaleY: 1 }, 500)
FYGE.Tween.get(newbie_open,{loop:true}).to({scaleX:1.1,scaleY:1.1},500).to({scaleX:1,scaleY:1},500)
} }
initEvents() { initEvents() {
super.initEvents(); super.initEvents();
watchPageVisibility(this.onPageVisibilityChange); watchPageVisibility(this.onPageVisibilityChange);
getObject(this, 'newbie_open').addEventListener(FYGE.MouseEvent.CLICK, this.onClick_openBtn, this); this.newbie_open.addEventListener(FYGE.MouseEvent.CLICK, this.onClick_openBtn, this);
getObject(this, 'newbie_rule').addEventListener(FYGE.MouseEvent.CLICK, this.onClick_ruleBtn, this); getObject(this, 'newbie_rule').addEventListener(FYGE.MouseEvent.CLICK, this.onClick_ruleBtn, this);
} }
removeEvents() { removeEvents() {
super.removeEvents(); super.removeEvents();
unwatchPageVisibility(this.onPageVisibilityChange) unwatchPageVisibility(this.onPageVisibilityChange)
getObject(this, 'newbie_open').removeEventListener(FYGE.MouseEvent.CLICK, this.onClick_openBtn, this); this.newbie_open.removeEventListener(FYGE.MouseEvent.CLICK, this.onClick_openBtn, this);
getObject(this, 'newbie_rule').removeEventListener(FYGE.MouseEvent.CLICK, this.onClick_ruleBtn, this); getObject(this, 'newbie_rule').removeEventListener(FYGE.MouseEvent.CLICK, this.onClick_ruleBtn, this);
} }
newbie_open: FYGE.MovieClip;
get groupNames() { return ["newbie"] } get groupNames() { return ["newbie"] }
get skinName() { return "newbie" } get skinName() { return "newbie" }
......
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