Commit be9abfb0 authored by huangwenjie's avatar huangwenjie

1

parent 83ba2b00
{
"editor.snippetSuggestions": "bottom",
"editor.suggest.snippetsPreventQuickSuggestions": false
}
\ No newline at end of file
...@@ -27,6 +27,7 @@ export default class MainBase extends eui.UILayer { ...@@ -27,6 +27,7 @@ export default class MainBase extends eui.UILayer {
Loading.instace.loadImage(); Loading.instace.loadImage();
console.log(window['CFG']) console.log(window['CFG'])
DataManager.ins.gameCfgData = window['CFG']; DataManager.ins.gameCfgData = window['CFG'];
DataManager.ins.gameCfgData.gameInfo = {}
DataManager.ins.gameCfgData.gameInfo.gameId = window["gameId"]; DataManager.ins.gameCfgData.gameInfo.gameId = window["gameId"];
this.getData(); this.getData();
} }
...@@ -63,7 +64,7 @@ export default class MainBase extends eui.UILayer { ...@@ -63,7 +64,7 @@ export default class MainBase extends eui.UILayer {
} }
protected getData() { protected getData() {
NetManager.ins.getInfo(); // NetManager.ins.getInfo();
} }
protected createChildren(): void { protected createChildren(): void {
...@@ -161,7 +162,7 @@ export default class MainBase extends eui.UILayer { ...@@ -161,7 +162,7 @@ export default class MainBase extends eui.UILayer {
} }
private loadTheme() { 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. // 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); const theme = new eui.Theme("resource/default.thm.json", this.stage);
......
...@@ -13,15 +13,16 @@ export default class PlaySceneBase extends Scene { ...@@ -13,15 +13,16 @@ export default class PlaySceneBase extends Scene {
} }
sendSubmit() { sendSubmit() {
submit(() => { let panel = showAlertPanel(" 手气不佳 \n 再试一次吧~");
let panel: Panel; // submit(() => {
if (DataManager.ins.gameGetSubmitResultData.lottery) { // let panel: Panel;
panel = PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL) // if (DataManager.ins.gameGetSubmitResultData.lottery) {
} else { // panel = PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL)
panel = showAlertPanel('手气不佳 \n 再试一次吧~'); // } else {
} // panel = showAlertPanel('手气不佳 \n 再试一次吧~');
// }
}, this.score) // }, this.score)
} }
get skinKey() { return 'Play' } get skinKey() { return 'Play' }
} }
\ No newline at end of file
...@@ -79,28 +79,17 @@ export default class StartSceneBase extends Scene { ...@@ -79,28 +79,17 @@ export default class StartSceneBase extends Scene {
} }
private updateGetInfoView() { private updateGetInfoView() {
if (DataManager.ins.getInfoData) { this.updateStartBtnStatus();
this.updateStartBtnStatus();
this.updateCountTxt();
} else {
DataManager.ins.once('dataUpdate', this.updateGetInfoView, this);
}
} }
async updateStartBtnStatus() { async updateStartBtnStatus() {
if (this.startBtn) { if (this.startBtn) {
this.startBtn.visible = true; this.startBtn.visible = true;
this.startBtn.enabled = getStartBtnEnable(); this.startBtn.enabled = true
} }
} }
updateCountTxt() {
if (this.countTxt) {
this.countTxt.text = getCountTxt();
}
}
updateExemptionTxt() { updateExemptionTxt() {
if (this.exemptionTxt) { if (this.exemptionTxt) {
......
...@@ -69,6 +69,7 @@ import { ICustomCfgData } from '../data/custom/cfg/ICustomCfgData'; ...@@ -69,6 +69,7 @@ import { ICustomCfgData } from '../data/custom/cfg/ICustomCfgData';
*/ */
export class DataManager extends ABDataManager { export class DataManager extends ABDataManager {
private static instance: DataManager; private static instance: DataManager;
static DataManager: any;
public static get ins(): DataManager { public static get ins(): DataManager {
if (!this.instance) { if (!this.instance) {
...@@ -89,7 +90,7 @@ export class DataManager extends ABDataManager { ...@@ -89,7 +90,7 @@ export class DataManager extends ABDataManager {
/** /**
* 游戏业务 * 游戏业务
*/ */
public gameCfgData: IGameCfgData; public gameCfgData: any;
/** /**
* 自定义活动工具业务 * 自定义活动工具业务
......
...@@ -24,8 +24,8 @@ class TuiaAutoUpload { ...@@ -24,8 +24,8 @@ class TuiaAutoUpload {
var _this = this; var _this = this;
this.client = new OSS({ this.client = new OSS({
region: 'oss-cn-hangzhou', region: 'oss-cn-hangzhou',
accessKeyId: 'LTAIdGi1IOap7fkF', accessKeyId: 'LTAI4Fw25WcfcGv7FvcHoiHK',
accessKeySecret: 'SKrOOp6EVtDGEV47yn0t2h97gyNioQ', accessKeySecret: 'NZk1NtT9J5HFaAolNbtQdzTzLLvLYm',
bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba' bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba'
}); });
this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), { this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), {
...@@ -57,8 +57,8 @@ class TuiaAutoUpload { ...@@ -57,8 +57,8 @@ class TuiaAutoUpload {
var filedir = path.join(filePath, filename); var filedir = path.join(filePath, filename);
//根据文件路径获取文件信息,返回一个fs.Stats对象 //根据文件路径获取文件信息,返回一个fs.Stats对象
var stats = fs.statSync(filedir); var stats = fs.statSync(filedir);
var isFile = stats.isFile();//是文件 var isFile = stats.isFile(); //是文件
var isDir = stats.isDirectory();//是文件夹 var isDir = stats.isDirectory(); //是文件夹
if (isFile) { if (isFile) {
var sep = '/'; var sep = '/';
if ('win32' == process.platform) if ('win32' == process.platform)
...@@ -68,7 +68,7 @@ class TuiaAutoUpload { ...@@ -68,7 +68,7 @@ class TuiaAutoUpload {
_this._files.push(newDirArr.join('/')); _this._files.push(newDirArr.join('/'));
} }
if (isDir) { if (isDir) {
fileDisplay(filedir);//递归,如果是文件夹,就继续遍历该文件夹下面的文件 fileDisplay(filedir); //递归,如果是文件夹,就继续遍历该文件夹下面的文件
} }
}); });
...@@ -146,4 +146,4 @@ const autoupload = new TuiaAutoUpload({ ...@@ -146,4 +146,4 @@ const autoupload = new TuiaAutoUpload({
originDir: `/db_games/${config.type}/${config.name}/${version}/` originDir: `/db_games/${config.type}/${config.name}/${version}/`
}, "prod") }, "prod")
autoupload.start() autoupload.start()
\ No newline at end of file
{ {
"groups": [ "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",
"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",
"name": "start" "name": "start"
}, },
{ {
...@@ -37,8 +36,7 @@ ...@@ -37,8 +36,7 @@
"name": "noprize" "name": "noprize"
} }
], ],
"resources": [ "resources": [{
{
"url": "assets/alert/alertbg.png", "url": "assets/alert/alertbg.png",
"type": "image", "type": "image",
"name": "alertbg_png" "name": "alertbg_png"
...@@ -218,11 +216,6 @@ ...@@ -218,11 +216,6 @@
"type": "image", "type": "image",
"name": "gameOverTitle_png" "name": "gameOverTitle_png"
}, },
{
"url": "assets/startscenebg.jpg",
"type": "image",
"name": "startscenebg_jpg"
},
{ {
"url": "assets/playscenebg.jpg", "url": "assets/playscenebg.jpg",
"type": "image", "type": "image",
......
<?xml version="1.0" encoding="utf-8"?> <?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"> <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"/> <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: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="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"/> <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