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/"
......
This diff is collapsed.
......@@ -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