Commit 3013960d authored by wjf's avatar wjf

l

parent 27f0409b
......@@ -450,7 +450,7 @@ export class NetManager extends ABNetManager {
activityId: DataManager.ins.customCfgData.actId,
orderId: orderId,
gameData: gameData,
sign: sign,
sgin: sign,
dynamicData: JSON.stringify([]),
detect: window['detect'],
deviceSessionId: window['_device_session_id'],
......
......@@ -187,6 +187,8 @@ export default class MainScene extends Scene {
stepBtnNum: PropNumShow;
//道具使用引导
propGuide: PropGuide;
//步数道具引导时的圆
stepCircle:egret.Shape;
start(data) {
super.start();
//初始化索引信息
......@@ -358,7 +360,7 @@ export default class MainScene extends Scene {
//道具使用引导
this.propGuide = new PropGuide();
this.propGuide.touchEnabled = true;
// this.addChild(this.propGuide);
}
//初始化格子
initLattices() {
......@@ -666,6 +668,9 @@ export default class MainScene extends Scene {
this.isShowWarning = false;
this.resetWarning();
}
//添加引导蒙层
this.addChild(this.propGuide);
this.propGuide.init(prop);
//如果是炸弹或者锤子
if (prop == PropType.BOOM || prop == PropType.HAMMER) {
//去掉元素容器的侦听
......@@ -676,8 +681,18 @@ export default class MainScene extends Scene {
this.choosed.parent.removeChild(this.choosed)
}
} else {
if(!this.stepCircle){
this.stepCircle = new egret.Shape();
this.stepCircle.graphics.beginFill(0xff0000, 0.5);
this.stepCircle.graphics.drawCircle(123, 98, 72);
this.stepCircle.graphics.endFill();
// this.stepCircle.addEventListener()
}
this.addChild(this.stepCircle)
}
}
sendPropUse(prop){
}
mouseDownE(e: egret.TextEvent) {
// if (!this.enableTouch) return
......@@ -2066,13 +2081,13 @@ export default class MainScene extends Scene {
if (!data) {
//错误弹框,网络错误
//提交失败
showToast("网络错误,再次连接中")
showToast("网络开小差了\n再次连接中")
setTimeout(() => {
this.submit(json);
}, 1300)
} else {
//提交失败,根据错误码显示错误信息
var txt = codeMsgs[data.code] || "提交失败";
var txt = codeMsgs[data.code] || "活动太火爆了\n请稍后再来";
showToast(txt);
setTimeout(() => {
SceneCtrl.instance.change(ModuleTypes.MAP_SCENE);
......
......@@ -17,6 +17,7 @@ export const codeMsgs = {
"E1002090015": "关卡目标未完成",
"E1002090016": "游戏数据提交异常",
"E1002090017": "游戏关卡配置异常或关卡暂未开放",
"E1002070002": "游戏分数提交失败~\n如有疑问,请联系客服"
}
//提交时候的对应字段字段,分数额外,字段是1
export const submitTran = {
......
......@@ -45,7 +45,7 @@ export class PropGuide extends egret.DisplayObjectContainer {
this.stepCircle.graphics.beginFill(0xff0000, 0.5);
this.stepCircle.graphics.drawCircle(123, 98, 72);
this.stepCircle.graphics.endFill();
this.addChild(this.stepCircle);
this.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (this.parent) this.parent.removeChild(this)
}, this)
......
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