Commit 85b12b63 authored by wildfirecode13's avatar wildfirecode13

u

parent 320d8b30
......@@ -67,8 +67,8 @@
</script>
<!-- 构建的js -->
<!-- <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="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 {
opensvga.mouseChildren = opensvga.mouseEnable = false;
layers.topLayer.addChild(opensvga);
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 = () => {
if (opensvga.currentFrame == 70) {
......@@ -70,7 +70,8 @@ export class NewbieScene extends Scene {
}
onClick_openBtn() {
FYGE.Tween.removeTweens(getObject(this,'newbie_open'))
FYGE.Tween.removeTweens(this.newbie_open);
this.newbie_open.stop();
this.openPrize()
}
......@@ -80,6 +81,12 @@ export class NewbieScene extends Scene {
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;
layer.mouseEnable = layer.mouseChildren = false;
......@@ -103,28 +110,28 @@ export class NewbieScene extends Scene {
indexsvga.mouseChildren = indexsvga.mouseEnable = false;
this.addChild(indexsvga);
this.addChild(getObject(this,'newbie_pic2'));
this.addChild(getObject(this, 'newbie_pic2'));
const newbie_open = getObject(this,'newbie_open');
newbie_open.anchorX = 408/2;
newbie_open.anchorY = 158/2;
FYGE.Tween.get(newbie_open,{loop:true}).to({scaleX:1.1,scaleY:1.1},500).to({scaleX:1,scaleY:1},500)
this.newbie_open.anchorX = 400 / 2;
this.newbie_open.anchorY = 150 / 2;
FYGE.Tween.get(this.newbie_open, { loop: true }).to({ scaleX: 1.1, scaleY: 1.1 }, 500).to({ scaleX: 1, scaleY: 1 }, 500)
}
initEvents() {
super.initEvents();
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);
}
removeEvents() {
super.removeEvents();
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);
}
newbie_open: FYGE.MovieClip;
get groupNames() { 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