Commit 254f14b8 authored by haiyoucuv's avatar haiyoucuv

1111

parent 1abe8895
...@@ -2,3 +2,5 @@ ...@@ -2,3 +2,5 @@
node_modules node_modules
./released ./released
.DS_Store .DS_Store
output.js
output.js.map
This diff is collapsed.
This diff is collapsed.
...@@ -233,12 +233,8 @@ function MGet() { ...@@ -233,12 +233,8 @@ function MGet() {
return MPool.splice(0, 1)[0] || new ShopItemExchangeInfo(); return MPool.splice(0, 1)[0] || new ShopItemExchangeInfo();
} }
function MPush(obj: ShopItemExchangeInfo) { export function MPush(obj: ShopItemExchangeInfo) {
MPool.push(obj); MPool.push(obj);
} }
for (let i = 0; i <= 20; i++) {
MPush(new ShopItemExchangeInfo());
}
...@@ -52,7 +52,7 @@ export default class GuideLayer extends Container { ...@@ -52,7 +52,7 @@ export default class GuideLayer extends Container {
super(); super();
this.bg = this.addChild(new FYGE.Graphics()); this.bg = this.addChild(new FYGE.Graphics());
this.bg.beginFill(0, 1); this.bg.beginFill(0x000000, 1);
this.bg.drawRect(0, 0, 750, 1624); this.bg.drawRect(0, 0, 750, 1624);
this.bg.endFill(); this.bg.endFill();
this.bg.alpha = 0; this.bg.alpha = 0;
......
...@@ -105,7 +105,6 @@ export default class ProgressBar extends Container { ...@@ -105,7 +105,6 @@ export default class ProgressBar extends Container {
setTimeout(() => { setTimeout(() => {
this.hidden(); this.hidden();
}, 500); }, 500);
this.dispatchEvent('endTime'); this.dispatchEvent('endTime');
} }
}, 1000); }, 1000);
......
...@@ -16,6 +16,7 @@ import Ease = FYGE.Ease; ...@@ -16,6 +16,7 @@ import Ease = FYGE.Ease;
import Graphics = FYGE.Graphics; import Graphics = FYGE.Graphics;
import TextField = FYGE.TextField; import TextField = FYGE.TextField;
import { GuideScene } from "./GuideScene"; import { GuideScene } from "./GuideScene";
import { MPush, ShopItemExchangeInfo } from "../panels/ShopPanel";
export class LoadingScene extends Scene { export class LoadingScene extends Scene {
...@@ -143,6 +144,11 @@ export class LoadingScene extends Scene { ...@@ -143,6 +144,11 @@ export class LoadingScene extends Scene {
SceneCtrl.instance.change(gameInfo.guideIsEnd ? GameScene : GuideScene); SceneCtrl.instance.change(gameInfo.guideIsEnd ? GameScene : GuideScene);
}); });
}); });
for (let i = 0; i <= 20; i++) {
MPush(new ShopItemExchangeInfo());
}
} }
start() { start() {
......
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