Commit db960913 authored by wjf's avatar wjf

l

parent 436e3050
...@@ -444,7 +444,8 @@ export namespace RES { ...@@ -444,7 +444,8 @@ export namespace RES {
//@ts-ignore //@ts-ignore
var data: SkinInt = typeof (skin) == 'string' ? getSkinDataByName(skin) : skin; var data: SkinInt = typeof (skin) == 'string' ? getSkinDataByName(skin) : skin;
if (!data.children || !data.children.length) return; if (!data.children || !data.children.length) return;
for (var i = data.children.length - 1; i >= 0; i--) { // for (var i = data.children.length - 1; i >= 0; i--) {
for (var i = 0; i < data.children.length; i++) {
var child = data.children[i]; var child = data.children[i];
if (child.type == "skin") continue; if (child.type == "skin") continue;
var dis = con.addChild(getDisplayByData(child)); var dis = con.addChild(getDisplayByData(child));
......
var fs = require("fs");
var iconv = require('iconv-lite');
//读取json文件
var data = iconv.decode(fs.readFileSync("./resource/skin.json"), "utf-8");//GBK
//反序列化
data = JSON.parse(data); //eval(data)
reverseChildren(data);
const outJsonData = JSON.stringify(data, "", "\t");
var endPath = './src/';
var endFile = `export const SkinJson = ${outJsonData}`
fs.writeFileSync(endPath + "SkinJson.ts", endFile);
/**
*
* @param {*} arr
*/
function reverseChildren(arr) {
arr.children.reverse();
arr.children.forEach(element => { if (element.children && element.children.length) reverseChildren(element) });
}
\ No newline at end of file
...@@ -3,7 +3,7 @@ var PSD = require('psd'); ...@@ -3,7 +3,7 @@ var PSD = require('psd');
var path = require('path'); var path = require('path');
// const mkdirp = require('mkdirp'); // const mkdirp = require('mkdirp');
//千万别再执行,否则覆盖 //千万别再执行,否则覆盖
// return return
var options = { var options = {
//导出图片的目录,没有就导在psd所在目录 //导出图片的目录,没有就导在psd所在目录
outImgDir: "./resource/", outImgDir: "./resource/",
...@@ -50,6 +50,8 @@ files.forEach(async function (psdFileName) { ...@@ -50,6 +50,8 @@ files.forEach(async function (psdFileName) {
} else { } else {
const groupName = rootNode._children[i].name; const groupName = rootNode._children[i].name;
//颠倒一下
// group111._children.reverse()
queueNodes.push(group111._children); queueNodes.push(group111._children);
queueNodesIndex.push(0); queueNodesIndex.push(0);
queueNodesName.push(undefined); queueNodesName.push(undefined);
...@@ -113,6 +115,8 @@ files.forEach(async function (psdFileName) { ...@@ -113,6 +115,8 @@ files.forEach(async function (psdFileName) {
} }
//单纯的组 //单纯的组
else { else {
//颠倒一下
// node._children.reverse()
queueNodes.push(node._children); queueNodes.push(node._children);
queueNodesIndex[queueIndex] = nodesIndex; queueNodesIndex[queueIndex] = nodesIndex;
queueNodesIndex.push(0); queueNodesIndex.push(0);
...@@ -263,6 +267,8 @@ files.forEach(async function (psdFileName) { ...@@ -263,6 +267,8 @@ files.forEach(async function (psdFileName) {
//导出所有的数据 //导出所有的数据
if (options.outJsonDir) { if (options.outJsonDir) {
//倒转一下所有children的层级
const outJsonData = JSON.stringify(rootStructure/*.group*/, "", "\t"); const outJsonData = JSON.stringify(rootStructure/*.group*/, "", "\t");
const outJsonDirPath = path.resolve(options.outJsonDir); const outJsonDirPath = path.resolve(options.outJsonDir);
const outJsonPath = path.join(outJsonDirPath, 'skin.json'); const outJsonPath = path.join(outJsonDirPath, 'skin.json');
...@@ -300,3 +306,8 @@ function saveAsPng(dirName, name, node, format = "png") { ...@@ -300,3 +306,8 @@ function saveAsPng(dirName, name, node, format = "png") {
} }
function reverseChildren(arr) {
arr.reverse();
if (arr.children) reverseChildren(arr.children)
}
export const SkinJson = {
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "UseToolPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "再想想",
"x": 93,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "再想想.png"
},
"id": "consideBtn"
},
{
"name": "确定",
"x": 383,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "确定.png"
},
"id": "sureBtn"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "文案",
"x": 168,
"y": 619,
"alpha": 1,
"type": "text",
"props": {
"text": "确认使用步数道具+10步吗?",
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "msgTxt"
},
{
"name": "使用道具背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "使用道具背景.png"
}
}
]
},
{
"name": "FreePowerPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "开心收下",
"x": 163,
"y": 900,
"alpha": 1,
"type": "button",
"props": {
"tUp": "开心收下.png"
},
"id": "acceptBtn"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "圆圈",
"x": 55,
"y": 267,
"alpha": 1,
"type": "sprite",
"props": {
"source": "圆圈.png"
}
}
]
},
{
"name": "CreditsOutPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "赚取积分",
"x": 163,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "赚取积分.png"
},
"id": "earnBtn"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "积分不足背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "积分不足背景.png"
}
}
]
},
{
"name": "ExchangeSucPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "知道啦",
"x": 163,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "知道啦.png"
},
"id": "knowBtn"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "兑换成功背景",
"x": 55,
"y": 337,
"alpha": 1,
"type": "sprite",
"props": {
"source": "兑换成功背景.png"
}
}
]
},
{
"name": "ToolsOutPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "再想想",
"x": 93,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "再想想.png"
},
"id": "consideBtn"
},
{
"name": "确定",
"x": 383,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "确定.png"
},
"id": "sureBtn"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "文案",
"x": 203,
"y": 650,
"alpha": 1,
"type": "text",
"props": {
"text": "要消耗200积分兑换码?",
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "msgTxt"
},
{
"name": "道具不足背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "道具不足背景.png"
}
}
]
},
{
"name": "TaskPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "关闭按钮",
"x": 671,
"y": 708,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "按钮1",
"x": 526,
"y": 923,
"type": "button",
"props": {
"tUp": "去完成.png",
"tDisable": "去完成灰.png"
},
"id": "taskBtn1"
},
{
"name": "按钮2",
"x": 526,
"y": 1102,
"type": "button",
"props": {
"tUp": "去完成.png",
"tDisable": "去完成灰.png"
},
"id": "taskBtn2"
},
{
"name": "按钮3",
"x": 526,
"y": 1282,
"type": "button",
"props": {
"tUp": "去完成.png",
"tDisable": "去完成灰.png"
},
"id": "taskBtn3"
},
{
"name": "按钮4",
"x": 525,
"y": 1462,
"type": "button",
"props": {
"tUp": "去完成.png",
"tDisable": "去完成灰.png"
},
"id": "taskBtn4"
},
{
"name": "任务背景",
"x": 0,
"y": 579,
"alpha": 1,
"type": "sprite",
"props": {
"source": "任务背景.png"
}
}
]
},
{
"name": "RulePanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "关闭按钮",
"x": 631,
"y": 410,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "规则只要字体颜色和大小,到时删掉",
"x": 96,
"y": 549,
"alpha": 1,
"type": "text",
"props": {
"text": "1、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\n\r2、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\r\r3、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\r\r4、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。",
"size": 26,
"fillColor": "#892a1a",
"textAlpha": 1
}
},
{
"name": "活动规则背景",
"x": 55,
"y": 438,
"alpha": 1,
"type": "sprite",
"props": {
"source": "活动规则背景.png"
}
}
]
},
{
"name": "BuyPowerPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "文案",
"x": 426,
"y": 682,
"alpha": 1,
"type": "text",
"props": {
"text": "+1",
"size": 36,
"fillColor": "#ffffff",
"textAlpha": 1
},
"id": "msgTxt"
},
{
"name": "无字按钮底",
"x": 163,
"y": 805,
"alpha": 1,
"type": "button",
"props": {
"tUp": "无字按钮底.png"
},
"id": "exchangeBtn"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "增加体力背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "增加体力背景.png"
}
}
]
},
{
"name": "NoEnergyPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "体力不足按钮",
"x": 163,
"y": 880,
"alpha": 1,
"type": "button",
"props": {
"tUp": "体力不足按钮.png"
},
"id": "okBtn"
},
{
"name": "体力不足Bg",
"x": 55,
"y": 497,
"alpha": 1,
"type": "sprite",
"props": {
"source": "体力不足Bg.png"
}
}
]
},
{
"name": "StartPanelPrize",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "prize",
"x": 130,
"y": 903,
"alpha": 1,
"type": "sprite",
"props": {
"source": "prize.png"
}
},
{
"name": "开始闯关要能量",
"x": 163,
"y": 1120,
"alpha": 1,
"type": "button",
"props": {
"tUp": "开始闯关要能量.png"
},
"id": "startBtn"
},
{
"name": "动物",
"x": 154,
"y": 692,
"alpha": 1,
"type": "sprite",
"props": {
"source": "动物.png"
}
},
{
"name": "提示文案",
"x": 206,
"y": 849,
"alpha": 1,
"type": "text",
"props": {
"text": "通关参与抽奖,最高可赢得",
"size": 28,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "关卡数",
"x": 312,
"y": 519,
"alpha": 1,
"type": "text",
"props": {
"text": "第 6 关",
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "checkTex"
},
{
"name": "关卡弹窗Bg",
"x": 55,
"y": 266,
"alpha": 1,
"type": "sprite",
"props": {
"source": "关卡弹窗Bg.png"
}
}
]
},
{
"name": "StartPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "动物",
"x": 154,
"y": 693,
"alpha": 1,
"type": "sprite",
"props": {
"source": "动物.png"
}
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "关卡文字",
"x": 312,
"y": 519,
"alpha": 1,
"type": "text",
"props": {
"text": "第 6 关",
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "checkTex"
},
{
"name": "提示文案",
"x": 221,
"y": 847,
"alpha": 1,
"type": "text",
"props": {
"text": "本关满星可获得随机道具",
"size": 28,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "开始闯关不要能量",
"x": 163,
"y": 899,
"alpha": 1,
"type": "button",
"props": {
"tUp": "开始闯关不要能量.png"
},
"id": "startBtn2"
},
{
"name": "开始闯关要能量",
"x": 163,
"y": 899,
"alpha": 1,
"type": "button",
"props": {
"tUp": "开始闯关要能量.png"
},
"id": "startBtn"
},
{
"name": "开始闯关Bg",
"x": 55,
"y": 266,
"alpha": 1,
"type": "sprite",
"props": {
"source": "开始闯关Bg.png"
}
}
]
},
{
"name": "FailedPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "失败重新闯关",
"x": 163,
"y": 957,
"alpha": 1,
"type": "button",
"props": {
"tUp": "失败重新闯关.png"
},
"id": "againBtn"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "提示文案",
"x": 224,
"y": 611,
"alpha": 1,
"type": "text",
"props": {
"text": "再接再厉!\n再闯3关可参与抽奖!",
"size": 36,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "关卡文字",
"x": 300,
"y": 519,
"alpha": 1,
"type": "text",
"props": {
"text": "第 24 关",
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "checkTex"
},
{
"name": "失败Bg",
"x": 55,
"y": 276,
"alpha": 1,
"type": "sprite",
"props": {
"source": "失败Bg.png"
}
}
]
},
{
"name": "NoStepBtn",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "步数耗尽结束按钮",
"x": 93,
"y": 845,
"alpha": 1,
"type": "button",
"props": {
"tUp": "步数耗尽结束按钮.png"
},
"id": "overBtn"
},
{
"name": "步数耗尽复活",
"x": 383,
"y": 845,
"alpha": 1,
"type": "button",
"props": {
"tUp": "步数耗尽复活.png"
},
"id": "liveBtn"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "提示文案",
"x": 163,
"y": 661,
"alpha": 1,
"type": "text",
"props": {
"text": "消耗20积分可复活 ,步数+5\n确认复活吗?",
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "步数耗尽Bg",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "步数耗尽Bg.png"
}
}
]
},
{
"name": "SuccessPrizePanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "star",
"x": 145,
"y": 601,
"alpha": 1,
"type": "sprite",
"props": {
"source": "star.png"
}
},
{
"name": "道具",
"x": 124,
"y": 858,
"type": "container",
"children": [
{
"name": "道具",
"x": 76,
"y": 24,
"alpha": 1,
"type": "sprite",
"props": {
"source": "道具.png"
}
},
{
"name": "步数道具 x1",
"x": 265,
"y": 85,
"alpha": 1,
"type": "text",
"props": {
"text": "步数道具 x1",
"size": 30,
"fillColor": "#df5942",
"textAlpha": 1
}
},
{
"name": "圆角矩形 648",
"x": 0,
"y": 0,
"alpha": 1,
"type": "sprite",
"props": {
"source": "圆角矩形 648.png"
}
}
]
},
{
"name": "红包奖励",
"x": 130,
"y": 870,
"alpha": 1,
"type": "sprite",
"props": {
"source": "红包奖励.png"
}
},
{
"name": "提示文案",
"x": 182,
"y": 810,
"alpha": 1,
"type": "text",
"props": {
"text": "太厉害了!获得抽奖资格!",
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "关卡文字",
"x": 300,
"y": 519,
"alpha": 1,
"type": "text",
"props": {
"text": "第 24 关",
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "checkTex"
},
{
"name": "按钮-继续闯关",
"x": 383,
"y": 1095,
"alpha": 1,
"type": "sprite",
"props": {
"source": "按钮-继续闯关.png"
}
},
{
"name": "继续闯关小",
"x": 93,
"y": 1095,
"alpha": 1,
"type": "button",
"props": {
"tUp": "继续闯关小.png"
},
"id": "againBtn"
},
{
"name": "继续闯关大",
"x": 163,
"y": 1086,
"alpha": 1,
"type": "button",
"props": {
"tUp": "继续闯关大.png"
},
"id": "noPrizeAgainBtn"
},
{
"name": "闯关成功",
"x": 55,
"y": 266,
"alpha": 1,
"type": "sprite",
"props": {
"source": "闯关成功.png"
}
}
]
},
{
"name": "SuccessNoPrizePanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "star",
"x": 145,
"y": 601,
"alpha": 1,
"type": "sprite",
"props": {
"source": "star.png"
}
},
{
"name": "提示文案",
"x": 210,
"y": 797,
"alpha": 1,
"type": "text",
"props": {
"text": "太厉害了!\n再闯6关就即可抽奖!",
"size": 36,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "关卡文字",
"x": 300,
"y": 519,
"alpha": 1,
"type": "text",
"props": {
"text": "第 24 关",
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "checkTex"
},
{
"name": "闯关成功不满星按钮",
"x": 91,
"y": 955,
"alpha": 1,
"type": "button",
"props": {
"tUp": "闯关成功不满星按钮.png"
},
"id": "againBtn"
},
{
"name": "继续闯关小",
"x": 381,
"y": 955,
"alpha": 1,
"type": "button",
"props": {
"tUp": "继续闯关小.png"
},
"id": "continueBtn"
},
{
"name": "继续闯关大",
"x": 163,
"y": 935,
"alpha": 1,
"type": "button",
"props": {
"tUp": "继续闯关大.png"
},
"id": "totalContinueBtn"
},
{
"name": "闯关成功Bg",
"x": 55,
"y": 266,
"alpha": 1,
"type": "sprite",
"props": {
"source": "闯关成功Bg.png"
}
}
]
}
]
}
\ No newline at end of file
...@@ -4,126 +4,91 @@ export const SkinJson = { ...@@ -4,126 +4,91 @@ export const SkinJson = {
"type": "container", "type": "container",
"children": [ "children": [
{ {
"name": "UseToolPanel", "name": "SuccessNoPrizePanel",
"x": 0, "x": 0,
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{ {
"name": "再想想", "name": "闯关成功Bg",
"x": 93, "x": 55,
"y": 745, "y": 266,
"alpha": 1, "alpha": 1,
"type": "button", "type": "sprite",
"props": { "props": {
"tUp": "再想想.png" "source": "闯关成功Bg.png"
}, }
"id": "consideBtn"
}, },
{ {
"name": "确定", "name": "继续闯关大",
"x": 383, "x": 163,
"y": 745, "y": 935,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "确定.png" "tUp": "继续闯关大.png"
}, },
"id": "sureBtn" "id": "totalContinueBtn"
}, },
{ {
"name": "关闭按钮", "name": "继续闯关小",
"x": 631, "x": 381,
"y": 470, "y": 955,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "关闭按钮.png" "tUp": "继续闯关小.png"
}, },
"id": "closeBtn" "id": "continueBtn"
}, },
{ {
"name": "文案", "name": "闯关成功不满星按钮",
"x": 168, "x": 91,
"y": 619, "y": 955,
"alpha": 1, "alpha": 1,
"type": "text", "type": "button",
"props": { "props": {
"text": "确认使用步数道具+10步吗?", "tUp": "闯关成功不满星按钮.png"
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "msgTxt" "id": "againBtn"
}, },
{ {
"name": "使用道具背景", "name": "关卡文字",
"x": 55, "x": 300,
"y": 498, "y": 519,
"alpha": 1,
"type": "sprite",
"props": {
"source": "使用道具背景.png"
}
}
]
},
{
"name": "FreePowerPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "开心收下",
"x": 163,
"y": 900,
"alpha": 1, "alpha": 1,
"type": "button", "type": "text",
"props": { "props": {
"tUp": "开心收下.png" "text": "第 24 关",
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "acceptBtn" "id": "checkTex"
}, },
{ {
"name": "关闭按钮", "name": "提示文案",
"x": 631, "x": 210,
"y": 470, "y": 797,
"alpha": 1, "alpha": 1,
"type": "button", "type": "text",
"props": { "props": {
"tUp": "关闭按钮.png" "text": "太厉害了!\n再闯6关就即可抽奖!",
"size": 36,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "closeBtn" "id": "tipsTex"
}, },
{ {
"name": "圆圈", "name": "star",
"x": 55, "x": 145,
"y": 267, "y": 601,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "圆圈.png" "source": "star.png"
} }
}
]
},
{
"name": "CreditsOutPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "赚取积分",
"x": 163,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "赚取积分.png"
},
"id": "earnBtn"
}, },
{ {
"name": "关闭按钮", "name": "关闭按钮",
...@@ -135,269 +100,188 @@ export const SkinJson = { ...@@ -135,269 +100,188 @@ export const SkinJson = {
"tUp": "关闭按钮.png" "tUp": "关闭按钮.png"
}, },
"id": "closeBtn" "id": "closeBtn"
},
{
"name": "积分不足背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "积分不足背景.png"
}
} }
] ]
}, },
{ {
"name": "ExchangeSucPanel", "name": "SuccessPrizePanel",
"x": 0, "x": 0,
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{ {
"name": "知道啦", "name": "闯关成功",
"x": 163, "x": 55,
"y": 745, "y": 266,
"alpha": 1, "alpha": 1,
"type": "button", "type": "sprite",
"props": { "props": {
"tUp": "知道啦.png" "source": "闯关成功.png"
}, }
"id": "knowBtn"
}, },
{ {
"name": "关闭按钮", "name": "继续闯关大",
"x": 631, "x": 163,
"y": 470, "y": 1086,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "关闭按钮.png" "tUp": "继续闯关大.png"
}, },
"id": "closeBtn" "id": "noPrizeAgainBtn"
}, },
{ {
"name": "兑换成功背景", "name": "继续闯关小",
"x": 55,
"y": 337,
"alpha": 1,
"type": "sprite",
"props": {
"source": "兑换成功背景.png"
}
}
]
},
{
"name": "ToolsOutPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "再想想",
"x": 93, "x": 93,
"y": 745, "y": 1095,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "再想想.png" "tUp": "继续闯关小.png"
}, },
"id": "consideBtn" "id": "againBtn"
}, },
{ {
"name": "确定", "name": "按钮-继续闯关",
"x": 383, "x": 383,
"y": 745, "y": 1095,
"alpha": 1, "alpha": 1,
"type": "button", "type": "sprite",
"props": { "props": {
"tUp": "确定.png" "source": "按钮-继续闯关.png"
}, }
"id": "sureBtn"
}, },
{ {
"name": "关闭按钮", "name": "关卡文字",
"x": 631, "x": 300,
"y": 470, "y": 519,
"alpha": 1, "alpha": 1,
"type": "button", "type": "text",
"props": { "props": {
"tUp": "关闭按钮.png" "text": "第 24 关",
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "closeBtn" "id": "checkTex"
}, },
{ {
"name": "文案", "name": "提示文案",
"x": 203, "x": 182,
"y": 650, "y": 810,
"alpha": 1, "alpha": 1,
"type": "text", "type": "text",
"props": { "props": {
"text": "要消耗200积分兑换码?", "text": "太厉害了!获得抽奖资格!",
"size": 34, "size": 34,
"fillColor": "#df5942", "fillColor": "#df5942",
"textAlpha": 1 "textAlpha": 1
}, },
"id": "msgTxt" "id": "tipsTex"
}, },
{ {
"name": "道具不足背景", "name": "红包奖励",
"x": 55, "x": 130,
"y": 498, "y": 870,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "道具不足背景.png" "source": "红包奖励.png"
} }
}
]
},
{
"name": "TaskPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "关闭按钮",
"x": 671,
"y": 708,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
}, },
{ {
"name": "按钮1", "name": "道具",
"x": 526, "x": 124,
"y": 923, "y": 858,
"type": "button", "type": "container",
"props": { "children": [
"tUp": "去完成.png", {
"tDisable": "去完成灰.png" "name": "圆角矩形 648",
}, "x": 0,
"id": "taskBtn1" "y": 0,
}, "alpha": 1,
{ "type": "sprite",
"name": "按钮2", "props": {
"x": 526, "source": "圆角矩形 648.png"
"y": 1102, }
"type": "button", },
"props": { {
"tUp": "去完成.png", "name": "步数道具 x1",
"tDisable": "去完成灰.png" "x": 265,
}, "y": 85,
"id": "taskBtn2" "alpha": 1,
}, "type": "text",
{ "props": {
"name": "按钮3", "text": "步数道具 x1",
"x": 526, "size": 30,
"y": 1282, "fillColor": "#df5942",
"type": "button", "textAlpha": 1
"props": { }
"tUp": "去完成.png", },
"tDisable": "去完成灰.png" {
}, "name": "道具",
"id": "taskBtn3" "x": 76,
}, "y": 24,
{ "alpha": 1,
"name": "按钮4", "type": "sprite",
"x": 525, "props": {
"y": 1462, "source": "道具.png"
"type": "button", }
"props": { }
"tUp": "去完成.png", ]
"tDisable": "去完成灰.png"
},
"id": "taskBtn4"
}, },
{ {
"name": "任务背景", "name": "star",
"x": 0, "x": 145,
"y": 579, "y": 601,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "任务背景.png" "source": "star.png"
} }
} },
]
},
{
"name": "RulePanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 631,
"y": 410, "y": 470,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "关闭按钮.png" "tUp": "关闭按钮.png"
}, },
"id": "closeBtn" "id": "closeBtn"
},
{
"name": "规则只要字体颜色和大小,到时删掉",
"x": 96,
"y": 549,
"alpha": 1,
"type": "text",
"props": {
"text": "1、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\n\r2、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\r\r3、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\r\r4、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。",
"size": 26,
"fillColor": "#892a1a",
"textAlpha": 1
}
},
{
"name": "活动规则背景",
"x": 55,
"y": 438,
"alpha": 1,
"type": "sprite",
"props": {
"source": "活动规则背景.png"
}
} }
] ]
}, },
{ {
"name": "BuyPowerPanel", "name": "NoStepBtn",
"x": 0, "x": 0,
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{ {
"name": "文案", "name": "步数耗尽Bg",
"x": 426, "x": 55,
"y": 682, "y": 498,
"alpha": 1, "alpha": 1,
"type": "text", "type": "sprite",
"props": { "props": {
"text": "+1", "source": "步数耗尽Bg.png"
"size": 36, }
"fillColor": "#ffffff",
"textAlpha": 1
},
"id": "msgTxt"
}, },
{ {
"name": "无字按钮底", "name": "提示文案",
"x": 163, "x": 163,
"y": 805, "y": 661,
"alpha": 1, "alpha": 1,
"type": "button", "type": "text",
"props": { "props": {
"tUp": "无字按钮底.png" "text": "消耗20积分可复活 ,步数+5\n确认复活吗?",
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "exchangeBtn" "id": "tipsTex"
}, },
{ {
"name": "关闭按钮", "name": "关闭按钮",
...@@ -411,23 +295,73 @@ export const SkinJson = { ...@@ -411,23 +295,73 @@ export const SkinJson = {
"id": "closeBtn" "id": "closeBtn"
}, },
{ {
"name": "增加体力背景", "name": "步数耗尽复活",
"x": 55, "x": 383,
"y": 498, "y": 845,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "button",
"props": { "props": {
"source": "增加体力背景.png" "tUp": "步数耗尽复活.png"
} },
"id": "liveBtn"
},
{
"name": "步数耗尽结束按钮",
"x": 93,
"y": 845,
"alpha": 1,
"type": "button",
"props": {
"tUp": "步数耗尽结束按钮.png"
},
"id": "overBtn"
} }
] ]
}, },
{ {
"name": "NoEnergyPanel", "name": "FailedPanel",
"x": 0, "x": 0,
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{
"name": "失败Bg",
"x": 55,
"y": 276,
"alpha": 1,
"type": "sprite",
"props": {
"source": "失败Bg.png"
}
},
{
"name": "关卡文字",
"x": 300,
"y": 519,
"alpha": 1,
"type": "text",
"props": {
"text": "第 24 关",
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "checkTex"
},
{
"name": "提示文案",
"x": 224,
"y": 611,
"alpha": 1,
"type": "text",
"props": {
"text": "再接再厉!\n再闯3关可参与抽奖!",
"size": 36,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 631,
...@@ -440,59 +374,38 @@ export const SkinJson = { ...@@ -440,59 +374,38 @@ export const SkinJson = {
"id": "closeBtn" "id": "closeBtn"
}, },
{ {
"name": "体力不足按钮", "name": "失败重新闯关",
"x": 163, "x": 163,
"y": 880, "y": 957,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "体力不足按钮.png" "tUp": "失败重新闯关.png"
}, },
"id": "okBtn" "id": "againBtn"
},
{
"name": "体力不足Bg",
"x": 55,
"y": 497,
"alpha": 1,
"type": "sprite",
"props": {
"source": "体力不足Bg.png"
}
} }
] ]
}, },
{ {
"name": "StartPanelPrize", "name": "StartPanel",
"x": 0, "x": 0,
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{ {
"name": "关闭按钮", "name": "开始闯关Bg",
"x": 631, "x": 55,
"y": 470, "y": 266,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "prize",
"x": 130,
"y": 903,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "prize.png" "source": "开始闯关Bg.png"
} }
}, },
{ {
"name": "开始闯关要能量", "name": "开始闯关要能量",
"x": 163, "x": 163,
"y": 1120, "y": 899,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -501,23 +414,24 @@ export const SkinJson = { ...@@ -501,23 +414,24 @@ export const SkinJson = {
"id": "startBtn" "id": "startBtn"
}, },
{ {
"name": "动物", "name": "开始闯关不要能量",
"x": 154, "x": 163,
"y": 692, "y": 899,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "button",
"props": { "props": {
"source": "动物.png" "tUp": "开始闯关不要能量.png"
} },
"id": "startBtn2"
}, },
{ {
"name": "提示文案", "name": "提示文案",
"x": 206, "x": 221,
"y": 849, "y": 847,
"alpha": 1, "alpha": 1,
"type": "text", "type": "text",
"props": { "props": {
"text": "通关参与抽奖,最高可赢得", "text": "本关满星可获得随机道具",
"size": 28, "size": 28,
"fillColor": "#df5942", "fillColor": "#df5942",
"textAlpha": 1 "textAlpha": 1
...@@ -525,7 +439,7 @@ export const SkinJson = { ...@@ -525,7 +439,7 @@ export const SkinJson = {
"id": "tipsTex" "id": "tipsTex"
}, },
{ {
"name": "关卡", "name": "关卡文字",
"x": 312, "x": 312,
"y": 519, "y": 519,
"alpha": 1, "alpha": 1,
...@@ -539,46 +453,46 @@ export const SkinJson = { ...@@ -539,46 +453,46 @@ export const SkinJson = {
"id": "checkTex" "id": "checkTex"
}, },
{ {
"name": "关卡弹窗Bg", "name": "关闭按钮",
"x": 55, "x": 631,
"y": 266, "y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "动物",
"x": 154,
"y": 693,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "关卡弹窗Bg.png" "source": "动物.png"
} }
} }
] ]
}, },
{ {
"name": "StartPanel", "name": "StartPanelPrize",
"x": 0, "x": 0,
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{ {
"name": "动物", "name": "关卡弹窗Bg",
"x": 154, "x": 55,
"y": 693, "y": 266,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "动物.png" "source": "关卡弹窗Bg.png"
} }
}, },
{ {
"name": "关闭按钮", "name": "关卡数",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "关卡文字",
"x": 312, "x": 312,
"y": 519, "y": 519,
"alpha": 1, "alpha": 1,
...@@ -593,12 +507,12 @@ export const SkinJson = { ...@@ -593,12 +507,12 @@ export const SkinJson = {
}, },
{ {
"name": "提示文案", "name": "提示文案",
"x": 221, "x": 206,
"y": 847, "y": 849,
"alpha": 1, "alpha": 1,
"type": "text", "type": "text",
"props": { "props": {
"text": "本关满星可获得随机道具", "text": "通关参与抽奖,最高可赢得",
"size": 28, "size": 28,
"fillColor": "#df5942", "fillColor": "#df5942",
"textAlpha": 1 "textAlpha": 1
...@@ -606,20 +520,19 @@ export const SkinJson = { ...@@ -606,20 +520,19 @@ export const SkinJson = {
"id": "tipsTex" "id": "tipsTex"
}, },
{ {
"name": "开始闯关不要能量", "name": "动物",
"x": 163, "x": 154,
"y": 899, "y": 692,
"alpha": 1, "alpha": 1,
"type": "button", "type": "sprite",
"props": { "props": {
"tUp": "开始闯关不要能量.png" "source": "动物.png"
}, }
"id": "startBtn2"
}, },
{ {
"name": "开始闯关要能量", "name": "开始闯关要能量",
"x": 163, "x": 163,
"y": 899, "y": 1120,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -628,33 +541,54 @@ export const SkinJson = { ...@@ -628,33 +541,54 @@ export const SkinJson = {
"id": "startBtn" "id": "startBtn"
}, },
{ {
"name": "开始闯关Bg", "name": "prize",
"x": 55, "x": 130,
"y": 266, "y": 903,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "开始闯关Bg.png" "source": "prize.png"
} }
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
} }
] ]
}, },
{ {
"name": "FailedPanel", "name": "NoEnergyPanel",
"x": 0, "x": 0,
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{ {
"name": "失败重新闯关", "name": "体力不足Bg",
"x": 55,
"y": 497,
"alpha": 1,
"type": "sprite",
"props": {
"source": "体力不足Bg.png"
}
},
{
"name": "体力不足按钮",
"x": 163, "x": 163,
"y": 957, "y": 880,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "失败重新闯关.png" "tUp": "体力不足按钮.png"
}, },
"id": "againBtn" "id": "okBtn"
}, },
{ {
"name": "关闭按钮", "name": "关闭按钮",
...@@ -666,268 +600,299 @@ export const SkinJson = { ...@@ -666,268 +600,299 @@ export const SkinJson = {
"tUp": "关闭按钮.png" "tUp": "关闭按钮.png"
}, },
"id": "closeBtn" "id": "closeBtn"
}
]
},
{
"name": "BuyPowerPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "增加体力背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "增加体力背景.png"
}
}, },
{ {
"name": "提示文案", "name": "关闭按钮",
"x": 224, "x": 631,
"y": 611, "y": 470,
"alpha": 1, "alpha": 1,
"type": "text", "type": "button",
"props": { "props": {
"text": "再接再厉!\n再闯3关可参与抽奖!", "tUp": "关闭按钮.png"
"size": 36,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "tipsTex" "id": "closeBtn"
}, },
{ {
"name": "关卡文字", "name": "无字按钮底",
"x": 300, "x": 163,
"y": 519, "y": 805,
"alpha": 1, "alpha": 1,
"type": "text", "type": "button",
"props": { "props": {
"text": "第 24 关", "tUp": "无字按钮底.png"
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "checkTex" "id": "exchangeBtn"
}, },
{ {
"name": "失败Bg", "name": "文案",
"x": 55, "x": 426,
"y": 276, "y": 682,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "text",
"props": { "props": {
"source": "失败Bg.png" "text": "+1",
} "size": 36,
"fillColor": "#ffffff",
"textAlpha": 1
},
"id": "msgTxt"
} }
] ]
}, },
{ {
"name": "NoStepBtn", "name": "RulePanel",
"x": 0, "x": 0,
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{ {
"name": "步数耗尽结束按钮", "name": "活动规则背景",
"x": 93, "x": 55,
"y": 845, "y": 438,
"alpha": 1, "alpha": 1,
"type": "button", "type": "sprite",
"props": { "props": {
"tUp": "步数耗尽结束按钮.png" "source": "活动规则背景.png"
}, }
"id": "overBtn"
}, },
{ {
"name": "步数耗尽复活", "name": "规则只要字体颜色和大小,到时删掉",
"x": 383, "x": 96,
"y": 845, "y": 549,
"alpha": 1, "alpha": 1,
"type": "button", "type": "text",
"props": { "props": {
"tUp": "步数耗尽复活.png" "text": "1、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\n\r2、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\r\r3、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\r\r4、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。",
}, "size": 26,
"id": "liveBtn" "fillColor": "#892a1a",
"textAlpha": 1
}
}, },
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 631,
"y": 470, "y": 410,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "关闭按钮.png" "tUp": "关闭按钮.png"
}, },
"id": "closeBtn" "id": "closeBtn"
},
{
"name": "提示文案",
"x": 163,
"y": 661,
"alpha": 1,
"type": "text",
"props": {
"text": "消耗20积分可复活 ,步数+5\n确认复活吗?",
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "步数耗尽Bg",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "步数耗尽Bg.png"
}
} }
] ]
}, },
{ {
"name": "SuccessPrizePanel", "name": "TaskPanel",
"x": 0, "x": 0,
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{ {
"name": "关闭按钮", "name": "任务背景",
"x": 631, "x": 0,
"y": 470, "y": 579,
"alpha": 1, "alpha": 1,
"type": "sprite",
"props": {
"source": "任务背景.png"
}
},
{
"name": "按钮4",
"x": 525,
"y": 1462,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "关闭按钮.png" "tUp": "去完成.png",
"tDisable": "去完成灰.png"
}, },
"id": "closeBtn" "id": "taskBtn4"
}, },
{ {
"name": "star", "name": "按钮3",
"x": 145, "x": 526,
"y": 601, "y": 1282,
"alpha": 1, "type": "button",
"type": "sprite",
"props": { "props": {
"source": "star.png" "tUp": "去完成.png",
} "tDisable": "去完成灰.png"
},
"id": "taskBtn3"
}, },
{ {
"name": "道具", "name": "按钮2",
"x": 124, "x": 526,
"y": 858, "y": 1102,
"type": "container", "type": "button",
"children": [ "props": {
{ "tUp": "去完成.png",
"name": "道具", "tDisable": "去完成灰.png"
"x": 76, },
"y": 24, "id": "taskBtn2"
"alpha": 1, },
"type": "sprite", {
"props": { "name": "按钮1",
"source": "道具.png" "x": 526,
} "y": 923,
}, "type": "button",
{ "props": {
"name": "步数道具 x1", "tUp": "去完成.png",
"x": 265, "tDisable": "去完成灰.png"
"y": 85, },
"alpha": 1, "id": "taskBtn1"
"type": "text",
"props": {
"text": "步数道具 x1",
"size": 30,
"fillColor": "#df5942",
"textAlpha": 1
}
},
{
"name": "圆角矩形 648",
"x": 0,
"y": 0,
"alpha": 1,
"type": "sprite",
"props": {
"source": "圆角矩形 648.png"
}
}
]
}, },
{ {
"name": "红包奖励", "name": "关闭按钮",
"x": 130, "x": 671,
"y": 870, "y": 708,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
}
]
},
{
"name": "ToolsOutPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "道具不足背景",
"x": 55,
"y": 498,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "红包奖励.png" "source": "道具不足背景.png"
} }
}, },
{ {
"name": "提示文案", "name": "文案",
"x": 182, "x": 203,
"y": 810, "y": 650,
"alpha": 1, "alpha": 1,
"type": "text", "type": "text",
"props": { "props": {
"text": "太厉害了!获得抽奖资格!", "text": "要消耗200积分兑换码?",
"size": 34, "size": 34,
"fillColor": "#df5942", "fillColor": "#df5942",
"textAlpha": 1 "textAlpha": 1
}, },
"id": "tipsTex" "id": "msgTxt"
}, },
{ {
"name": "关卡文字", "name": "关闭按钮",
"x": 300, "x": 631,
"y": 519, "y": 470,
"alpha": 1, "alpha": 1,
"type": "text", "type": "button",
"props": { "props": {
"text": "第 24 关", "tUp": "关闭按钮.png"
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "checkTex" "id": "closeBtn"
}, },
{ {
"name": "按钮-继续闯关", "name": "确定",
"x": 383, "x": 383,
"y": 1095, "y": 745,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "button",
"props": { "props": {
"source": "按钮-继续闯关.png" "tUp": "确定.png"
} },
"id": "sureBtn"
}, },
{ {
"name": "继续闯关小", "name": "再想想",
"x": 93, "x": 93,
"y": 1095, "y": 745,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "继续闯关小.png" "tUp": "再想想.png"
}, },
"id": "againBtn" "id": "consideBtn"
}
]
},
{
"name": "ExchangeSucPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "兑换成功背景",
"x": 55,
"y": 337,
"alpha": 1,
"type": "sprite",
"props": {
"source": "兑换成功背景.png"
}
}, },
{ {
"name": "继续闯关大", "name": "关闭按钮",
"x": 163, "x": 631,
"y": 1086, "y": 470,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "继续闯关大.png" "tUp": "关闭按钮.png"
}, },
"id": "noPrizeAgainBtn" "id": "closeBtn"
}, },
{ {
"name": "闯关成功", "name": "知道啦",
"x": 55, "x": 163,
"y": 266, "y": 745,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "button",
"props": { "props": {
"source": "闯关成功.png" "tUp": "知道啦.png"
} },
"id": "knowBtn"
} }
] ]
}, },
{ {
"name": "SuccessNoPrizePanel", "name": "CreditsOutPanel",
"x": 0, "x": 0,
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{
"name": "积分不足背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "积分不足背景.png"
}
},
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 631,
...@@ -940,85 +905,120 @@ export const SkinJson = { ...@@ -940,85 +905,120 @@ export const SkinJson = {
"id": "closeBtn" "id": "closeBtn"
}, },
{ {
"name": "star", "name": "赚取积分",
"x": 145, "x": 163,
"y": 601, "y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "赚取积分.png"
},
"id": "earnBtn"
}
]
},
{
"name": "FreePowerPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "圆圈",
"x": 55,
"y": 267,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "star.png" "source": "圆圈.png"
} }
}, },
{ {
"name": "提示文案", "name": "关闭按钮",
"x": 210, "x": 631,
"y": 797, "y": 470,
"alpha": 1, "alpha": 1,
"type": "text", "type": "button",
"props": { "props": {
"text": "太厉害了!\n再闯6关就即可抽奖!", "tUp": "关闭按钮.png"
"size": 36,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "tipsTex" "id": "closeBtn"
}, },
{ {
"name": "关卡文字", "name": "开心收下",
"x": 300, "x": 163,
"y": 519, "y": 900,
"alpha": 1, "alpha": 1,
"type": "text", "type": "button",
"props": { "props": {
"text": "第 24 关", "tUp": "开心收下.png"
"size": 24.78875,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "checkTex" "id": "acceptBtn"
}
]
},
{
"name": "UseToolPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "使用道具背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "使用道具背景.png"
}
}, },
{ {
"name": "闯关成功不满星按钮", "name": "文案",
"x": 91, "x": 168,
"y": 955, "y": 619,
"alpha": 1, "alpha": 1,
"type": "button", "type": "text",
"props": { "props": {
"tUp": "闯关成功不满星按钮.png" "text": "确认使用步数道具+10步吗?",
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
}, },
"id": "againBtn" "id": "msgTxt"
}, },
{ {
"name": "继续闯关小", "name": "关闭按钮",
"x": 381, "x": 631,
"y": 955, "y": 470,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "继续闯关小.png" "tUp": "关闭按钮.png"
}, },
"id": "continueBtn" "id": "closeBtn"
}, },
{ {
"name": "继续闯关大", "name": "确定",
"x": 163, "x": 383,
"y": 935, "y": 745,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "继续闯关大.png" "tUp": "确定.png"
}, },
"id": "totalContinueBtn" "id": "sureBtn"
}, },
{ {
"name": "闯关成功Bg", "name": "再想想",
"x": 55, "x": 93,
"y": 266, "y": 745,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "button",
"props": { "props": {
"source": "闯关成功Bg.png" "tUp": "再想想.png"
} },
"id": "consideBtn"
} }
] ]
} }
......
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