Commit 254f14b8 authored by haiyoucuv's avatar haiyoucuv

1111

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