Commit bacfa764 authored by Joker Huang's avatar Joker Huang

Merge branch 'bounceFall1.0' of http://gitlab2.dui88.com/clq/db-game-template into bounceFall1.0

parents 8263da56 be9abfb0
{
"editor.snippetSuggestions": "bottom",
"editor.suggest.snippetsPreventQuickSuggestions": false
}
\ No newline at end of file
......@@ -27,6 +27,7 @@ export default class MainBase extends eui.UILayer {
Loading.instace.loadImage();
console.log(window['CFG'])
DataManager.ins.gameCfgData = window['CFG'];
DataManager.ins.gameCfgData.gameInfo = {}
DataManager.ins.gameCfgData.gameInfo.gameId = window["gameId"];
this.getData();
}
......@@ -63,7 +64,7 @@ export default class MainBase extends eui.UILayer {
}
protected getData() {
NetManager.ins.getInfo();
// NetManager.ins.getInfo();
}
protected createChildren(): void {
......@@ -161,7 +162,7 @@ export default class MainBase extends eui.UILayer {
}
private loadTheme() {
return new Promise((resolve, reject) => {
return new Promise<void>((resolve, reject) => {
// load skin theme configuration file, you can manually modify the file. And replace the default skin.
//加载皮肤主题配置文件,可以手动修改这个文件。替换默认皮肤。
const theme = new eui.Theme("resource/default.thm.json", this.stage);
......
......@@ -13,15 +13,16 @@ export default class PlaySceneBase extends Scene {
}
sendSubmit() {
submit(() => {
let panel: Panel;
if (DataManager.ins.gameGetSubmitResultData.lottery) {
panel = PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL)
} else {
panel = showAlertPanel('手气不佳 \n 再试一次吧~');
}
let panel = showAlertPanel(" 手气不佳 \n 再试一次吧~");
// submit(() => {
// let panel: Panel;
// if (DataManager.ins.gameGetSubmitResultData.lottery) {
// panel = PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL)
// } else {
// panel = showAlertPanel('手气不佳 \n 再试一次吧~');
// }
}, this.score)
// }, this.score)
}
get skinKey() { return 'Play' }
}
\ No newline at end of file
......@@ -79,28 +79,17 @@ export default class StartSceneBase extends Scene {
}
private updateGetInfoView() {
if (DataManager.ins.getInfoData) {
this.updateStartBtnStatus();
this.updateCountTxt();
} else {
DataManager.ins.once('dataUpdate', this.updateGetInfoView, this);
}
this.updateStartBtnStatus();
}
async updateStartBtnStatus() {
if (this.startBtn) {
this.startBtn.visible = true;
this.startBtn.enabled = getStartBtnEnable();
this.startBtn.enabled = true
}
}
updateCountTxt() {
if (this.countTxt) {
this.countTxt.text = getCountTxt();
}
}
updateExemptionTxt() {
if (this.exemptionTxt) {
......
......@@ -69,6 +69,7 @@ import { ICustomCfgData } from '../data/custom/cfg/ICustomCfgData';
*/
export class DataManager extends ABDataManager {
private static instance: DataManager;
static DataManager: any;
public static get ins(): DataManager {
if (!this.instance) {
......@@ -89,7 +90,7 @@ export class DataManager extends ABDataManager {
/**
* 游戏业务
*/
public gameCfgData: IGameCfgData;
public gameCfgData: any;
/**
* 自定义活动工具业务
......
......@@ -24,8 +24,8 @@ class TuiaAutoUpload {
var _this = this;
this.client = new OSS({
region: 'oss-cn-hangzhou',
accessKeyId: 'LTAIdGi1IOap7fkF',
accessKeySecret: 'SKrOOp6EVtDGEV47yn0t2h97gyNioQ',
accessKeyId: 'LTAI4Fw25WcfcGv7FvcHoiHK',
accessKeySecret: 'NZk1NtT9J5HFaAolNbtQdzTzLLvLYm',
bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba'
});
this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), {
......@@ -57,8 +57,8 @@ class TuiaAutoUpload {
var filedir = path.join(filePath, filename);
//根据文件路径获取文件信息,返回一个fs.Stats对象
var stats = fs.statSync(filedir);
var isFile = stats.isFile();//是文件
var isDir = stats.isDirectory();//是文件夹
var isFile = stats.isFile(); //是文件
var isDir = stats.isDirectory(); //是文件夹
if (isFile) {
var sep = '/';
if ('win32' == process.platform)
......@@ -68,7 +68,7 @@ class TuiaAutoUpload {
_this._files.push(newDirArr.join('/'));
}
if (isDir) {
fileDisplay(filedir);//递归,如果是文件夹,就继续遍历该文件夹下面的文件
fileDisplay(filedir); //递归,如果是文件夹,就继续遍历该文件夹下面的文件
}
});
......@@ -146,4 +146,4 @@ const autoupload = new TuiaAutoUpload({
originDir: `/db_games/${config.type}/${config.name}/${version}/`
}, "prod")
autoupload.start()
autoupload.start()
\ No newline at end of file
{
"groups": [
{
"keys": "start_btn_png,start_btn_gray_png,ruleBtn_png,recordbtn_png,rankBtn_png,optionBtn_png,e4_png,e3_png,e2_png,e1_png,文案_png,startscenebg_jpg",
"groups": [{
"keys": "start_btn_png,start_btn_gray_png,ruleBtn_png,recordbtn_png,rankBtn_png,optionBtn_png,e4_png,e3_png,e2_png,e1_png,文案_png",
"name": "start"
},
{
......@@ -37,8 +36,7 @@
"name": "noprize"
}
],
"resources": [
{
"resources": [{
"url": "assets/alert/alertbg.png",
"type": "image",
"name": "alertbg_png"
......@@ -218,11 +216,6 @@
"type": "image",
"name": "gameOverTitle_png"
},
{
"url": "assets/startscenebg.jpg",
"type": "image",
"name": "startscenebg_jpg"
},
{
"url": "assets/playscenebg.jpg",
"type": "image",
......
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="StartSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16705cb4eec"/>
<e:Image id="bg" bottom="0" horizontalCenter="0" source="startscenebg_jpg"/>
<e:Group id="elements" horizontalCenter="0" verticalCenter="-172" height="664" width="756">
<e:Image id="e1" source="e1_png" x="154.5" y="124" anchorOffsetX="38" anchorOffsetY="35.5"/>
<e:Image id="e2" source="e2_png" x="756" y="531.5" anchorOffsetX="122" anchorOffsetY="131.5"/>
......
This diff is collapsed.
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