Commit b5077a43 authored by wjf's avatar wjf

l

parent ec91ad3b
......@@ -448,6 +448,7 @@ export class NetManager extends ABNetManager {
dataType: 'json',
param: {
activityId: DataManager.ins.customCfgData.actId,
orderId: orderId,
gameData: gameData,
sign: sign,
dynamicData: JSON.stringify([]),
......@@ -834,7 +835,7 @@ export class NetManager extends ABNetManager {
public hc_exchange(callback: Function, propType?: number): void {
const d: any = {
activityId: DataManager.ins.customCfgData.actId
};
if (propType) {
d.propType = propType;
......
......@@ -12,6 +12,7 @@ export class PropGuide extends egret.DisplayObjectContainer {
hammerBtn: egret.Bitmap;
stepBtn: egret.Bitmap;
msgTxt: egret.TextField;
stepCircle: egret.Shape;
constructor() {
super()
this.bg = new egret.Shape();
......@@ -33,12 +34,17 @@ export class PropGuide extends egret.DisplayObjectContainer {
text.text = "为本次增加额外5次步数";
text.textColor = 0xffffff;
text.size = 20;
text.x = (750-500)/2;
text.x = (750 - 500) / 2;
text.y = 1008;
text.textAlign = egret.HorizontalAlign.CENTER;
text.width = 500;
this.addChild(text);
this.msgTxt = text;
//步数的圆
this.stepCircle = new egret.Shape();
this.stepCircle.graphics.beginFill(0xff0000, 0.5);
this.stepCircle.graphics.drawCircle(123, 98, 72);
this.stepCircle.graphics.endFill();
this.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (this.parent) this.parent.removeChild(this)
......@@ -74,7 +80,7 @@ export class PropGuide extends egret.DisplayObjectContainer {
this.bg.graphics.lineTo(0, 0);
this.bg.graphics.drawArc(123, 98, 72, 0, Math.PI * 2, true)
this.bg.graphics.endFill();
this.msgTxt.text = "为本次增加额外5次步数";
this.msgTxt.text = "点击左上方步数,为本次增加额外5次步数";
// this.msgTxt.x = 320;
}
}
......
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