Commit 684d71e1 authored by wildfirecode13's avatar wildfirecode13

u

parent 0510b849
import { RES } from "../../module/RES";
import { layers } from "../../module/views/layers";
import { sendLog } from "../WebNet";
import centerTextField from "./centerTextField";
import { getStageHeight } from "./stage";
let mask;
......@@ -24,6 +25,7 @@ export default class ShareMask extends FYGE.Sprite {
let callback;
callback = () => {
sendLog("click",10);
this.parent && this.parent.removeChild(this);
this.removeEventListener(FYGE.MouseEvent.CLICK, callback, this);
mask = null;
......@@ -46,6 +48,7 @@ export const showShareMask = () => {
if (mask) return;
mask = new ShareMask();
layers.shareLayer.addChild(mask);
sendLog("exposure",10);
}
export const hideShareMask = () => {
if (!mask) return;
......
......@@ -2,14 +2,19 @@ import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel";
import getObject from "../common/getObject";
import { Tools } from "../Tools";
import { getWebData, sendWebNet } from "../WebNet";
import { getWebData, sendLog, sendWebNet } from "../WebNet";
import { WebNetName } from "../WebNetName";
let section;
export class RulePanel extends Panel {
hidePanel(){
super.hidePanel();
sendLog("click",4);
}
initUi() {
super.initUi();
sendLog("exposure",4);
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
this.ruleTxt=getObject(this,'newRule_tips')
......
......@@ -2,12 +2,14 @@ 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";
let section;
export class getTimesPanel extends Panel {
click_getTimes_go(){
console.log('click_getTimes_go');
sendLog("click",7);
}
get groupNames() { return ["getTimes"] }
......@@ -15,6 +17,8 @@ export class getTimesPanel extends Panel {
initUi() {
super.initUi();
sendLog("exposure",7);
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this,'getTimes_tips2'),496);
......
......@@ -2,12 +2,14 @@ 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";
let section;
export class memberGuidePanel extends Panel {
click_memberGuide_btn(){
console.log('memberGuide_btn');
sendLog("click",6);
}
get groupNames() { return ["memberGuide"] }
......@@ -15,6 +17,7 @@ export class memberGuidePanel extends Panel {
initUi() {
super.initUi();
sendLog("exposure",6);
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
// centerTextField(getObject(this,'cost_tips'),496);
......
......@@ -2,6 +2,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";
let section;
export class NoPrizePanel extends Panel {
......@@ -10,6 +11,11 @@ export class NoPrizePanel extends Panel {
// console.log('share_share_go');
// }
hidePanel(){
super.hidePanel();
sendLog("click",3);
}
get groupNames() { return ["noprize"] }
get skinName() { return "noprize" }
......@@ -18,6 +24,7 @@ export class NoPrizePanel extends Panel {
initUi() {
super.initUi();
sendLog("exposure",3);
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this, 'prize_name'), 731);
......
......@@ -2,11 +2,13 @@ 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";
let section;
export class notEnoughMoneyPanel extends Panel {
click_notEnoughMoney_btn(){
sendLog("click",5);
console.log('click_notEnoughMoney_btn');
}
......@@ -15,6 +17,7 @@ export class notEnoughMoneyPanel extends Panel {
initUi() {
super.initUi();
sendLog("exposure",5);
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this,'notEnoughMoney_tips'),496);
......
......@@ -21,6 +21,7 @@ export class PrizePanel extends Panel {
}
click_prize_open() {
sendLog("click",2);
console.log('click_prize_open')
}
......@@ -30,7 +31,7 @@ export class PrizePanel extends Panel {
prizeContainer: FYGE.Sprite;
initUi() {
super.initUi();
sendLog("exposure",1);
sendLog("exposure",2);
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this, 'prize_name'), 731);
......
......@@ -3,7 +3,7 @@ import { Panel } from "../../module/views/Panel";
import centerTextField from "../common/centerTextField";
import getObject from "../common/getObject";
import { Tools } from "../Tools";
import { getWebData, sendWebNet } from "../WebNet";
import { getWebData, sendLog, sendWebNet } from "../WebNet";
import { WebNetName } from "../WebNetName";
let section;
......@@ -11,6 +11,7 @@ export class SharePanel extends Panel {
share_share_go(){
console.log('share_go');
sendLog("click",11);
this.hidePanel();
}
get groupNames() { return ["share"] }
......@@ -18,6 +19,8 @@ export class SharePanel extends Panel {
initUi() {
super.initUi();
sendLog("exposure",11);
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
......
......@@ -2,11 +2,13 @@ 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";
let section;
export class timesNotEnoughPanel extends Panel {
share_share_go(){
sendLog("exposure",8);
console.log('timesNotEnough');
}
......@@ -15,6 +17,7 @@ export class timesNotEnoughPanel extends Panel {
initUi() {
super.initUi();
sendLog("click",8);
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
// centerTextField(getObject(this,'cost_tips'),496);
......
......@@ -14,7 +14,7 @@ import { RulePanel } from "../panels/RulePanel";
import { Box } from "./Box";
import { BoxGroup } from "./BoxGroup";
import { ScrollItem } from "./ScrollItem";
import { getWebData, sendWebNet } from "../WebNet";
import { getWebData, sendLog, sendWebNet } from "../WebNet";
import { WebNetName } from "../WebNetName";
import { layers } from "../../module/views/layers";
import { showShareMask } from "../common/ShareMask";
......@@ -33,6 +33,11 @@ export class IndexScene extends Scene {
super();
}
initUi(){
super.initUi();
sendLog("exposure",9);
}
start() {
super.start();
// this.initNonmemberMask();
......@@ -63,6 +68,7 @@ export class IndexScene extends Scene {
shareButton = getObject(this, 'index_sharetips');
shareButton.addEventListener(FYGE.MouseEvent.CLICK, () => {
showShareMask();
sendLog("click",9);
},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