Commit 34659f9a authored by liujiaxin's avatar liujiaxin

123

parent c3f96bcc
No preview for this file type
...@@ -62,3 +62,4 @@ Thumbs.db ...@@ -62,3 +62,4 @@ Thumbs.db
#////////////////////////// #//////////////////////////
.vscode/ .vscode/
.history/
{
"ver": "2.0.1",
"uuid": "82aa8d86-812e-48a6-b9f6-b5ef748f1719",
"downloadMode": 0,
"duration": 2.220417,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "019b7920-f26a-4727-8f72-18162d4de45a",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"frameRate":24,"name":"light","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-137,"y":-219,"width":274,"height":447},"bone":[{"name":"root"},{"name":"star","parent":"root","transform":{"x":-66.5,"y":11.15}},{"name":"light","parent":"root","transform":{"x":13.65,"y":58.95}},{"name":"star1","parent":"root","transform":{"x":44.7777,"y":78.9363,"scX":1.1,"scY":1.1}},{"name":"star2","parent":"root","transform":{"x":-34.9327,"y":99.5654,"scX":0.8,"scY":0.8}},{"name":"star11","parent":"root","transform":{"x":44.7777,"y":78.9363,"scX":1.1,"scY":1.1}},{"name":"star21","parent":"root","transform":{"x":-34.0346,"y":100.0145,"skX":-0.0947,"skY":-0.0947,"scX":0.8,"scY":0.8}},{"name":"star211","parent":"root","transform":{"x":90.6257,"y":12.8193,"skX":-0.0947,"skY":-0.0947,"scX":0.8,"scY":0.8}}],"slot":[{"name":"yellow","parent":"root"},{"name":"star","parent":"star"},{"name":"light","parent":"light"},{"name":"star1","parent":"star1"},{"name":"star2","parent":"star2"},{"name":"star11","parent":"star11"},{"name":"star21","parent":"star21"},{"name":"star211","parent":"star211"}],"skin":[{"slot":[{"name":"star211","display":[{"name":"升级动效/star","transform":{"x":0.5,"y":-1.65}}]},{"name":"yellow","display":[{"name":"升级动效/yellow","transform":{"y":4.5}}]},{"name":"star","display":[{"name":"升级动效/star","transform":{"x":0.5,"y":-1.65}}]},{"name":"light","display":[{"name":"升级动效/light","transform":{"x":-20.65,"y":-32.95}}]},{"name":"star1","display":[{"name":"升级动效/star","transform":{"x":0.5,"y":-1.65}}]},{"name":"star2","display":[{"name":"升级动效/star","transform":{"x":0.5,"y":-1.65}}]},{"name":"star11","display":[{"name":"升级动效/star","transform":{"x":0.5,"y":-1.65}}]},{"name":"star21","display":[{"name":"升级动效/star","transform":{"x":0.5,"y":-1.65}}]}]}],"animation":[{"duration":14,"playTimes":0,"name":"newAnimation","bone":[{"name":"star","translateFrame":[{"duration":10,"tweenEasing":0,"y":98.49},{"duration":4,"y":-52.69}],"rotateFrame":[{"duration":10,"tweenEasing":0,"rotate":57.28},{"duration":4,"rotate":-91.46}],"scaleFrame":[{"duration":10},{"duration":4,"x":0.9,"y":0.9}]},{"name":"light","translateFrame":[{"duration":14,"tweenEasing":0},{"duration":0,"y":-152.99}]},{"name":"star1","translateFrame":[{"duration":12,"tweenEasing":0,"y":10.8},{"duration":2,"y":-52.69}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":2,"rotate":-126.04}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":2,"x":0.9,"y":0.9}]},{"name":"star2","translateFrame":[{"duration":10,"tweenEasing":0,"y":-67.16},{"duration":4,"y":-146.18}],"rotateFrame":[{"duration":10,"tweenEasing":0,"rotate":-49.57},{"duration":4,"rotate":13.89}],"scaleFrame":[{"duration":10},{"duration":4,"x":0.9,"y":0.9}]},{"name":"star11","translateFrame":[{"duration":10,"tweenEasing":0,"x":-16.93,"y":-85.84},{"duration":4,"x":-16.93,"y":-187.14}],"rotateFrame":[{"duration":10,"tweenEasing":0},{"duration":4,"rotate":-126.04}],"scaleFrame":[{"duration":10,"tweenEasing":0},{"duration":4,"x":0.9,"y":0.9}]},{"name":"star21","translateFrame":[{"duration":12,"tweenEasing":0,"x":-33.9,"y":-99},{"duration":2,"x":-33.9,"y":-238.92}],"rotateFrame":[{"duration":12,"tweenEasing":0,"rotate":-62.39},{"duration":2,"rotate":27.47}],"scaleFrame":[{"duration":12},{"duration":2,"x":0.9,"y":0.9}]},{"name":"star211","translateFrame":[{"duration":12,"tweenEasing":0,"x":-33.9,"y":-47.11},{"duration":2,"x":-33.9,"y":-238.92}],"rotateFrame":[{"duration":12,"tweenEasing":0,"rotate":-62.39},{"duration":2,"rotate":27.47}],"scaleFrame":[{"duration":12},{"duration":2,"x":0.9,"y":0.9}]}],"slot":[{"name":"yellow","colorFrame":[{"duration":14,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star","colorFrame":[{"duration":10,"tweenEasing":0},{"duration":4,"value":{"aM":0}}]},{"name":"light","colorFrame":[{"duration":14,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star1","colorFrame":[{"duration":12,"tweenEasing":0},{"duration":2,"value":{"aM":0}}]},{"name":"star2","colorFrame":[{"duration":10,"tweenEasing":0},{"duration":4,"value":{"aM":0}}]},{"name":"star11","colorFrame":[{"duration":10,"tweenEasing":0},{"duration":4,"value":{"aM":0}}]},{"name":"star21","colorFrame":[{"duration":12,"tweenEasing":0},{"duration":2,"value":{"aM":0}}]},{"name":"star211","colorFrame":[{"duration":12,"tweenEasing":0},{"duration":2,"value":{"aM":0}}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}]}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "aa7114fc-8903-4cc8-b3d8-c3b38a0b6239",
"subMetas": {}
}
\ No newline at end of file
{"name":"light","imagePath":"light_tex.png","SubTexture":[{"name":"升级动效/yellow","x":1,"height":447,"y":1,"width":274},{"name":"升级动效/star","x":461,"height":47,"y":1,"width":48},{"name":"升级动效/light","x":277,"height":278,"y":1,"width":182}],"height":512,"width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "79b2a79d-bdda-482d-a4e2-b37c961f184c",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "57b7134f-d64c-494f-9dab-c9cbca7079a5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 512,
"platformSettings": {},
"subMetas": {
"light_tex": {
"ver": "1.0.4",
"uuid": "980bd72b-86c5-4279-a91c-cd140dd18815",
"rawTextureUuid": "57b7134f-d64c-494f-9dab-c9cbca7079a5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": 31.5,
"trimX": 1,
"trimY": 1,
"width": 508,
"height": 447,
"rawWidth": 512,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "levelup",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": false,
"_components": [
{
"__id__": 2
}
],
"_prefab": {
"__id__": 3
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 274,
"height": 447
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 1,
"premultipliedAlpha": false,
"_armatureKey": "aa7114fc-8903-4cc8-b3d8-c3b38a0b6239#79b2a79d-bdda-482d-a4e2-b37c961f184c",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "aa7114fc-8903-4cc8-b3d8-c3b38a0b6239"
},
"_N$dragonAtlasAsset": {
"__uuid__": "79b2a79d-bdda-482d-a4e2-b37c961f184c"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "9275d177-4165-4c55-bb6b-2f13c2994cc3"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "9275d177-4165-4c55-bb6b-2f13c2994cc3",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import pg from "./pg";
import user from "./model/user";
const {ccclass, property} = cc._decorator;
@ccclass
export default class ChangeItemAnimation extends cc.Component {
armatureDisplay: dragonBones.ArmatureDisplay;
animNode: cc.Node;
@property(cc.AudioClip)
starPopAudio: cc.AudioClip = null;
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
this.animNode = cc.find('levelup', this.node);
if (!this.animNode) {
return;
}
this.armatureDisplay = this.animNode.getComponent(dragonBones.ArmatureDisplay);
this.armatureDisplay.addEventListener(dragonBones.EventObject.COMPLETE, this.OnCallAnimationPlayComplete, this);
// @ts-ignore
this.node.changeSkin = this.changeSkin.bind(this)
}
changeSkin (data) {
pg.view.setNetImg(this.node, data.itemImage, true);
if (!this.animNode) {
return;
}
this.animNode.active = true;
cc.audioEngine.play(this.starPopAudio, false, 1);
this.armatureDisplay.playAnimation("newAnimation", 1);
let {x, y, width, height} = this.node;
if (data.rect) {
debugger
x = data.rect.x;
y = data.rect.y;
width = data.rect.width;
height = data.rect.height;
this.node.x = x;
this.node.y = y;
this.node.width = width;
this.node.height = height;
}
user.updateFurniture(data, {
x, y, width, height
});
}
OnCallAnimationPlayComplete () {
console.log(1111);
this.animNode.active = false;
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "f9a5ce5c-e8da-4215-a2ae-08722fead44e",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
import { Action } from './../../../creator.d';
import { asyncDelay, onHomeworkFinish } from "../script/util"; import { asyncDelay, onHomeworkFinish } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent"; import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
import shop from "./model/shop"; import shop from "./model/shop";
...@@ -5,8 +6,10 @@ import pg from "./pg"; ...@@ -5,8 +6,10 @@ import pg from "./pg";
import Api from "./net/api"; import Api from "./net/api";
import user from "./model/user"; import user from "./model/user";
import Item from "./model/item"; import Item from "./model/item";
import HouseItem from "./model/house-item";
import kitchen from "./model/kitchen"; import kitchen from "./model/kitchen";
import { ITEM_TYPE } from "./config/config"; import { ITEM_TYPE } from "./config/config";
import house from "./model/house";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
...@@ -30,6 +33,49 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -30,6 +33,49 @@ export default class SceneComponent extends MyCocosSceneComponent {
icon_8: cc.SpriteFrame = null; icon_8: cc.SpriteFrame = null;
@property(cc.Node)
wallpaper: cc.Node = null;
@property(cc.Node)
floor: cc.Node = null;
@property(cc.Node)
wainscoting: cc.Node = null;
@property(cc.Node)
door: cc.Node = null;
@property(cc.Node)
lamp: cc.Node = null;
@property(cc.Node)
carpet: cc.Node = null;
@property(cc.Node)
window: cc.Node = null;
@property(cc.Node)
sofa: cc.Node = null;
@property(cc.Node)
flower: cc.Node = null;
@property(cc.Node)
cabinet: cc.Node = null;
@property(cc.Node)
photo: cc.Node = null;
@property(cc.AudioClip)
starPop: cc.AudioClip = null;
addPreloadImage() { addPreloadImage() {
// TODO 根据自己的配置预加载图片资源 // TODO 根据自己的配置预加载图片资源
this._imageResList.push({ url: this.data.pic_url }); this._imageResList.push({ url: this.data.pic_url });
...@@ -51,9 +97,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -51,9 +97,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
// globalThis.CLIENT_TYPE = 'student' // globalThis.CLIENT_TYPE = 'student'
// globalThis.SERVER_HOST = 'http://192.168.3.127:3900' // globalThis.SERVER_HOST = 'http://192.168.3.127:3900'
globalThis.____GAME_ENV____ = { globalThis.____GAME_ENV____ = {
baseUrl: isLocalDev ? 'http://192.168.3.127:3900/api/' : cc.find('middleLayer').getComponent('middleLayer').baseUrl, baseUrl: isLocalDev ? 'http://192.168.99.41:3900/api/' : cc.find('middleLayer').getComponent('middleLayer').baseUrl,
token: isLocalDev token: isLocalDev
? "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2Mzk2MjE3MTIsImV4cCI6MTY0MjIxMzcxMiwiaWQiOjQwMDY2LCJwYXNzd29yZCI6IjE5QTEwM0E3NUUzM0QzQTNCODg0QkQxNTUwMjhENTA1Iiwic2Nob29sX2lkIjoyODYsInBob25lIjoiMTMxMDAwMDAwMDAiLCJuYW1lIjoi5bCP546J5rWL6K-VMCIsInN0YXR1cyI6MCwidHlwZSI6MCwicm9sZXMiOjEsImV4cGlyZWQiOiIyMDIyLTAzLTE5VDE2OjAwOjAwLjAwMFoiLCJzY2hvb2xfbmFtZSI6Iue7mOeOqea1i-ivleeOr-Wig-WtpuagoSIsInNjaG9vbF90eXBlIjoyLCJjcmVhdGVvbiI6MTU3MDc2MTk3NDAwMCwiY2xhc3NfbmFtZSI6IuS4ieW5tDHnj60iLCJjbGFzc19pbmZvIjpbeyJjbGFzc19pZCI6MzkxNSwiY2xhc3NfbmFtZSI6IuS4ieW5tDHnj60ifV0sIm90aGVycyI6W119.4T-Lnsl25aJ-rvUOCDwShq4F5u3BbR86ZLPew4zyULU" ? "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NTQ3Mzk5MzQsImV4cCI6MTY1NzMzMTkzNCwiaWQiOjE4LCJwYXNzd29yZCI6IkNDNkZBNjJEMjNFOTM1QjlBRUFGODMxQ0UwNEEyMzNEIiwic2Nob29sX2lkIjoxLCJwaG9uZSI6IjEzMzk5OTk5OTkxIiwibmFtZSI6IuWOu-WOu-WOuyIsInN0YXR1cyI6MCwidHlwZSI6MCwicm9sZXMiOjEsImV4cGlyZWQiOiIyMDIzLTEwLTI5VDE2OjAwOjAwLjAwMFoiLCJzY2hvb2xfbmFtZSI6IumYs-WFieaVmeiCsumbhuWbojciLCJzY2hvb2xfdHlwZSI6MSwiY3JlYXRlb24iOjE1NDE0OTc2NzYwMDB9.cOnkBbscUD4Dkc5ZqtH6WV6Nd7-KxvVitY6uRgLs6zQ"
: cc.find('middleLayer').getComponent('middleLayer').token : cc.find('middleLayer').getComponent('middleLayer').token
} }
// globalThis.SERVER_HOST = 'http://staging.ireadabc.com' // globalThis.SERVER_HOST = 'http://staging.ireadabc.com'
...@@ -74,8 +120,12 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -74,8 +120,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.hideWaitingLetters() this.hideWaitingLetters()
this.initData(); this.initData();
}).catch((e) => { }).catch((e) => {
this.hideWaitingLetters() this.hideWaitingLetters();
this.openTipAlert({message: '网络错误,请返回重新进入', let message = '网络错误,请返回重新进入';
if (typeof e == 'string' && e) {
message = e
}
this.openTipAlert({message,
callback: () => { callback: () => {
this.closeTipAlert(); this.closeTipAlert();
this.fetchUserData(); this.fetchUserData();
...@@ -91,6 +141,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -91,6 +141,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 所有全局变量 默认都是null // 所有全局变量 默认都是null
this._cantouch = true; this._cantouch = true;
this.elephentState(user.mood == 0 ? 1 : 2); this.elephentState(user.mood == 0 ? 1 : 2);
this.renderMyHouse();
} }
private home: cc.Node; private home: cc.Node;
...@@ -109,10 +160,67 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -109,10 +160,67 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.elephant = pg.view.find(this.home, "elephant"); this.elephant = pg.view.find(this.home, "elephant");
this.loading = pg.view.find(this, "loading"); this.loading = pg.view.find(this, "loading");
this.exitButton = pg.view.find(this.home, "exit_btn"); this.exitButton = pg.view.find(this.home, "exit_btn");
} }
initEvent() { initEvent() {
// @ts-ignore
this.wallpaper.on(cc.Node.EventType.LONG_PRESS, function(){
this.onTouchItemToChange('wallpaper');
}, this);
// @ts-ignore
this.floor.on(cc.Node.EventType.LONG_PRESS, function(){
this.onTouchItemToChange('floor');
}, this);
// @ts-ignore
this.wainscoting.on(cc.Node.EventType.LONG_PRESS, function(){
this.onTouchItemToChange('wainscoting');
}, this);
// @ts-ignore
// this.door.on(cc.Node.EventType.LONG_PRESS, function(){
// this.onTouchItemToChange('door');
// }, this);
// @ts-ignore
this.lamp.on(cc.Node.EventType.LONG_PRESS, function(){
this.onTouchItemToChange('lamp');
}, this);
// @ts-ignore
this.carpet.on(cc.Node.EventType.LONG_PRESS, function(){
this.onTouchItemToChange('carpet');
}, this);
// @ts-ignore
this.window.on(cc.Node.EventType.LONG_PRESS, function(){
this.onTouchItemToChange('window');
}, this);
// @ts-ignore
this.sofa.on(cc.Node.EventType.LONG_PRESS, function(){
this.onTouchItemToChange('sofa');
}, this);
// @ts-ignore
this.flower.on(cc.Node.EventType.LONG_PRESS, function(){
this.onTouchItemToChange('flower');
}, this);
// @ts-ignore
this.cabinet.on(cc.Node.EventType.LONG_PRESS, function(){
this.onTouchItemToChange('cabinet');
}, this);
// @ts-ignore
this.photo.on(cc.Node.EventType.LONG_PRESS, function(){
this.onTouchItemToChange('photo');
}, this);
// @ts-ignore
this.door.on(cc.Node.EventType.LONG_PRESS, function(){
pg.view.touchOff(pg.view.find(this.home, "btn_kitchen"), this.onTouchKitchen, this);
// setTimeout(() => {
// pg.view.touchOn(pg.view.find(this.home, "btn_kitchen"), this.onTouchKitchen, this);
// });
this.onTouchItemToChange('door');
}, this);
// @ts-ignore
this.door.on(cc.Node.EventType.LONG_PRESS_END, function(){
pg.view.touchOn(pg.view.find(this.home, "btn_kitchen"), this.onTouchKitchen, this);
}, this);
pg.view.touchOn(pg.view.find(this.home, "btn_kitchen"), this.onTouchKitchen, this); pg.view.touchOn(pg.view.find(this.home, "btn_kitchen"), this.onTouchKitchen, this);
pg.view.touchOn(pg.view.find(this, "kitchen/btn_close"), this.onTouchKitchenClose, this); pg.view.touchOn(pg.view.find(this, "kitchen/btn_close"), this.onTouchKitchenClose, this);
pg.view.touchOn(pg.view.find(this.home, "btn_shop"), this.onTouchShop, this); pg.view.touchOn(pg.view.find(this.home, "btn_shop"), this.onTouchShop, this);
...@@ -121,12 +229,83 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -121,12 +229,83 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.view.touchOn(pg.view.find(this.elephant, "panel_info/btn_close"), this.onTouchPanel, this); pg.view.touchOn(pg.view.find(this.elephant, "panel_info/btn_close"), this.onTouchPanel, this);
pg.view.touchOn(this.exitButton, this.onExitPetRoom, this); pg.view.touchOn(this.exitButton, this.onExitPetRoom, this);
} }
renderMyHouse() {
console.log('house', user.myFurniture);
const fur_kinds = Object.keys(user.myFurniture.furniture);
fur_kinds.forEach(kind => {
const fur = user.myFurniture.furniture[kind];
console.log(kind, fur.id, fur.rect);
house.setFurnitureItem(this[kind], fur.id, fur.rect);
});
}
//----------------------------商店部分-------------------------------------- //----------------------------商店部分--------------------------------------
// 推出按钮 // 推出按钮
onExitPetRoom() { onExitPetRoom() {
cc.find('middleLayer').getComponent('middleLayer').exit(); cc.find('middleLayer').getComponent('middleLayer').exit();
} }
// 换装相关
onTouchItemToChange(kind){
// console.log('house', house.list);
// console.log('change', kind);
this.updateMyHouseItemsListView(kind);
this.skin_choice_dialog.active = true;
}
updateMyHouseItem(item, data: HouseItem) {
item.active = true;
let icon = pg.view.find(item, "icon");
let current = pg.view.find(item, "current");
pg.view.setNetImg(icon, data.cover, true);
if (data.current) {
pg.view.visible(current, true);
} else {
pg.view.visible(current, false);
}
pg.view.touchOn(item, this.changeHouseItem.bind(this, data), this);
item.data = data;
}
changeHouseItem(data) {
console.log(data);
const {id, kind} = data;
const current = user.isCurrentFurniture(id, kind);
if (current) {
return;
}
console.log(111,data);
// close dialog
this.skin_choice_dialog.active = false;
// @ts-ignore
this[kind].changeSkin(data);
}
updatemMyHouseItemsList(item, datas) {
item.children.forEach(it => it.active = false);
for (let i = 0; i < datas.length; i++) {
let it = item.children[i];
let dt = datas[i];
if (dt) {
// console.log(dt.name);
this.updateMyHouseItem(it, dt);
}
}
}
updateMyHouseItemsListView(kind) {
let scroll = pg.view.find(this.skin_choice_dialog, "dialog/scrollview");
let svt = scroll.getComponent("svt");
let list = house.getListByKind(kind);
svt.list = list;
if (list.length == 0) {
return list;
}
svt.updateItem = this.updatemMyHouseItemsList;
svt.target = this;
svt.addNum = 2;
svt.flush();
return list;
}
//商店按钮 //商店按钮
private shopType = 0; private shopType = 0;
onTouchShop() { onTouchShop() {
...@@ -156,7 +335,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -156,7 +335,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.updateShopBtns(); this.updateShopBtns();
} }
onTouchShopHouse() { onTouchShopHouse() {
this.shopType = ITEM_TYPE.HOUSE; this.shopType = ITEM_TYPE.HOUSE;
const list = this.updateShopList(); const list = this.updateShopList();
...@@ -220,7 +398,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -220,7 +398,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
} }
} }
updateShopItem(item, data: Item) { updateShopItem(item, data: Item|HouseItem) {
item.active = true; item.active = true;
let growth = pg.view.find(item, "bg_food/growth"); let growth = pg.view.find(item, "bg_food/growth");
let txt = pg.view.find(item, "bg_food/txt"); let txt = pg.view.find(item, "bg_food/txt");
...@@ -228,7 +406,12 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -228,7 +406,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
let icon = pg.view.find(item, "bg_food/icon"); let icon = pg.view.find(item, "bg_food/icon");
let discount = pg.view.find(item, "bg_food/discount"); let discount = pg.view.find(item, "bg_food/discount");
let btn_buy = pg.view.find(item, "bg_food/btn_buy"); let btn_buy = pg.view.find(item, "bg_food/btn_buy");
if(data.type == ITEM_TYPE.HOUSE && (data as HouseItem).own) {
console.log(1, data);
let own = pg.view.find(item, "bg_food/own");
pg.view.visible(own, true);
}
pg.view.setString(txt, `可增加 个成长值`) pg.view.setString(txt, `可增加 个成长值`)
pg.view.setString(growth, data.growthValue) pg.view.setString(growth, data.growthValue)
...@@ -254,29 +437,41 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -254,29 +437,41 @@ export default class SceneComponent extends MyCocosSceneComponent {
onTouchShopItem(e) { onTouchShopItem(e) {
let item = e.target; // .parent; let item = e.target; // .parent;
let data: Item = item.data; let data: Item = item.data;
let action = null;
if (data.type == 1) { if (data.type == 1) {
//弹出购买弹窗 action = this.buy.bind(this);
console.log(user) } else if (data.type == 2) {
if (user.coin >= data.cost * data.discount) { //物品已购买
if (data.num > 0) {
this.openTipNormal(data, () => { this.openTipNormal(data, () => {
this.buy(data);
this.closeTipNormal(); this.closeTipNormal();
}, () => { }, null, '你已经拥有该物品,无需购买!')
this.closeTipNormal(); return;
})
} else {
this.openTipFail(data, () => {
this.closeTipFail();
}, () => {
this.closeTipFail();
})
} }
} else if (data.type == 2) { action = this.buy.bind(this);
//物品已购买
if (data.num >= 0) return;
} else if (data.type == 3) { } else if (data.type == 3) {
//物品已购买 //物品已购买
if (data.num >= 0) return; if (data.num > 0) return;
action = this.buy.bind(this);
}
if (!action) {
return;
}
//弹出购买弹窗
console.log(user, data)
if (user.coin >= data.cost * data.discount) {
this.openTipNormal(data, () => {
action(data);
this.closeTipNormal();
}, () => {
this.closeTipNormal();
})
} else {
this.openTipFail(data, () => {
this.closeTipFail();
}, () => {
this.closeTipFail();
})
} }
} }
buy(data) { buy(data) {
...@@ -285,6 +480,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -285,6 +480,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.fetchUserData().then(ud => { this.fetchUserData().then(ud => {
this.hideWaitingLetters(true) this.hideWaitingLetters(true)
this.updateShopCoin(); this.updateShopCoin();
this.updateShopList();
this.updateShopBtns();
this.openTipBuy(data, () => { this.openTipBuy(data, () => {
this.closeTipBuy(); this.closeTipBuy();
}); });
...@@ -313,7 +510,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -313,7 +510,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let scroll = pg.view.find(this.kitchen, "scrollview"); let scroll = pg.view.find(this.kitchen, "scrollview");
let svt = scroll.getComponent("svt"); let svt = scroll.getComponent("svt");
svt.list = kitchen.list; svt.list = kitchen.getListByType(ITEM_TYPE.FOOD); //kitchen.list;
svt.updateItem = this.updateChickenItems; svt.updateItem = this.updateChickenItems;
svt.target = this; svt.target = this;
svt.addNum = 4; svt.addNum = 4;
...@@ -530,6 +727,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -530,6 +727,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
private tipFailCancel: Function; private tipFailCancel: Function;
private tipEmptySuccess: Function; private tipEmptySuccess: Function;
private tipAlertCallback: Function; private tipAlertCallback: Function;
private skin_choice_dialog: cc.Node;
initTipSys() { initTipSys() {
this.tip_normal = pg.view.find(this, "tip_normal"); this.tip_normal = pg.view.find(this, "tip_normal");
...@@ -544,13 +743,29 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -544,13 +743,29 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.view.touchOn(pg.view.find(this.tip_fail, "btn_cancel"), () => { this.tipFailCancel && this.tipFailCancel() }, this); pg.view.touchOn(pg.view.find(this.tip_fail, "btn_cancel"), () => { this.tipFailCancel && this.tipFailCancel() }, this);
pg.view.touchOn(pg.view.find(this.tip_empty, "btn_cancel"), () => { this.tipEmptySuccess && this.tipEmptySuccess() }, this); pg.view.touchOn(pg.view.find(this.tip_empty, "btn_cancel"), () => { this.tipEmptySuccess && this.tipEmptySuccess() }, this);
pg.view.touchOn(pg.view.find(this.tip_alert, "btn_cancel"), () => { this.tipAlertCallback && this.tipAlertCallback() }, this); pg.view.touchOn(pg.view.find(this.tip_alert, "btn_cancel"), () => { this.tipAlertCallback && this.tipAlertCallback() }, this);
this.skin_choice_dialog = pg.view.find(this, "home/item_choice_dialog");
pg.view.touchOn(pg.view.find(this.skin_choice_dialog, "dialog/close"), () => {
this.skin_choice_dialog.active = false;
}, this);
} }
openTipNormal(data: Item, success, cancel) { openTipNormal(data: Item, success, cancel, msg = null) {
this.tip_normal.active = true; this.tip_normal.active = true;
this.tipSuccess = success; this.tipSuccess = success;
this.tipCancel = cancel; this.tipCancel = cancel;
if (!cancel) {
pg.view.visible(pg.view.find(this.tip_normal, "btn_cancel"), false);
} else {
pg.view.visible(pg.view.find(this.tip_normal, "btn_cancel"), true);
}
if (data) { if (data) {
pg.view.setString(pg.view.find(this.tip_normal, "desc"), `确定花${data.cost * data.discount}金币购买${data.name}吗?`); let message = `确定花${data.cost * data.discount}金币购买${data.name}吗?`;
if (msg) {
message = msg;
}
pg.view.setString(pg.view.find(this.tip_normal, "desc"), message);
let icon = pg.view.find(this.tip_normal, "icon"); let icon = pg.view.find(this.tip_normal, "icon");
// icon.getComponent(cc.Sprite).spriteFrame = this[data.icon]; // icon.getComponent(cc.Sprite).spriteFrame = this[data.icon];
pg.view.setNetImg(icon, data.cover) pg.view.setNetImg(icon, data.cover)
......
import Item from "./item";
class HouseItem extends Item {
public itemImage: string; //
public kind: string; // 商品种类
public own: boolean;
public rect: {x: number, y: number, width: number, height: number}
public current = false;
constructor(obj: any) {
super(obj);
// if (obj.type == 1) {
// this.kind = 'FOOD';
// } else if (obj.type == 2) {
// }
if ( obj.meta_value && obj.meta_value.kind) {
this.kind = obj.meta_value.kind;
}
if (obj.meta_value && obj.meta_value.item) {
this.itemImage = obj.meta_value.item;
}
this.own = obj.amount > 0;
this.rect = obj.meta_value.rect;
// console.log(222, obj)
}
}
export default HouseItem;
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "751c621f-9752-4774-bdc8-192f05c0d16f",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import HouseItem from "./house-item"
import user from "./user";
import pg from "../pg";
class House {
public _list: Array<HouseItem>
constructor() {
this._list = [];
}
parse(list: any) {
if (!list) return;
this._list = list.map(li => {
// console.log(li);
return new HouseItem(li);
})
}
get list() {
return this._list;
}
getListByKind(kind: string) {
return this._list.filter(li => li.kind == kind).map(li => {
return {...li, current: user.isCurrentFurniture(li.id, li.kind) }
})
}
has(item_id) {
return this._list.findIndex(it => it.id == item_id) > -1;
}
setFurnitureItem(node, id, rect = null) {
const item = this._list.find(li => li.id == id)
pg.view.setNetImg(node, item.itemImage, true);
if (rect) {
node.x = rect.x;
node.y = rect.y;
node.width = rect.width;
node.height = rect.height;
}
}
}
const house = new House();
export default house;
{
"ver": "1.0.8",
"uuid": "2f7d76ba-22a3-4884-b8ed-20eec83b9409",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import Item from "./item" import Item from "./item"
import HouseItem from "./house-item"
import house from "./house";
class Shop { class Shop {
public _list: Array<Item> public _list: Array<Item>
constructor() { constructor() {
...@@ -7,15 +9,26 @@ class Shop { ...@@ -7,15 +9,26 @@ class Shop {
parse(list: any) { parse(list: any) {
if (!list) return; if (!list) return;
this._list = list.map(li => { this._list = list.map(li => {
if (li.type == 2) {
return new HouseItem(li);
}
return new Item(li); return new Item(li);
}) })
} }
get list() { get list() {
return this._list; return this._list.filter(li => ![20,21,22,23,24,25,26,27,28,29,30].includes(li.id));
} }
getListByType(type: number) { getListByType(type: number) {
return this._list.filter(li => li.type == type) return this._list.filter(li => {
return li.type == type && ![20,21,22,23,24,25,26,27,28,29,30].includes(li.id);
}).map(li => {
if (li.type == 2) {
return {...li, own: house.has(li.id)}
}
return li;
});
} }
} }
const shop = new Shop(); const shop = new Shop();
......
import { LEVEL } from "../config/config"; import { LEVEL } from "../config/config";
import Api from "../net/api";
class User { class User {
public name: string; public name: string;
...@@ -9,8 +10,9 @@ class User { ...@@ -9,8 +10,9 @@ class User {
public growthDaily: number; public growthDaily: number;
public growthDailyMax: number; public growthDailyMax: number;
public eatTime: number; public eatTime: number;
public useFurniture: Array<number>; // public useFurniture: Array<number>;
public useClothes: Array<number>; public useClothes: Array<number>;
public myFurniture: any;
public mood: number;//0开心 1不开心 public mood: number;//0开心 1不开心
constructor() { constructor() {
...@@ -25,7 +27,8 @@ class User { ...@@ -25,7 +27,8 @@ class User {
this.growthDaily = data.growthDaily; this.growthDaily = data.growthDaily;
this.growthDailyMax = data.growthDailyMax; this.growthDailyMax = data.growthDailyMax;
this.eatTime = data.eatTime; this.eatTime = data.eatTime;
this.useFurniture = data.useFurniture; // this.useFurniture = data.useFurniture;
this.myFurniture = data.myFurniture;
this.useClothes = data.useClothes; this.useClothes = data.useClothes;
this.mood = data.mood; this.mood = data.mood;
} }
...@@ -40,6 +43,21 @@ class User { ...@@ -40,6 +43,21 @@ class User {
useCoin(val) { useCoin(val) {
this.coin -= val; this.coin -= val;
} }
isCurrentFurniture(id, kind) {
if (this.myFurniture.furniture) {
return this.myFurniture.furniture[kind].id == id
}
return false;
}
updateFurniture(data, rect) {
this.myFurniture.furniture[data.kind] = {
...this.myFurniture.furniture[data.kind],
id: data.id,
rect
}
Api.updateUserHouse(data, rect);
}
// //当前等级成长值最大值 // //当前等级成长值最大值
// public get growthLevel(): number { // public get growthLevel(): number {
// let max = 1; // let max = 1;
......
...@@ -3,6 +3,7 @@ import { ITEMS, USER } from "../config/config" ...@@ -3,6 +3,7 @@ import { ITEMS, USER } from "../config/config"
import user from "../model/user"; import user from "../model/user";
import kitchen from "../model/kitchen"; import kitchen from "../model/kitchen";
import shop from "../model/shop"; import shop from "../model/shop";
import house from "../model/house";
//获取信息,购买物品,使用物品(吃东西),穿戴衣服/更换家具 //获取信息,购买物品,使用物品(吃东西),穿戴衣服/更换家具
class Api { class Api {
...@@ -18,7 +19,8 @@ class Api { ...@@ -18,7 +19,8 @@ class Api {
coin: userInfo.coins, coin: userInfo.coins,
level: userInfo.level, level: userInfo.level,
eatTime: userInfo.status.eat.time, eatTime: userInfo.status.eat.time,
useFurniture: userInfo.furniture, // useFurniture: userInfo.furniture,
myFurniture: userInfo.furniture,
useClothes: userInfo.dress, useClothes: userInfo.dress,
growth: userInfo.current_exp, growth: userInfo.current_exp,
growthLevel: userInfo.need_exp, growthLevel: userInfo.need_exp,
...@@ -27,7 +29,8 @@ class Api { ...@@ -27,7 +29,8 @@ class Api {
console.log(info); console.log(info);
user.parse(info); user.parse(info);
// let kitchenInfo = ITEMS; // let kitchenInfo = ITEMS;
kitchen.parse(userInfo.my_items); house.parse(userInfo.my_furniture_items);
kitchen.parse(userInfo.my_food_items);
shop.parse(userInfo.shop_items); shop.parse(userInfo.shop_items);
resolve(''); resolve('');
} catch(e) { } catch(e) {
...@@ -38,6 +41,25 @@ class Api { ...@@ -38,6 +41,25 @@ class Api {
}) })
}); });
} }
static updateUserHouse(data, rect) {
return new Promise((resolve, reject) => {
pg.http.send("POST", `${ globalThis.____GAME_ENV____.baseUrl}pets/update/house`, {
kind: data.kind,
rect,
id: data.id
}).then((resp: any) => {
// user.addGrowth(data.growthValue);
// kitchen.use(data.id);
try {
resolve(resp);
} catch (e) {
reject(e)
}
}).catch(e => {
reject(e)
})
});
}
static askUseItem(data) { static askUseItem(data) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
pg.http.send("POST", `${ globalThis.____GAME_ENV____.baseUrl}pets/use/item`, {item_id: data.id}).then((resp: any) => { pg.http.send("POST", `${ globalThis.____GAME_ENV____.baseUrl}pets/use/item`, {item_id: data.id}).then((resp: any) => {
......
...@@ -83,6 +83,7 @@ let pg = { ...@@ -83,6 +83,7 @@ let pg = {
if (!item) return pg.logger.w("添加按钮响应失败,传入了错误的item"); if (!item) return pg.logger.w("添加按钮响应失败,传入了错误的item");
if (!callback || !target) return pg.logger.w("添加按钮响应失败,传入了空回调"); if (!callback || !target) return pg.logger.w("添加按钮响应失败,传入了空回调");
let node = item.node ? item.node : item; let node = item.node ? item.node : item;
node.off(cc.Node.EventType.TOUCH_END, callback, target);
node.on(cc.Node.EventType.TOUCH_END, callback, target); node.on(cc.Node.EventType.TOUCH_END, callback, target);
return true; return true;
}, },
......
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
// @ts-ignore
if(!cc.Node.EventType.LONG_PRESS) {
// @ts-ignore
cc.Node.EventType.LONG_PRESS = 'custom_long_press';
// @ts-ignore
cc.Node.EventType.LONG_PRESS_END = 'custom_long_press_end';
}
@ccclass
export default class LongPressButton extends cc.Component {
touchFlag = false;
longPressFlag = false;
touchStartTime = null;
buttonCallback = null;
// btnStart = null;
// LIFE-CYCLE CALLBACKS:
onLoad () {
this.touchFlag = false;
this.touchStartTime = null;
//添加按钮触摸监听 长按弹托管弹窗列表
this.node.on(cc.Node.EventType.TOUCH_START, this.touchStart, this);
this.node.on(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
}
start () {
}
setCallback(cb: any) {
this.buttonCallback = cb;
}
//触摸开始
touchStart(){
//触摸开始
this.touchFlag = true;
this.longPressFlag = false;
//记录下触摸开始时间
this.touchStartTime = new Date();
}
//长按检测函数
touchHold(){
if(this.touchFlag && this.touchStartTime != null){
//判断按钮的按压时长
let touchHoldTime = new Date();
let milliseconds = touchHoldTime.getTime() - this.touchStartTime.getTime();
if(milliseconds > 1000 && !this.longPressFlag){
this.longPressFlag = true;
//触发托管事务逻辑
// @ts-ignore
this.node.emit(cc.Node.EventType.LONG_PRESS);
// this.reset();
}
}
}
reset() {
this.touchFlag = false;
this.touchStartTime = null;
this.longPressFlag = false;
}
//触摸结束
touchEnd(){
if (this.longPressFlag) {
// @ts-ignore
this.node.emit(cc.Node.EventType.LONG_PRESS_END);
}
this.reset();
//出发单击事务逻辑
//todo...
}
update (dt) {
//判断是否检测按钮长按状态
if(this.touchFlag){
this.touchHold();
}
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "a0c421c5-56b9-40cc-8ffc-83d5a5b1cfaa",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "54281ffe-5ae7-4cce-aa2e-1430c9954701",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1334,
"height": 276,
"platformSettings": {},
"subMetas": {
"floor_s": {
"ver": "1.0.4",
"uuid": "34f1856c-0903-4c68-b8b3-6f318251f80b",
"rawTextureUuid": "54281ffe-5ae7-4cce-aa2e-1430c9954701",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1334,
"height": 276,
"rawWidth": 1334,
"rawHeight": 276,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a63cb5c2-02ef-4b49-ae25-587867143fab",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1334,
"height": 92,
"platformSettings": {},
"subMetas": {
"wainscoting": {
"ver": "1.0.4",
"uuid": "429430f7-a25c-4f31-9eec-6e5bddf103e9",
"rawTextureUuid": "a63cb5c2-02ef-4b49-ae25-587867143fab",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1334,
"height": 152,
"rawWidth": 1334,
"rawHeight": 152,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "10f9c857-13d3-4761-b158-db6c198f41fc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 69,
"height": 68,
"platformSettings": {},
"subMetas": {
"own": {
"ver": "1.0.4",
"uuid": "5e070b22-0770-4c37-bee1-bf79a966bd66",
"rawTextureUuid": "10f9c857-13d3-4761-b158-db6c198f41fc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 69,
"height": 68,
"rawWidth": 69,
"rawHeight": 68,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "43cd003b-9333-4d98-9819-8258d98b8e5c",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b3b6ec8b-9851-448d-b42e-fed9ec66c63c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 530,
"height": 391,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "84432a63-54fa-47b6-a701-867d30ef0359",
"rawTextureUuid": "b3b6ec8b-9851-448d-b42e-fed9ec66c63c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 530,
"height": 391,
"rawWidth": 530,
"rawHeight": 391,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "07e24e33-c980-4a98-b0a8-66b1619ea6f2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 204,
"height": 158,
"platformSettings": {},
"subMetas": {
"border": {
"ver": "1.0.4",
"uuid": "fe2620df-9651-44b2-9928-7b0aba38b91c",
"rawTextureUuid": "07e24e33-c980-4a98-b0a8-66b1619ea6f2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 204,
"height": 158,
"rawWidth": 204,
"rawHeight": 158,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "26abe379-0790-4e1d-a56e-3dfb8c24aa28",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 61,
"height": 62,
"platformSettings": {},
"subMetas": {
"close": {
"ver": "1.0.4",
"uuid": "98f8df72-5d78-43c9-af9a-b377116f24fe",
"rawTextureUuid": "26abe379-0790-4e1d-a56e-3dfb8c24aa28",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 61,
"height": 62,
"rawWidth": 61,
"rawHeight": 62,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "069e61ab-f90d-4620-a883-7e4a23929dd8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 31,
"height": 24,
"platformSettings": {},
"subMetas": {
"current": {
"ver": "1.0.4",
"uuid": "c82f5fd5-48a4-4eb7-95d6-531c73a190ca",
"rawTextureUuid": "069e61ab-f90d-4620-a883-7e4a23929dd8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 31,
"height": 24,
"rawWidth": 31,
"rawHeight": 24,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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