Commit 7a1e1360 authored by wjf's avatar wjf

l

parent 6f11ebc2
...@@ -38,6 +38,9 @@ class Layers extends Container { ...@@ -38,6 +38,9 @@ class Layers extends Container {
//初始化弹框层级 //初始化弹框层级
PanelCtrl.instance.init(this.popupLayer) PanelCtrl.instance.init(this.popupLayer)
//弹框要居中适配,加个
this.popupLayer.y = 0;
} }
/** /**
......
resource/common/comCloseBtn.png

4.87 KB | W: | H:

resource/common/comCloseBtn.png

1.72 KB | W: | H:

resource/common/comCloseBtn.png
resource/common/comCloseBtn.png
resource/common/comCloseBtn.png
resource/common/comCloseBtn.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -8,7 +8,7 @@ import { layers } from "../module/views/layers"; ...@@ -8,7 +8,7 @@ import { layers } from "../module/views/layers";
import { RES } from "../module/RES"; import { RES } from "../module/RES";
import { changeScene, showWaiting, hideWaiting, showToast } from "../module/ctrls"; import { changeScene, showWaiting, hideWaiting, showToast } from "../module/ctrls";
import { StartScene } from "./scenes/StartScene"; import { StartScene } from "./scenes/StartScene";
import { PlayScene, PlayStatus } from "./scenes/PlayScene"; import { PlayScene } from "./scenes/PlayScene";
import { sendTbNet, TbNetName, getTbData } from "./TaoBaoNet"; import { sendTbNet, TbNetName, getTbData } from "./TaoBaoNet";
...@@ -42,7 +42,8 @@ window.addEventListener("load", function () { ...@@ -42,7 +42,8 @@ window.addEventListener("load", function () {
export class Main { export class Main {
stage: Stage stage: Stage
constructor() { constructor() {
this.stage = new Stage("cusEngine", 750, 1206, 60, StageScaleMode.FIXED_WIDTH, RENDERER_TYPE.WEBGL); //设计尺寸按750*1624来
this.stage = new Stage("cusEngine", 750, 1624, 60, StageScaleMode.FIXED_WIDTH, RENDERER_TYPE.WEBGL);
//启动循环 //启动循环
Stage.flushAll(); Stage.flushAll();
//加入两个Tween //加入两个Tween
...@@ -61,7 +62,7 @@ export class Main { ...@@ -61,7 +62,7 @@ export class Main {
//隐藏加载中 //隐藏加载中
if (document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none"; if (document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none";
//打开开始场景 //打开开始场景
// changeScene(StartScene);return; changeScene(StartScene);return;
//获取数据,,必成功 //获取数据,,必成功
showWaiting(); showWaiting();
sendTbNet(TbNetName.getAppData, {}, (s, res) => { sendTbNet(TbNetName.getAppData, {}, (s, res) => {
......
This diff is collapsed.
...@@ -35,6 +35,7 @@ export class StartScene extends Scene { ...@@ -35,6 +35,7 @@ export class StartScene extends Scene {
get groupNames(): string[] { return ["startScene"] } get groupNames(): string[] { return ["startScene"] }
start() { start() {
super.start(); super.start();
// this.scaleX=0.5 // this.scaleX=0.5
// showPanel(PrizePanel) // showPanel(PrizePanel)
...@@ -62,7 +63,7 @@ export class StartScene extends Scene { ...@@ -62,7 +63,7 @@ export class StartScene extends Scene {
} }
//初始化ui //初始化ui
initUi() { initUi() {
var bg = new Sprite(RES.getRes("startBg.jpg")) var bg = new Sprite(RES.getRes("startBtn.png"))
// Tween.get(bg, { loop: true }) // Tween.get(bg, { loop: true })
// .to({ tint: 0 }, 5000) // .to({ tint: 0 }, 5000)
// bg.tint=0xff0000 // bg.tint=0xff0000
......
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