Commit 29d6cf5b authored by wildfirecode13's avatar wildfirecode13

u

parent 154925d4
......@@ -16,6 +16,10 @@
"keys": "cost_bg.png,cost_close.png,cost_open.png",
"name": "cost"
},
{
"keys": "getTimes_bg.png,getTimes_close.png,getTimes_go.png",
"name": "getTimes"
},
{
"keys": "index_bg.png,index_bg2.png,index_logo1.png,index_logo2.png,index_opentips.png,index_prizebg.png,index_record.png,index_rule.png,index_sharetips.png",
"name": "index"
......@@ -24,6 +28,10 @@
"keys": "进度条.png,进度条底.png",
"name": "loading"
},
{
"keys": "memberGuide_bg.png,memberGuide_btn.png,memberGuide_close.png",
"name": "memberGuide"
},
{
"keys": "newRule_bg.png,newRule_close.png",
"name": "newRule"
......@@ -32,6 +40,10 @@
"keys": "noprize_bg.png,noprize_close.png,noprize_ok.png",
"name": "noprize"
},
{
"keys": "notEnoughMoney_bg.png,notEnoughMoney_btn.png,notEnoughMoney_close.png",
"name": "notEnoughMoney"
},
{
"keys": "playBg.jpg",
"name": "playScene"
......@@ -43,6 +55,10 @@
{
"keys": "share_bg.png,share_close.png,share_go.png",
"name": "share"
},
{
"keys": "timesNotEnough_bg.png,timesNotEnough_close.png,timesNotEnough_ok.png",
"name": "timesNotEnough"
}
],
"path": "./resource/"
......
{"x":0,"y":0,"type":"container","children":[{"name":"RulePanel","x":0,"y":0,"type":"container","children":[{"name":"ruleBg","x":28,"y":248,"type":"sprite","props":{"source":"ruleBg.png"}},{"name":"规则内容","x":74,"y":369,"type":"text","props":{"text":"游戏规则\n","size":30,"fillColor":"#000000","textAlpha":1},"id":"ruleTxt"},{"name":"我知道了","x":164,"y":1197,"type":"button","props":{"tUp":"我知道了.png"},"id":"knowBtn"},{"name":"关闭按钮","x":625,"y":272,"type":"button","props":{"tUp":"关闭按钮.png"},"id":"closeBtn"}]},{"name":"StartScene","x":0,"y":0,"type":"container","children":[{"name":"startSceneBg","x":0,"y":0,"type":"sprite","props":{"source":"startSceneBg.jpg"}},{"name":"底部按钮区","x":0,"y":1242,"type":"container","children":[{"name":"底部按钮区背景","x":0,"y":0,"type":"sprite","props":{"source":"底部按钮区背景.png"}},{"name":"icon","x":56,"y":35,"type":"container","children":[{"name":"赚次数按钮","x":547,"y":0,"type":"button","props":{"tUp":"赚次数按钮.png"},"id":"taskBtn"},{"name":"运动锦鲤按钮","x":258,"y":0,"type":"button","props":{"tUp":"运动锦鲤按钮.png"},"id":"lotBtn"},{"name":"排行榜按钮","x":0,"y":0,"type":"button","props":{"tUp":"排行榜按钮.png"},"id":"rankBtn"}]}]},{"name":"timesTxt","x":286,"y":1205,"type":"text","props":{"text":"剩余次数:3次","size":16.00722,"fillColor":"#ffffff","textAlpha":1},"id":"timesTxt"},{"name":"开始游戏","x":171,"y":1052,"type":"button","props":{"tUp":"开始游戏.png"},"id":"startBtn"},{"name":"规则按钮","x":621,"y":212,"type":"button","props":{"tUp":"规则按钮.png"},"id":"ruleBtn"},{"name":"奖品按钮","x":11,"y":212,"type":"button","props":{"tUp":"奖品按钮.png"},"id":"recordBtn"}]},{"name":"share","x":126,"y":508,"type":"container","children":[{"name":"share_bg","x":0,"y":0,"type":"sprite","props":{"source":"share_bg.png"}},{"name":"share_go","x":139,"y":458,"type":"sprite","props":{"source":"share_go.png"}},{"name":"share_tips","x":122,"y":299,"type":"text","props":{"text":"获得一次拆盲盒机会","size":28,"fillColor":"#000000","textAlpha":1}},{"name":"share_close","x":216,"y":635,"type":"sprite","props":{"source":"share_close.png"}}]},{"name":"index","x":0,"y":0,"type":"container","children":[{"name":"index_bg","x":0,"y":0,"type":"sprite","props":{"source":"index_bg.png"}},{"name":"index_bg2","x":31,"y":424,"type":"sprite","props":{"source":"index_bg2.png"}},{"name":"index_moneytips2","x":608,"y":1133,"type":"text","props":{"text":"XX","size":32,"fillColor":"#000000","textAlpha":1}},{"name":"index_moneytips","x":490,"y":1133,"type":"text","props":{"text":"我的积分:","size":24,"fillColor":"#000000","textAlpha":1}},{"name":"index_timestips2","x":255,"y":1132,"type":"text","props":{"text":"XX","size":32,"fillColor":"#000000","textAlpha":1}},{"name":"index_timestips","x":137,"y":1132,"type":"text","props":{"text":"剩余次数:","size":24,"fillColor":"#000000","textAlpha":1}},{"name":"index_costtips","x":322,"y":434,"type":"text","props":{"text":"XX积分/次","size":30,"fillColor":"#000000","textAlpha":1}},{"name":"index_prizebg","x":31,"y":1256,"type":"sprite","props":{"source":"index_prizebg.png"}},{"name":"index_opentips","x":200,"y":1206,"type":"sprite","props":{"source":"index_opentips.png"}},{"name":"index_logo2","x":173,"y":291,"type":"sprite","props":{"source":"index_logo2.png"}},{"name":"index_logo1","x":237,"y":215,"type":"sprite","props":{"source":"index_logo1.png"}},{"name":"index_rule","x":0,"y":230,"type":"sprite","props":{"source":"index_rule.png"}},{"name":"index_record","x":608,"y":230,"type":"sprite","props":{"source":"index_record.png"}},{"name":"index_sharetips","x":184,"y":1187,"type":"sprite","props":{"source":"index_sharetips.png"}}]},{"name":"cost","x":126,"y":508,"type":"container","children":[{"name":"cost_bg","x":0,"y":0,"type":"sprite","props":{"source":"cost_bg.png"}},{"name":"cost_tips","x":133,"y":296,"type":"text","props":{"text":"消耗10积分拆开1个盲盒","size":24,"fillColor":"#000000","textAlpha":1}},{"name":"cost_open","x":139,"y":455,"type":"sprite","props":{"source":"cost_open.png"}},{"name":"cost_close","x":216,"y":635,"type":"sprite","props":{"source":"cost_close.png"}}]},{"name":"prize","x":9,"y":447,"type":"container","children":[{"name":"prize_bg2","x":0,"y":0,"type":"sprite","props":{"source":"prize_bg2.png"}},{"name":"prize_bg","x":78,"y":23,"type":"sprite","props":{"source":"prize_bg.png"}},{"name":"prize_tips","x":251,"y":565,"type":"text","props":{"text":"请在中奖后24小时内领取~","size":22,"fillColor":"#000000","textAlpha":1}},{"name":"prize_close","x":333,"y":696,"type":"sprite","props":{"source":"prize_close.png"}},{"name":"prize_open","x":256,"y":500,"type":"sprite","props":{"source":"prize_open.png"}},{"name":"prize_name","x":325,"y":454,"type":"text","props":{"text":"奖品名称","size":24,"fillColor":"#000000","textAlpha":1}}]},{"name":"noprize","x":126,"y":508,"type":"container","children":[{"name":"noprize_bg","x":0,"y":0,"type":"sprite","props":{"source":"noprize_bg.png"}},{"name":"noprize_ok","x":139,"y":455,"type":"sprite","props":{"source":"noprize_ok.png"}},{"name":"noprize_close","x":216,"y":635,"type":"sprite","props":{"source":"noprize_close.png"}}]},{"name":"newRule","x":110,"y":463,"type":"container","children":[{"name":"newRule_bg","x":0,"y":0,"type":"sprite","props":{"source":"newRule_bg.png"}},{"name":"newRule_tips","x":51,"y":158,"type":"text","props":{"text":"加载中... ...","size":24,"fillColor":"#000000","textAlpha":1}},{"name":"newRule_close","x":232,"y":772,"type":"sprite","props":{"source":"newRule_close.png"}}]}]}
{"x":0,"y":0,"type":"container","children":[{"name":"RulePanel","x":0,"y":0,"type":"container","children":[{"name":"ruleBg","x":28,"y":248,"type":"sprite","props":{"source":"ruleBg.png"}},{"name":"规则内容","x":74,"y":369,"type":"text","props":{"text":"游戏规则\n","size":30,"fillColor":"#000000","textAlpha":1},"id":"ruleTxt"},{"name":"我知道了","x":164,"y":1197,"type":"button","props":{"tUp":"我知道了.png"},"id":"knowBtn"},{"name":"关闭按钮","x":625,"y":272,"type":"button","props":{"tUp":"关闭按钮.png"},"id":"closeBtn"}]},{"name":"StartScene","x":0,"y":0,"type":"container","children":[{"name":"startSceneBg","x":0,"y":0,"type":"sprite","props":{"source":"startSceneBg.jpg"}},{"name":"底部按钮区","x":0,"y":1242,"type":"container","children":[{"name":"底部按钮区背景","x":0,"y":0,"type":"sprite","props":{"source":"底部按钮区背景.png"}},{"name":"icon","x":56,"y":35,"type":"container","children":[{"name":"赚次数按钮","x":547,"y":0,"type":"button","props":{"tUp":"赚次数按钮.png"},"id":"taskBtn"},{"name":"运动锦鲤按钮","x":258,"y":0,"type":"button","props":{"tUp":"运动锦鲤按钮.png"},"id":"lotBtn"},{"name":"排行榜按钮","x":0,"y":0,"type":"button","props":{"tUp":"排行榜按钮.png"},"id":"rankBtn"}]}]},{"name":"timesTxt","x":286,"y":1205,"type":"text","props":{"text":"剩余次数:3次","size":16.00722,"fillColor":"#ffffff","textAlpha":1},"id":"timesTxt"},{"name":"开始游戏","x":171,"y":1052,"type":"button","props":{"tUp":"开始游戏.png"},"id":"startBtn"},{"name":"规则按钮","x":621,"y":212,"type":"button","props":{"tUp":"规则按钮.png"},"id":"ruleBtn"},{"name":"奖品按钮","x":11,"y":212,"type":"button","props":{"tUp":"奖品按钮.png"},"id":"recordBtn"}]},{"name":"share","x":126,"y":508,"type":"container","children":[{"name":"share_bg","x":0,"y":0,"type":"sprite","props":{"source":"share_bg.png"}},{"name":"share_go","x":139,"y":458,"type":"sprite","props":{"source":"share_go.png"}},{"name":"share_tips","x":122,"y":299,"type":"text","props":{"text":"获得一次拆盲盒机会","size":28,"fillColor":"#000000","textAlpha":1}},{"name":"share_close","x":216,"y":635,"type":"sprite","props":{"source":"share_close.png"}}]},{"name":"index","x":0,"y":0,"type":"container","children":[{"name":"index_bg","x":0,"y":0,"type":"sprite","props":{"source":"index_bg.png"}},{"name":"index_bg2","x":31,"y":424,"type":"sprite","props":{"source":"index_bg2.png"}},{"name":"index_moneytips2","x":608,"y":1133,"type":"text","props":{"text":"XX","size":32,"fillColor":"#000000","textAlpha":1}},{"name":"index_moneytips","x":490,"y":1133,"type":"text","props":{"text":"我的积分:","size":24,"fillColor":"#000000","textAlpha":1}},{"name":"index_timestips2","x":255,"y":1132,"type":"text","props":{"text":"XX","size":32,"fillColor":"#000000","textAlpha":1}},{"name":"index_timestips","x":137,"y":1132,"type":"text","props":{"text":"剩余次数:","size":24,"fillColor":"#000000","textAlpha":1}},{"name":"index_costtips","x":322,"y":434,"type":"text","props":{"text":"XX积分/次","size":30,"fillColor":"#000000","textAlpha":1}},{"name":"index_prizebg","x":31,"y":1256,"type":"sprite","props":{"source":"index_prizebg.png"}},{"name":"index_opentips","x":200,"y":1206,"type":"sprite","props":{"source":"index_opentips.png"}},{"name":"index_logo2","x":173,"y":291,"type":"sprite","props":{"source":"index_logo2.png"}},{"name":"index_logo1","x":237,"y":215,"type":"sprite","props":{"source":"index_logo1.png"}},{"name":"index_rule","x":0,"y":230,"type":"sprite","props":{"source":"index_rule.png"}},{"name":"index_record","x":608,"y":230,"type":"sprite","props":{"source":"index_record.png"}},{"name":"index_sharetips","x":184,"y":1187,"type":"sprite","props":{"source":"index_sharetips.png"}}]},{"name":"cost","x":126,"y":508,"type":"container","children":[{"name":"cost_bg","x":0,"y":0,"type":"sprite","props":{"source":"cost_bg.png"}},{"name":"cost_tips","x":133,"y":296,"type":"text","props":{"text":"消耗10积分拆开1个盲盒","size":24,"fillColor":"#000000","textAlpha":1}},{"name":"cost_open","x":139,"y":455,"type":"sprite","props":{"source":"cost_open.png"}},{"name":"cost_close","x":216,"y":635,"type":"sprite","props":{"source":"cost_close.png"}}]},{"name":"prize","x":9,"y":447,"type":"container","children":[{"name":"prize_bg2","x":0,"y":0,"type":"sprite","props":{"source":"prize_bg2.png"}},{"name":"prize_bg","x":78,"y":23,"type":"sprite","props":{"source":"prize_bg.png"}},{"name":"prize_tips","x":251,"y":565,"type":"text","props":{"text":"请在中奖后24小时内领取~","size":22,"fillColor":"#000000","textAlpha":1}},{"name":"prize_close","x":333,"y":696,"type":"sprite","props":{"source":"prize_close.png"}},{"name":"prize_open","x":256,"y":500,"type":"sprite","props":{"source":"prize_open.png"}},{"name":"prize_name","x":325,"y":454,"type":"text","props":{"text":"奖品名称","size":24,"fillColor":"#000000","textAlpha":1}}]},{"name":"noprize","x":126,"y":508,"type":"container","children":[{"name":"noprize_bg","x":0,"y":0,"type":"sprite","props":{"source":"noprize_bg.png"}},{"name":"noprize_ok","x":139,"y":455,"type":"sprite","props":{"source":"noprize_ok.png"}},{"name":"noprize_close","x":216,"y":635,"type":"sprite","props":{"source":"noprize_close.png"}}]},{"name":"newRule","x":110,"y":463,"type":"container","children":[{"name":"newRule_bg","x":0,"y":0,"type":"sprite","props":{"source":"newRule_bg.png"}},{"name":"newRule_tips","x":51,"y":158,"type":"text","props":{"text":"加载中... ...","size":24,"fillColor":"#000000","textAlpha":1}},{"name":"newRule_close","x":232,"y":772,"type":"sprite","props":{"source":"newRule_close.png"}}]},{"name":"timesNotEnough","x":126,"y":508,"type":"container","children":[{"name":"timesNotEnough_bg","x":0,"y":0,"type":"sprite","props":{"source":"timesNotEnough_bg.png"}},{"name":"timesNotEnough_ok","x":139,"y":458,"type":"sprite","props":{"source":"timesNotEnough_ok.png"}},{"name":"timesNotEnough_close","x":216,"y":635,"type":"sprite","props":{"source":"timesNotEnough_close.png"}}]},{"name":"notEnoughMoney","x":126,"y":508,"type":"container","children":[{"name":"notEnoughMoney_bg","x":0,"y":0,"type":"sprite","props":{"source":"notEnoughMoney_bg.png"}},{"name":"notEnoughMoney_btn","x":139,"y":455,"type":"sprite","props":{"source":"notEnoughMoney_btn.png"}},{"name":"notEnoughMoney_tips","x":86,"y":293,"type":"text","props":{"text":"积分不足哟,先去赚积分吧~","size":28,"fillColor":"#000000","textAlpha":1}},{"name":"notEnoughMoney_close","x":216,"y":635,"type":"sprite","props":{"source":"notEnoughMoney_close.png"}}]},{"name":"share","x":126,"y":508,"type":"container","children":[{"name":"share_bg","x":0,"y":0,"type":"sprite","props":{"source":"share_bg.png"}},{"name":"share_go","x":139,"y":458,"type":"sprite","props":{"source":"share_go.png"}},{"name":"share_tips","x":122,"y":299,"type":"text","props":{"text":"获得一次拆盲盒机会","size":28,"fillColor":"#000000","textAlpha":1}},{"name":"share_close","x":216,"y":635,"type":"sprite","props":{"source":"share_close.png"}}]},{"name":"memberGuide","x":115,"y":506,"type":"container","children":[{"name":"memberGuide_bg","x":0,"y":0,"type":"sprite","props":{"source":"memberGuide_bg.png"}},{"name":"memberGuide_btn","x":150,"y":457,"type":"sprite","props":{"source":"memberGuide_btn.png"}},{"name":"memberGuide_close","x":227,"y":637,"type":"sprite","props":{"source":"memberGuide_close.png"}}]},{"name":"getTimes","x":126,"y":508,"type":"container","children":[{"name":"getTimes_bg","x":0,"y":0,"type":"sprite","props":{"source":"getTimes_bg.png"}},{"name":"getTimes_tips1","x":131,"y":504,"type":"text","props":{"text":"最多可增加1次拆盒机会/天","size":22,"fillColor":"#000000","textAlpha":1}},{"name":"getTimes_tips2","x":146,"y":313,"type":"text","props":{"text":"一次免费拆盒机会","size":28,"fillColor":"#000000","textAlpha":1}},{"name":"getTimes_close","x":216,"y":635,"type":"sprite","props":{"source":"getTimes_close.png"}},{"name":"getTimes_go","x":139,"y":432,"type":"sprite","props":{"source":"getTimes_go.png"}}]}]}
......@@ -16,6 +16,10 @@ export const ResJson = {
"keys": "cost_bg.png,cost_close.png,cost_open.png",
"name": "cost"
},
{
"keys": "getTimes_bg.png,getTimes_close.png,getTimes_go.png",
"name": "getTimes"
},
{
"keys": "index_bg.png,index_bg2.png,index_logo1.png,index_logo2.png,index_opentips.png,index_prizebg.png,index_record.png,index_rule.png,index_sharetips.png",
"name": "index"
......@@ -24,6 +28,10 @@ export const ResJson = {
"keys": "进度条.png,进度条底.png",
"name": "loading"
},
{
"keys": "memberGuide_bg.png,memberGuide_btn.png,memberGuide_close.png",
"name": "memberGuide"
},
{
"keys": "newRule_bg.png,newRule_close.png",
"name": "newRule"
......@@ -32,6 +40,10 @@ export const ResJson = {
"keys": "noprize_bg.png,noprize_close.png,noprize_ok.png",
"name": "noprize"
},
{
"keys": "notEnoughMoney_bg.png,notEnoughMoney_btn.png,notEnoughMoney_close.png",
"name": "notEnoughMoney"
},
{
"keys": "playBg.jpg",
"name": "playScene"
......@@ -43,6 +55,10 @@ export const ResJson = {
{
"keys": "share_bg.png,share_close.png,share_go.png",
"name": "share"
},
{
"keys": "timesNotEnough_bg.png,timesNotEnough_close.png,timesNotEnough_ok.png",
"name": "timesNotEnough"
}
],
"path": "./resource/"
......
......@@ -530,7 +530,6 @@ export const SkinJson ={
}
},
{
"id": "ruleTxt",
"name": "newRule_tips",
"x": 51,
"y": 158,
......@@ -543,7 +542,6 @@ export const SkinJson ={
}
},
{
"id": "closeBtn",
"name": "newRule_close",
"x": 232,
"y": 772,
......@@ -553,6 +551,229 @@ export const SkinJson ={
}
}
]
},
{
"name": "timesNotEnough",
"x": 126,
"y": 508,
"type": "container",
"children": [
{
"name": "timesNotEnough_bg",
"x": 0,
"y": 0,
"type": "sprite",
"props": {
"source": "timesNotEnough_bg.png"
}
},
{
"name": "timesNotEnough_ok",
"x": 139,
"y": 458,
"type": "sprite",
"props": {
"source": "timesNotEnough_ok.png"
}
},
{
"name": "timesNotEnough_close",
"x": 216,
"y": 635,
"type": "sprite",
"props": {
"source": "timesNotEnough_close.png"
}
}
]
},
{
"name": "notEnoughMoney",
"x": 126,
"y": 508,
"type": "container",
"children": [
{
"name": "notEnoughMoney_bg",
"x": 0,
"y": 0,
"type": "sprite",
"props": {
"source": "notEnoughMoney_bg.png"
}
},
{
"name": "notEnoughMoney_btn",
"x": 139,
"y": 455,
"type": "sprite",
"props": {
"source": "notEnoughMoney_btn.png"
}
},
{
"name": "notEnoughMoney_tips",
"x": 86,
"y": 293,
"type": "text",
"props": {
"text": "积分不足哟,先去赚积分吧~",
"size": 28,
"fillColor": "#000000",
"textAlpha": 1
}
},
{
"name": "notEnoughMoney_close",
"x": 216,
"y": 635,
"type": "sprite",
"props": {
"source": "notEnoughMoney_close.png"
}
}
]
},
{
"name": "share",
"x": 126,
"y": 508,
"type": "container",
"children": [
{
"name": "share_bg",
"x": 0,
"y": 0,
"type": "sprite",
"props": {
"source": "share_bg.png"
}
},
{
"name": "share_go",
"x": 139,
"y": 458,
"type": "sprite",
"props": {
"source": "share_go.png"
}
},
{
"name": "share_tips",
"x": 122,
"y": 299,
"type": "text",
"props": {
"text": "获得一次拆盲盒机会",
"size": 28,
"fillColor": "#000000",
"textAlpha": 1
}
},
{
"name": "share_close",
"x": 216,
"y": 635,
"type": "sprite",
"props": {
"source": "share_close.png"
}
}
]
},
{
"name": "memberGuide",
"x": 115,
"y": 506,
"type": "container",
"children": [
{
"name": "memberGuide_bg",
"x": 0,
"y": 0,
"type": "sprite",
"props": {
"source": "memberGuide_bg.png"
}
},
{
"name": "memberGuide_btn",
"x": 150,
"y": 457,
"type": "sprite",
"props": {
"source": "memberGuide_btn.png"
}
},
{
"name": "memberGuide_close",
"x": 227,
"y": 637,
"type": "sprite",
"props": {
"source": "memberGuide_close.png"
}
}
]
},
{
"name": "getTimes",
"x": 126,
"y": 508,
"type": "container",
"children": [
{
"name": "getTimes_bg",
"x": 0,
"y": 0,
"type": "sprite",
"props": {
"source": "getTimes_bg.png"
}
},
{
"name": "getTimes_tips1",
"x": 131,
"y": 504,
"type": "text",
"props": {
"text": "最多可增加1次拆盒机会/天",
"size": 22,
"fillColor": "#000000",
"textAlpha": 1
}
},
{
"name": "getTimes_tips2",
"x": 146,
"y": 313,
"type": "text",
"props": {
"text": "一次免费拆盒机会",
"size": 28,
"fillColor": "#000000",
"textAlpha": 1
}
},
{
"name": "getTimes_close",
"x": 216,
"y": 635,
"type": "sprite",
"props": {
"source": "getTimes_close.png"
}
},
{
"name": "getTimes_go",
"x": 139,
"y": 432,
"type": "sprite",
"props": {
"source": "getTimes_go.png"
}
}
]
}
]
}
\ No newline at end of file
import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel";
import centerTextField from "../common/centerTextField";
import getObject from "../common/getObject";
let section;
export class getTimesPanel extends Panel {
share_share_go(){
console.log('share_share_go');
}
get groupNames() { return ["getTimes"] }
get skinName() { return "getTimes" }
initUi() {
super.initUi();
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this,'cost_tips'),496);
}
initEvents() {
super.initEvents();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
removeEvents() {
super.removeEvents();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
protected get closeBtns(): any[] {
return [getObject(this,'cost_close')]
}
}
import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel";
import centerTextField from "../common/centerTextField";
import getObject from "../common/getObject";
let section;
export class memberGuidePanel extends Panel {
share_share_go(){
console.log('share_share_go');
}
get groupNames() { return ["cost"] }
get skinName() { return "cost" }
initUi() {
super.initUi();
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this,'cost_tips'),496);
}
initEvents() {
super.initEvents();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
removeEvents() {
super.removeEvents();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
protected get closeBtns(): any[] {
return [getObject(this,'cost_close')]
}
}
import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel";
import centerTextField from "../common/centerTextField";
import getObject from "../common/getObject";
let section;
export class notEnoughMoneyPanel extends Panel {
share_share_go(){
console.log('share_share_go');
}
get groupNames() { return ["notEnoughMoney"] }
get skinName() { return "notEnoughMoney" }
initUi() {
super.initUi();
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
// centerTextField(getObject(this,'cost_tips'),496);
}
initEvents() {
super.initEvents();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
removeEvents() {
super.removeEvents();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
protected get closeBtns(): any[] {
return [getObject(this,'notEnoughMoney_close')]
}
}
import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel";
import centerTextField from "../common/centerTextField";
import getObject from "../common/getObject";
let section;
export class timesNotEnoughPanel extends Panel {
share_share_go(){
console.log('share_share_go');
}
get groupNames() { return ["cost"] }
get skinName() { return "cost" }
initUi() {
super.initUi();
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this,'cost_tips'),496);
}
initEvents() {
super.initEvents();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
removeEvents() {
super.removeEvents();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
}
protected get closeBtns(): any[] {
return [getObject(this,'cost_close')]
}
}
......@@ -4,6 +4,7 @@ import { Scene } from "../../module/views/Scene";
import getObject from "../common/getObject";
import { CostPanel } from "../panels/cost";
import { NoPrizePanel } from "../panels/noprize";
import { notEnoughMoneyPanel } from "../panels/notEnoughMoney";
import { PrizePanel } from "../panels/prize";
import { SharePanel } from "../panels/share";
import { RulePanel } from "../template/RulePanel";
......@@ -26,7 +27,7 @@ export class IndexScene extends Scene {
start() {
super.start();
showPanel(RulePanel);
showPanel(notEnoughMoneyPanel);
getObject(this,'index_sharetips').visible=false;
this.initContainer();
this.initmask();
......
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 { WebNetName } from "../WebNetName";
......@@ -11,6 +12,8 @@ export class RulePanel extends Panel {
super.initUi();
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
this.ruleTxt=getObject(this,'newRule_tips')
this.closeBtn=getObject(this,'newRule_close')
}
get groupNames() { return ["newRule"] }
......
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