Commit fa7892fe authored by wildfirecode13's avatar wildfirecode13

1

parent 4cd9f191
......@@ -3,6 +3,7 @@ import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel";
import centerTextField from "../common/centerTextField";
import getObject from "../common/getObject";
import { sendLog } from "../WebNet";
import { PrizePanel } from "./prize";
let section;
......@@ -13,9 +14,10 @@ export class CostPanel extends Panel {
getObject(this, "cost_tips").text = `消耗${cost}积分拆开1个盲盒`;
}
cost_open() {
sendLog("click",1);
this.dispatchEvent("stopIndexEnterFrame", { });
this.hidePanel();
showPanel(PrizePanel)
showPanel(PrizePanel)
}
get groupNames() {
......@@ -30,6 +32,7 @@ export class CostPanel extends Panel {
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this, "cost_tips"), 496);
sendLog("exposure",1);
}
initEvents() {
......
......@@ -6,6 +6,7 @@ import { showPanel } from "../../module/ctrls";
import { getImage } from "../common/getImage";
import getObject from "../common/getObject";
import { CostPanel } from "./cost";
import { sendLog } from "../WebNet";
let section;
export class PrizePanel extends Panel {
......@@ -31,6 +32,7 @@ export class PrizePanel extends Panel {
prizeContainer: FYGE.Sprite;
initUi() {
super.initUi();
sendLog("exposure",1);
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this, 'prize_name'), 731);
......
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