After Width: | Height: | Size: 3.1 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "0d3130d7-2a04-4b32-8590-401c71c4536c", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 93, |
||||
"height": 92, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"关闭 - 副本": { |
||||
"ver": "1.0.6", |
||||
"uuid": "ccbd1f10-5a46-4cb9-921b-84fde668df6e", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "0d3130d7-2a04-4b32-8590-401c71c4536c", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 93, |
||||
"height": 92, |
||||
"rawWidth": 93, |
||||
"rawHeight": 92, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.8 KiB |
@ -0,0 +1,13 @@ |
||||
{ |
||||
"ver": "1.1.3", |
||||
"uuid": "31a94aeb-077f-4ea7-9f6e-69ed86200df9", |
||||
"importer": "folder", |
||||
"isBundle": false, |
||||
"bundleName": "", |
||||
"priority": 1, |
||||
"compressionType": {}, |
||||
"optimizeHotUpdate": {}, |
||||
"inlineSpriteFrames": {}, |
||||
"isRemoteBundle": {}, |
||||
"subMetas": {} |
||||
} |
@ -0,0 +1,13 @@ |
||||
{ |
||||
"ver": "1.1.3", |
||||
"uuid": "ed0c0c18-b895-45c6-801f-8aa7e0a45423", |
||||
"importer": "folder", |
||||
"isBundle": false, |
||||
"bundleName": "", |
||||
"priority": 1, |
||||
"compressionType": {}, |
||||
"optimizeHotUpdate": {}, |
||||
"inlineSpriteFrames": {}, |
||||
"isRemoteBundle": {}, |
||||
"subMetas": {} |
||||
} |
@ -0,0 +1,9 @@ |
||||
{ |
||||
"ver": "1.3.2", |
||||
"uuid": "f8a5a0d0-7aca-4717-9446-1a87742b09fd", |
||||
"importer": "prefab", |
||||
"optimizationPolicy": "AUTO", |
||||
"asyncLoadAssets": false, |
||||
"readonly": false, |
||||
"subMetas": {} |
||||
} |
@ -0,0 +1,13 @@ |
||||
{ |
||||
"ver": "1.1.3", |
||||
"uuid": "d2115c43-495a-4c59-afd5-be17927668f4", |
||||
"importer": "folder", |
||||
"isBundle": false, |
||||
"bundleName": "", |
||||
"priority": 1, |
||||
"compressionType": {}, |
||||
"optimizeHotUpdate": {}, |
||||
"inlineSpriteFrames": {}, |
||||
"isRemoteBundle": {}, |
||||
"subMetas": {} |
||||
} |
@ -0,0 +1,8 @@ |
||||
{ |
||||
"ver": "2.0.3", |
||||
"uuid": "bb18091e-81f4-4ec9-97af-f5cf5179079c", |
||||
"importer": "audio-clip", |
||||
"downloadMode": 0, |
||||
"duration": 1.656, |
||||
"subMetas": {} |
||||
} |
@ -0,0 +1,8 @@ |
||||
{ |
||||
"ver": "2.0.3", |
||||
"uuid": "bbdfff67-a364-4614-9ff1-71171b4fdf9d", |
||||
"importer": "audio-clip", |
||||
"downloadMode": 0, |
||||
"duration": 8.892, |
||||
"subMetas": {} |
||||
} |
@ -0,0 +1,13 @@ |
||||
{ |
||||
"ver": "1.1.3", |
||||
"uuid": "52bbfbd1-1990-4955-bba1-cf83d005ddc7", |
||||
"importer": "folder", |
||||
"isBundle": false, |
||||
"bundleName": "", |
||||
"priority": 1, |
||||
"compressionType": {}, |
||||
"optimizeHotUpdate": {}, |
||||
"inlineSpriteFrames": {}, |
||||
"isRemoteBundle": {}, |
||||
"subMetas": {} |
||||
} |
After Width: | Height: | Size: 4.6 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "9d87f25d-b835-4e3a-924a-456897147a09", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 239, |
||||
"height": 55, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"剧情事件": { |
||||
"ver": "1.0.6", |
||||
"uuid": "d20a21cf-6d6e-46a3-a2aa-f3fb7ae84933", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "9d87f25d-b835-4e3a-924a-456897147a09", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 239, |
||||
"height": 55, |
||||
"rawWidth": 239, |
||||
"rawHeight": 55, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 4.1 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "f9a0d641-f54b-4557-9b15-6e8867a24ce1", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 190, |
||||
"height": 55, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"剧情完成": { |
||||
"ver": "1.0.6", |
||||
"uuid": "02f90d5b-7d86-405e-a092-7a35eb19303f", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "f9a0d641-f54b-4557-9b15-6e8867a24ce1", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 190, |
||||
"height": 55, |
||||
"rawWidth": 190, |
||||
"rawHeight": 55, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 14 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "9e317701-4825-4800-928a-d893a8eb70ec", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 474, |
||||
"height": 255, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"胜利底框": { |
||||
"ver": "1.0.6", |
||||
"uuid": "0541b751-66e3-4c9b-9f08-b68dcf7f0dfe", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "9e317701-4825-4800-928a-d893a8eb70ec", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 474, |
||||
"height": 255, |
||||
"rawWidth": 474, |
||||
"rawHeight": 255, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 12 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "631791fc-341b-4c93-826b-230ae9965e95", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 171, |
||||
"height": 247, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"员工已解锁": { |
||||
"ver": "1.0.6", |
||||
"uuid": "40097b67-c679-419c-8dc1-456d89fdb655", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "631791fc-341b-4c93-826b-230ae9965e95", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 171, |
||||
"height": 247, |
||||
"rawWidth": 171, |
||||
"rawHeight": 247, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 12 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "c1480349-7966-44e1-afd7-6e2ec2397e5c", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 170, |
||||
"height": 247, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"员工未解锁": { |
||||
"ver": "1.0.6", |
||||
"uuid": "3f4dc24b-a89a-4fc2-a738-9c6ea59568d7", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "c1480349-7966-44e1-afd7-6e2ec2397e5c", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 170, |
||||
"height": 247, |
||||
"rawWidth": 170, |
||||
"rawHeight": 247, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 3.3 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "33f12ab3-fdd7-42ef-bd7e-5fb7e639d149", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 157, |
||||
"height": 66, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"按钮工作中": { |
||||
"ver": "1.0.6", |
||||
"uuid": "a34c27b1-c1c0-4162-9969-7fe8b0c36d12", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "33f12ab3-fdd7-42ef-bd7e-5fb7e639d149", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 157, |
||||
"height": 66, |
||||
"rawWidth": 157, |
||||
"rawHeight": 66, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 3.2 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "d4b4622c-37c4-4a13-8512-d5708dcb2b2d", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 157, |
||||
"height": 66, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"按钮招聘": { |
||||
"ver": "1.0.6", |
||||
"uuid": "162bd7dd-3c80-4856-ac6f-e7c9ff3ae776", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "d4b4622c-37c4-4a13-8512-d5708dcb2b2d", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 157, |
||||
"height": 66, |
||||
"rawWidth": 157, |
||||
"rawHeight": 66, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 3.2 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "eb28f5de-4f9c-456c-819d-efa41b4158ce", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 157, |
||||
"height": 66, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"按钮未解锁": { |
||||
"ver": "1.0.6", |
||||
"uuid": "303ff445-8f71-4ea3-a7b6-65b0c01b8436", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "eb28f5de-4f9c-456c-819d-efa41b4158ce", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 157, |
||||
"height": 66, |
||||
"rawWidth": 157, |
||||
"rawHeight": 66, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 9.7 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "133128a3-1a26-498f-9b3d-b551718b5379", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 167, |
||||
"height": 152, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"美女影子": { |
||||
"ver": "1.0.6", |
||||
"uuid": "805e124d-585e-472a-b17e-e3abd15be41a", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "133128a3-1a26-498f-9b3d-b551718b5379", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 167, |
||||
"height": 152, |
||||
"rawWidth": 167, |
||||
"rawHeight": 152, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 682 B |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "a5eaeafd-2929-4b8a-aac5-90f4cfd7a4cb", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 53, |
||||
"height": 25, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"???": { |
||||
"ver": "1.0.6", |
||||
"uuid": "691c9945-162a-4239-bfc6-049f3ff133f1", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "a5eaeafd-2929-4b8a-aac5-90f4cfd7a4cb", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 53, |
||||
"height": 25, |
||||
"rawWidth": 53, |
||||
"rawHeight": 25, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,294 @@ |
||||
|
||||
import AppPlatform from "../../FrameWork/Util/AppPlatform"; |
||||
import Common5 from "../../Platform/th/Common5"; |
||||
|
||||
|
||||
let AllConfig = [ |
||||
|
||||
{idTag:1,successStr:'给女儿治疗脸部完成',successBtnStr:'确认', |
||||
failStr:'',failADBtnStr:'',failContinueBtnStr:''}, |
||||
|
||||
{idTag:2,selectContentStr:'眼光太差投资人很不高兴,哄不好了',selectLeftBtnStr:'重新试穿',selectRightBtnStr:'最美衣服'}, |
||||
|
||||
{idTag:3,successStr:'投资人心情不错,再接再厉',successBtnStr:'确认', |
||||
failStr:'',failADBtnStr:'',failContinueBtnStr:''}, |
||||
|
||||
{idTag:4,successStr:'钱已赚够可前往卖货郎买药',successBtnStr:'确认', |
||||
failStr:'',failADBtnStr:'',failContinueBtnStr:''}, |
||||
|
||||
{idTag:5,successStr:'老婆夏芸发来微信消息!',successBtnStr:'查看', |
||||
failStr:'',failADBtnStr:'',failContinueBtnStr:''}, |
||||
] |
||||
|
||||
// export interface TaskResultInfo{
|
||||
// id:number,
|
||||
// isSuccess?:boolean,
|
||||
// isNeedSelectView:boolean,
|
||||
// selectLeftFunc:any,
|
||||
// selectRightFunc:
|
||||
// }
|
||||
const {ccclass, property} = cc._decorator; |
||||
|
||||
@ccclass |
||||
export default class TaskResult extends cc.Component { |
||||
@property(cc.Node) |
||||
selelctNode: cc.Node = null; |
||||
|
||||
@property(cc.Node) |
||||
selelctNode2: cc.Node = null; |
||||
|
||||
// @property(cc.Node)
|
||||
// selectNode3: cc.Node = null;
|
||||
|
||||
@property(cc.Node) |
||||
successNode: cc.Node = null; |
||||
|
||||
// @property(cc.Node)
|
||||
// successNode3: cc.Node = null;
|
||||
|
||||
// @property([cc.SpriteFrame])
|
||||
// successTittleSp:cc.SpriteFrame[] = []
|
||||
|
||||
@property(cc.Node) |
||||
failNode: cc.Node = null; |
||||
|
||||
// @property([cc.SpriteFrame])
|
||||
// failTittleSp:cc.SpriteFrame[] = []
|
||||
|
||||
continueBtnFunc = null |
||||
adBtnFunc = null |
||||
successBtnFunc = null |
||||
// resultInfo = null
|
||||
isLeftBtnRight = false |
||||
successNode2:cc.Node = null |
||||
start () { |
||||
|
||||
} |
||||
//直接成功失败,不需要选择
|
||||
initView1(id,isSuccess,continueBtnFunc,adBtnFunc?){ |
||||
this.continueBtnFunc = continueBtnFunc |
||||
this.adBtnFunc = adBtnFunc |
||||
|
||||
let selectConfig = null |
||||
for(let i=0;i<AllConfig.length;i++){ |
||||
if(id == AllConfig[i].idTag){ |
||||
selectConfig = AllConfig[i] |
||||
break |
||||
} |
||||
} |
||||
this.selelctNode.active = false |
||||
|
||||
this.successNode.active = true |
||||
// this.successNode.getChildByName('tittleSp').getComponent(cc.Sprite).spriteFrame = this.successTittleSp[id]?this.successTittleSp[id]:this.successTittleSp[0]
|
||||
this.failNode.active = false |
||||
this.successNode.getChildByName('contentStr').getComponent(cc.Label).string = selectConfig.successStr |
||||
this.successNode.getChildByName('btnContinue').getChildByName('btnContinueStr').getComponent(cc.Label).string = selectConfig.successBtnStr |
||||
if(isSuccess){ |
||||
this.successNode.getChildByName('剧情完成').active = true |
||||
this.successNode.getChildByName('剧情事件').active = false |
||||
}else{ |
||||
this.successNode.getChildByName('剧情完成').active = false |
||||
this.successNode.getChildByName('剧情事件').active = true |
||||
// this.successNode.active = false
|
||||
// this.failNode.active = true
|
||||
// // this.failNode.getChildByName('tittleSp').getComponent(cc.Sprite).spriteFrame = this.failTittleSp[id]?this.failTittleSp[id]:this.failTittleSp[0]
|
||||
|
||||
// this.failNode.getChildByName('contentStr').getComponent(cc.Label).string = selectConfig.failStr
|
||||
// this.failNode.getChildByName('btnAD').getChildByName('label').getComponent(cc.Label).string = selectConfig.failADBtnStr
|
||||
// this.failNode.getChildByName('btnMoney').getChildByName('btnContinueStr').getComponent(cc.Label).string = selectConfig.failContinueBtnStr
|
||||
} |
||||
} |
||||
// //需要先选择,再弹成功失败
|
||||
// initView2(id,isLeftBtnRight,successBtnFunc,continueBtnFunc,adBtnFunc){
|
||||
// this.isLeftBtnRight = isLeftBtnRight
|
||||
|
||||
// this.successBtnFunc = successBtnFunc
|
||||
// this.continueBtnFunc = continueBtnFunc
|
||||
// this.adBtnFunc = adBtnFunc
|
||||
|
||||
// let selectConfig = null
|
||||
// for(let i=0;i<AllConfig.length;i++){
|
||||
// if(id == AllConfig[i].idTag){
|
||||
// selectConfig = AllConfig[i]
|
||||
// break
|
||||
// }
|
||||
// }
|
||||
// this.selelctNode.active = true
|
||||
// this.selelctNode.getChildByName('contentStr').getComponent(cc.Label).string = selectConfig.selectContentStr
|
||||
// this.selelctNode.getChildByName('btnLeft').getChildByName('str').getComponent(cc.Label).string = selectConfig.selectLeftBtnStr
|
||||
// this.selelctNode.getChildByName('btnRight').getChildByName('str').getComponent(cc.Label).string = selectConfig.selectRightBtnStr
|
||||
|
||||
// this.failNode.getChildByName('contentStr').getComponent(cc.Label).string = selectConfig.failStr
|
||||
// this.failNode.getChildByName('btnAD').getChildByName('label').getComponent(cc.Label).string = selectConfig.failADBtnStr
|
||||
// this.failNode.getChildByName('btnMoney').getChildByName('btnContinueStr').getComponent(cc.Label).string = selectConfig.failContinueBtnStr
|
||||
|
||||
// if(selectConfig.failADBtnStr == ''){
|
||||
// this.failNode.getChildByName('btnAD').active = false
|
||||
// this.failNode.getChildByName('btnMoney').x = 0
|
||||
// }
|
||||
// }
|
||||
// //直接成功失败,不需要选择(成功有两个按钮情况)
|
||||
// initView3(id,isSuccess,continueBtnFunc,adBtnFunc?,successStr?){
|
||||
// this.successNode2 = this.node.getChildByName('successNode2')
|
||||
// this.continueBtnFunc = continueBtnFunc
|
||||
// this.adBtnFunc = adBtnFunc
|
||||
|
||||
// let selectConfig = null
|
||||
// for(let i=0;i<AllConfig.length;i++){
|
||||
// if(id == AllConfig[i].idTag){
|
||||
// selectConfig = AllConfig[i]
|
||||
// break
|
||||
// }
|
||||
// }
|
||||
// this.selelctNode.active = false
|
||||
// if(isSuccess){
|
||||
// this.successNode2.active = true
|
||||
// // this.successNode2.getChildByName('tittleSp').getComponent(cc.Sprite).spriteFrame = this.successTittleSp[id]
|
||||
// this.failNode.active = false
|
||||
// this.successNode2.getChildByName('contentStr').getComponent(cc.Label).string = successStr?successStr:selectConfig.successStr
|
||||
// this.successNode2.getChildByName('btnContinue').getChildByName('btnContinueStr').getComponent(cc.Label).string = selectConfig.successBtnStr
|
||||
// this.successNode2.getChildByName('btnAD').getChildByName('label').getComponent(cc.Label).string = selectConfig.successBtnStr2
|
||||
// }else{
|
||||
// this.successNode2.active = false
|
||||
// this.failNode.active = true
|
||||
// // this.failNode.getChildByName('tittleSp').getComponent(cc.Sprite).spriteFrame = this.failTittleSp[id]
|
||||
|
||||
// this.failNode.getChildByName('contentStr').getComponent(cc.Label).string = selectConfig.failStr
|
||||
// this.failNode.getChildByName('btnAD').getChildByName('label').getComponent(cc.Label).string = selectConfig.failADBtnStr
|
||||
// this.failNode.getChildByName('btnMoney').getChildByName('btnContinueStr').getComponent(cc.Label).string = selectConfig.failContinueBtnStr
|
||||
// }
|
||||
// }
|
||||
//两个按钮选择直接结束
|
||||
initView4(id,isSuccess,continueBtnFunc,adBtnFunc?){ |
||||
this.selelctNode2.active = true |
||||
this.continueBtnFunc = continueBtnFunc |
||||
this.adBtnFunc = adBtnFunc |
||||
let selectConfig = null |
||||
for(let i=0;i<AllConfig.length;i++){ |
||||
if(id == AllConfig[i].idTag){ |
||||
selectConfig = AllConfig[i] |
||||
break |
||||
} |
||||
} |
||||
this.selelctNode2.getChildByName('contentStr').getComponent(cc.Label).string = selectConfig.selectContentStr |
||||
this.selelctNode2.getChildByName('btnLeft').getChildByName('str').getComponent(cc.Label).string = selectConfig.selectLeftBtnStr |
||||
this.selelctNode2.getChildByName('btnRight').getChildByName('str').getComponent(cc.Label).string = selectConfig.selectRightBtnStr |
||||
} |
||||
// //需要先选择,再弹成功失败,成功失败都有弹框选择
|
||||
// initView5(id,successBtnFunc,continueBtnFunc,adBtnFunc){
|
||||
// this.selectNode3.active = true
|
||||
|
||||
// this.successBtnFunc = successBtnFunc
|
||||
// this.continueBtnFunc = continueBtnFunc
|
||||
// this.adBtnFunc = adBtnFunc
|
||||
|
||||
// let selectConfig = null
|
||||
// for(let i=0;i<AllConfig.length;i++){
|
||||
// if(id == AllConfig[i].idTag){
|
||||
// selectConfig = AllConfig[i]
|
||||
// break
|
||||
// }
|
||||
// }
|
||||
// this.selectNode3.getChildByName('contentStr').getComponent(cc.Label).string = selectConfig.selectContentStr
|
||||
// this.selectNode3.getChildByName('btnLeft').getChildByName('str').getComponent(cc.Label).string = selectConfig.selectLeftBtnStr
|
||||
// this.selectNode3.getChildByName('btnRight').getChildByName('str').getComponent(cc.Label).string = selectConfig.selectRightBtnStr
|
||||
|
||||
// // {idTag:0,selectContentStr:'收到前男友求和价值5万的999朵玫瑰',selectLeftBtnStr:'含泪收下',selectRightBtnStr:'反手扔掉',
|
||||
// // successStr:'被生气的许婉如抓到打了一耳光耳鸣了花费医药费1万',successADBtnStr:'挽回损失',successBtnStr:'确定',
|
||||
// // failStr:'王俊辉恼羞成怒索赔5万',failADBtnStr:'挽回损失',failContinueBtnStr:'确定'},
|
||||
|
||||
// this.successNode3.getChildByName('contentStr').getComponent(cc.Label).string = selectConfig.successStr
|
||||
// this.successNode3.getChildByName('btnContinue').getChildByName('btnContinueStr').getComponent(cc.Label).string = selectConfig.successBtnStr
|
||||
// this.successNode3.getChildByName('btnAD').getChildByName('label').getComponent(cc.Label).string = selectConfig.successADBtnStr
|
||||
|
||||
// this.failNode.getChildByName('contentStr').getComponent(cc.Label).string = selectConfig.failStr
|
||||
// this.failNode.getChildByName('btnAD').getChildByName('label').getComponent(cc.Label).string = selectConfig.failADBtnStr
|
||||
// this.failNode.getChildByName('btnMoney').getChildByName('btnContinueStr').getComponent(cc.Label).string = selectConfig.failContinueBtnStr
|
||||
|
||||
// // if(selectConfig.failADBtnStr == ''){
|
||||
// // this.failNode.getChildByName('btnAD').active = false
|
||||
// // this.failNode.getChildByName('btnMoney').x = 0
|
||||
// // }
|
||||
// }
|
||||
onBtnADClick(){ |
||||
let tab = { |
||||
onClose: (finish)=>{ |
||||
if (finish) { |
||||
// Common5.ReportDY("inLevel", '任务文字剧情-AD-失败');
|
||||
this.adBtnFunc && this.adBtnFunc() |
||||
this.node.removeFromParent() |
||||
this.node.destroy() |
||||
} |
||||
else{ |
||||
Common5.showTips_custom("广告未观看完"); |
||||
} |
||||
},onFailed:()=>{ |
||||
|
||||
} |
||||
} |
||||
AppPlatform.playVideo_custom(tab) |
||||
} |
||||
onBtnContinue(){ |
||||
this.continueBtnFunc && this.continueBtnFunc() |
||||
this.node.removeFromParent() |
||||
this.node.destroy() |
||||
} |
||||
|
||||
onLeftBtnClick(){ |
||||
if(this.isLeftBtnRight){ |
||||
this.successBtnFunc && this.successBtnFunc() |
||||
this.node.removeFromParent() |
||||
this.node.destroy() |
||||
}else{ |
||||
this.failNode.active = true |
||||
this.selelctNode.active = false |
||||
} |
||||
} |
||||
onRightBtnClick(){ |
||||
if(this.isLeftBtnRight){ |
||||
this.failNode.active = true |
||||
this.selelctNode.active = false |
||||
}else{ |
||||
this.successBtnFunc && this.successBtnFunc() |
||||
this.node.removeFromParent() |
||||
this.node.destroy() |
||||
} |
||||
} |
||||
onLeftBtnClick2(){ |
||||
this.continueBtnFunc && this.continueBtnFunc() |
||||
this.node.removeFromParent() |
||||
this.node.destroy() |
||||
} |
||||
onRightBtnClick2(){ |
||||
let tab = { |
||||
onClose: (finish)=>{ |
||||
if (finish) { |
||||
this.adBtnFunc && this.adBtnFunc() |
||||
this.node.removeFromParent() |
||||
this.node.destroy() |
||||
} |
||||
else{ |
||||
Common5.showTips_custom("广告未观看完"); |
||||
} |
||||
},onFailed:()=>{ |
||||
|
||||
} |
||||
} |
||||
AppPlatform.playVideo_custom(tab) |
||||
} |
||||
|
||||
|
||||
onSuccessClick3(){ |
||||
this.successBtnFunc && this.successBtnFunc() |
||||
this.node.removeFromParent() |
||||
this.node.destroy() |
||||
} |
||||
// onLeftBtnClick3(){
|
||||
// this.selectNode3.active = false
|
||||
// this.successNode3.active = true
|
||||
// }
|
||||
// onRightBtnClick3(){
|
||||
// this.selectNode3.active = false
|
||||
// this.failNode.active = true
|
||||
// }
|
||||
} |
@ -0,0 +1,10 @@ |
||||
{ |
||||
"ver": "1.1.0", |
||||
"uuid": "2780e9c4-fc82-4123-a229-7aef0e805259", |
||||
"importer": "typescript", |
||||
"isPlugin": false, |
||||
"loadPluginInWeb": true, |
||||
"loadPluginInNative": true, |
||||
"loadPluginInEditor": false, |
||||
"subMetas": {} |
||||
} |
Before Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "840c7b03-4fba-47d6-813d-4259ac90248e", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 157, |
||||
"height": 66, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"按钮已领取": { |
||||
"ver": "1.0.6", |
||||
"uuid": "02c5a24d-195d-4e9a-800b-b4a37ff479f1", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "840c7b03-4fba-47d6-813d-4259ac90248e", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 157, |
||||
"height": 66, |
||||
"rawWidth": 157, |
||||
"rawHeight": 66, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 3.6 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "5bbc57f2-e97a-4782-96d5-4d68c203e44a", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 157, |
||||
"height": 66, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"按钮添加桌面": { |
||||
"ver": "1.0.6", |
||||
"uuid": "11d7befa-d6c8-4ce9-82ec-5461d9ecc40d", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "5bbc57f2-e97a-4782-96d5-4d68c203e44a", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 157, |
||||
"height": 66, |
||||
"rawWidth": 157, |
||||
"rawHeight": 66, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 3.9 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "012f41b0-3823-4a43-82b2-38342b100032", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 157, |
||||
"height": 66, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"按钮领取奖励": { |
||||
"ver": "1.0.6", |
||||
"uuid": "9d9c2f9b-d0ce-46c0-9b62-42feb4f63ed5", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "012f41b0-3823-4a43-82b2-38342b100032", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 157, |
||||
"height": 66, |
||||
"rawWidth": 157, |
||||
"rawHeight": 66, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
Before Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 48 KiB |
@ -0,0 +1,38 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "73c92d7e-7ba9-420f-97c8-dca2ce443c0a", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 461, |
||||
"height": 743, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"添加桌面": { |
||||
"ver": "1.0.6", |
||||
"uuid": "8d8e910d-328f-4431-88dd-bfc0c2470cd6", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "73c92d7e-7ba9-420f-97c8-dca2ce443c0a", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 461, |
||||
"height": 743, |
||||
"rawWidth": 461, |
||||
"rawHeight": 743, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
Before Width: | Height: | Size: 5.3 KiB |
@ -1,38 +0,0 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "158bdfea-830d-4b49-8b67-00425b7fb957", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 673, |
||||
"height": 747, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"玩法提示底框": { |
||||
"ver": "1.0.6", |
||||
"uuid": "27de708d-2a39-4fd0-9dbd-4d85b8a0b913", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "158bdfea-830d-4b49-8b67-00425b7fb957", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 673, |
||||
"height": 747, |
||||
"rawWidth": 673, |
||||
"rawHeight": 747, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 15 KiB |
@ -1,38 +0,0 @@ |
||||
{ |
||||
"ver": "2.3.7", |
||||
"uuid": "897bea32-ef26-4a38-b32f-850958095986", |
||||
"importer": "texture", |
||||
"type": "sprite", |
||||
"wrapMode": "clamp", |
||||
"filterMode": "bilinear", |
||||
"premultiplyAlpha": false, |
||||
"genMipmaps": false, |
||||
"packable": true, |
||||
"width": 338, |
||||
"height": 102, |
||||
"platformSettings": {}, |
||||
"subMetas": { |
||||
"组 2458": { |
||||
"ver": "1.0.6", |
||||
"uuid": "4c8eb95a-2319-4cd2-9d0d-363b2295cf41", |
||||
"importer": "sprite-frame", |
||||
"rawTextureUuid": "897bea32-ef26-4a38-b32f-850958095986", |
||||
"trimType": "auto", |
||||
"trimThreshold": 1, |
||||
"rotated": false, |
||||
"offsetX": 0, |
||||
"offsetY": 0, |
||||
"trimX": 0, |
||||
"trimY": 0, |
||||
"width": 338, |
||||
"height": 102, |
||||
"rawWidth": 338, |
||||
"rawHeight": 102, |
||||
"borderTop": 0, |
||||
"borderBottom": 0, |
||||
"borderLeft": 0, |
||||
"borderRight": 0, |
||||
"subMetas": {} |
||||
} |
||||
} |
||||
} |