init
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"ver": "1.0.27",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "8a879cda-e240-46b9-9c6d-c629ba79ea2d",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "8a879cda-e240-46b9-9c6d-c629ba79ea2d@6c48a",
|
||||
"displayName": "greta_default",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "clamp-to-edge",
|
||||
"wrapModeT": "clamp-to-edge",
|
||||
"imageUuidOrDatabaseUri": "8a879cda-e240-46b9-9c6d-c629ba79ea2d",
|
||||
"isUuid": true,
|
||||
"visible": false,
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "8a879cda-e240-46b9-9c6d-c629ba79ea2d@f9941",
|
||||
"displayName": "greta_default",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": -16,
|
||||
"offsetY": -15,
|
||||
"trimX": 35,
|
||||
"trimY": 30,
|
||||
"width": 823,
|
||||
"height": 1159,
|
||||
"rawWidth": 925,
|
||||
"rawHeight": 1189,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-411.5,
|
||||
-579.5,
|
||||
0,
|
||||
411.5,
|
||||
-579.5,
|
||||
0,
|
||||
-411.5,
|
||||
579.5,
|
||||
0,
|
||||
411.5,
|
||||
579.5,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
35,
|
||||
1159,
|
||||
858,
|
||||
1159,
|
||||
35,
|
||||
0,
|
||||
858,
|
||||
0
|
||||
],
|
||||
"nuv": [
|
||||
0.03783783783783784,
|
||||
0,
|
||||
0.9275675675675675,
|
||||
0,
|
||||
0.03783783783783784,
|
||||
0.9747687132043734,
|
||||
0.9275675675675675,
|
||||
0.9747687132043734
|
||||
],
|
||||
"minPos": [
|
||||
-411.5,
|
||||
-579.5,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
411.5,
|
||||
579.5,
|
||||
0
|
||||
]
|
||||
},
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "8a879cda-e240-46b9-9c6d-c629ba79ea2d@6c48a",
|
||||
"atlasUuid": ""
|
||||
},
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "sprite-frame",
|
||||
"hasAlpha": true,
|
||||
"fixAlphaTransparencyArtifacts": false,
|
||||
"redirect": "8a879cda-e240-46b9-9c6d-c629ba79ea2d@6c48a"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
import { _decorator, instantiate, Label, Node, Prefab, Sprite, tween, UIOpacity, UITransform } from 'cc';
|
||||
import { GButton } from '../../Main/Common/GButton';
|
||||
import Utils from '../../Main/Common/Utils';
|
||||
import { InnerMsgCode } from '../../Main/Config/InnerMsgCode';
|
||||
import li_BaseView from '../../Main/Common/li_BaseView';
|
||||
import GameManager from '../../Main/Manager/GameManager';
|
||||
import ResManager from '../../Main/Manager/ResManager';
|
||||
import { SDKManager } from '../../Main/Channel/SDKManager';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
//聊天记录界面
|
||||
@ccclass('Record_UI')
|
||||
export class Record_UI extends li_BaseView {
|
||||
|
||||
@property(Prefab)
|
||||
private talkNpcItem: Prefab = null;
|
||||
@property(Prefab)
|
||||
private talkUserItem: Prefab = null;
|
||||
|
||||
private _nodeTab: any = {};
|
||||
private _data;
|
||||
|
||||
private itemNodeList: any[] = [];
|
||||
|
||||
//----重写父类接口---------------------------------------
|
||||
onLoadCT() {
|
||||
this.registerListenner();
|
||||
Utils.parseNode(this.node, this._nodeTab)
|
||||
|
||||
}
|
||||
openUIDataCT(data: any): void {
|
||||
this._data = data
|
||||
}
|
||||
|
||||
|
||||
registerListenner() {
|
||||
// Utils.addInnerEL(InnerMsgCode.GM_UI_Close, this, this.resiveGMClose)
|
||||
}
|
||||
|
||||
|
||||
start() {
|
||||
GButton.BandClick(this._nodeTab.btnBack, ()=>{
|
||||
this.doClose();
|
||||
}, this);
|
||||
|
||||
let lvCfg = GameManager.getLevelCfg(GameManager.CurLevelId)
|
||||
//npc名字
|
||||
Utils.setString(this._nodeTab.npcName, lvCfg.name)
|
||||
|
||||
for (let i=0; i<GameManager.TalkRecordList.length; i++) {
|
||||
let info = GameManager.TalkRecordList[i];
|
||||
let titem = info.isMe ? this.talkUserItem : this.talkNpcItem;
|
||||
let itemClone:any = instantiate(titem);
|
||||
this._nodeTab.talkLay.addChild(itemClone);
|
||||
|
||||
Utils.parseNode(itemClone);
|
||||
//头像
|
||||
let spt = itemClone.headIcon.getComponent(Sprite)
|
||||
if (info.isMe) {
|
||||
SDKManager.getUserInfo((data) => {
|
||||
ResManager.I.changeRemoteSpriteFrame(spt, data.avatarUrl)
|
||||
})
|
||||
} else {
|
||||
let headPath = `head/${lvCfg.characterAvatar}`
|
||||
ResManager.I.changeBundleSpriteFrame(spt.getComponent(Sprite), headPath, "Raw")
|
||||
}
|
||||
//对话文本
|
||||
Utils.setString(itemClone.labTalk, info.talk)
|
||||
this.itemNodeList.push(itemClone);
|
||||
|
||||
//动作
|
||||
let kuangOpa:UIOpacity = itemClone.kuang.getComponent(UIOpacity)
|
||||
kuangOpa.opacity = 0;
|
||||
let tdelay = i * 0.05;
|
||||
tween(kuangOpa)
|
||||
.delay(0.1 + tdelay)
|
||||
.to(0.2, { opacity: 255 })
|
||||
.start();
|
||||
}
|
||||
|
||||
//延迟一下,设置文本换行模式
|
||||
this.scheduleOnce(()=>{
|
||||
for (let i=0; i<this.itemNodeList.length; i++) {
|
||||
let item = this.itemNodeList[i];
|
||||
let labTf:UITransform = item.labTalk.getComponent(UITransform);
|
||||
let lab:Label = item.labTalk.getComponent(Label);
|
||||
if (labTf.height < 50) { //小于50,说明没换行,改为自动宽度
|
||||
lab.overflow = Label.Overflow.NONE;
|
||||
} else {
|
||||
lab.overflow = Label.Overflow.RESIZE_HEIGHT;
|
||||
}
|
||||
}
|
||||
}, 0.1)
|
||||
|
||||
//延迟一下,调整文本框的宽度。高度由layout自动调整
|
||||
this.scheduleOnce(()=>{
|
||||
for (let i=0; i<this.itemNodeList.length; i++) {
|
||||
let item = this.itemNodeList[i];
|
||||
let labTf:UITransform = item.labTalk.getComponent(UITransform);
|
||||
let kuangTf:UITransform = item.kuang.getComponent(UITransform);
|
||||
kuangTf.width = labTf.width + 30;
|
||||
}
|
||||
}, 0.15)
|
||||
}
|
||||
|
||||
update(deltaTime: number) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"ver": "1.0.27",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "bdff880a-4202-4b45-8982-b38d80f61126",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "bdff880a-4202-4b45-8982-b38d80f61126@6c48a",
|
||||
"displayName": "lv_21",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "clamp-to-edge",
|
||||
"wrapModeT": "clamp-to-edge",
|
||||
"imageUuidOrDatabaseUri": "bdff880a-4202-4b45-8982-b38d80f61126",
|
||||
"isUuid": true,
|
||||
"visible": false,
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "bdff880a-4202-4b45-8982-b38d80f61126@f9941",
|
||||
"displayName": "lv_21",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": -0.5,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 2,
|
||||
"width": 63,
|
||||
"height": 60,
|
||||
"rawWidth": 64,
|
||||
"rawHeight": 64,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-31.5,
|
||||
-30,
|
||||
0,
|
||||
31.5,
|
||||
-30,
|
||||
0,
|
||||
-31.5,
|
||||
30,
|
||||
0,
|
||||
31.5,
|
||||
30,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
0,
|
||||
62,
|
||||
63,
|
||||
62,
|
||||
0,
|
||||
2,
|
||||
63,
|
||||
2
|
||||
],
|
||||
"nuv": [
|
||||
0,
|
||||
0.03125,
|
||||
0.984375,
|
||||
0.03125,
|
||||
0,
|
||||
0.96875,
|
||||
0.984375,
|
||||
0.96875
|
||||
],
|
||||
"minPos": [
|
||||
-31.5,
|
||||
-30,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
31.5,
|
||||
30,
|
||||
0
|
||||
]
|
||||
},
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "bdff880a-4202-4b45-8982-b38d80f61126@6c48a",
|
||||
"atlasUuid": ""
|
||||
},
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "sprite-frame",
|
||||
"hasAlpha": true,
|
||||
"fixAlphaTransparencyArtifacts": false,
|
||||
"redirect": "bdff880a-4202-4b45-8982-b38d80f61126@6c48a"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,357 @@
|
||||
import { randomRange, view } from "cc";
|
||||
import GlobalValue from "../Common/GlobalValue";
|
||||
import SubManager from "../../Sub/SubManager";
|
||||
import { I_SDK_UserInfo_Callback } from "./SDKManager";
|
||||
|
||||
//广告ID
|
||||
const wx_banner_ad_unit_id = 'test'
|
||||
const wx_splash_ad_unit_id = 'test'
|
||||
const wx_video_ad_unit_id = 'test'
|
||||
|
||||
export class KSSDK{
|
||||
|
||||
static g_InGameScene = null; //游戏场景值
|
||||
|
||||
private wx_video:any = null;
|
||||
private wx_splash:any = null;
|
||||
private wx_banner:any = null;
|
||||
private wx_video_callback:Function = null;
|
||||
private wx_video_tag:number = null;
|
||||
private wx_gameClub:any = null; //游戏圈按钮
|
||||
|
||||
private ShareSTime: any;
|
||||
private ShareCb: any; //分享回调
|
||||
private shareTxt = ["分享失败", "请分享到一个群", "请分享给一位好友", "分享过于频繁"]
|
||||
|
||||
//初始化
|
||||
init(cb: Function = null) {
|
||||
// 保持屏幕常亮
|
||||
// window['ks'].setKeepScreenOn({ keepScreenOn: true });
|
||||
|
||||
//获取小游戏冷启动时的参数 热启动参数通过 ks.onShow 接口获取。
|
||||
let launchOption = window['ks'].getLaunchOptionsSync();
|
||||
KSSDK.g_InGameScene = launchOption.from;
|
||||
console.log('init 快手 - 进入游戏的场景值', launchOption);
|
||||
|
||||
// //显示分享按钮
|
||||
// window['ks'].showShareMenu({
|
||||
// withShareTicket: true,
|
||||
// menus: ["shareAppMessage", "shareTimeline"],
|
||||
// });
|
||||
// window['ks'].onShareAppMessage(() => {
|
||||
// return this.shareInfo();
|
||||
// });
|
||||
// window['ks'].onShareTimeline(() => {
|
||||
// return this.shareInfo();
|
||||
// })
|
||||
|
||||
//小游戏回到前台
|
||||
window['ks'].onShow(this.onWxShow.bind(this));
|
||||
//小游戏被隐藏 记个时间
|
||||
window['ks'].onHide(() => {
|
||||
if (this.ShareCb) {
|
||||
this.ShareSTime = new Date().getTime();
|
||||
console.log("分享时间差 记录:", this.ShareSTime);
|
||||
}
|
||||
});
|
||||
|
||||
this.init_video(); //初始化视频广告
|
||||
this.init_splash(); //初始化插屏广告
|
||||
this.init_banner(); //初始化Banner广告 弹窗广告
|
||||
cb && cb();
|
||||
}
|
||||
|
||||
|
||||
//小游戏回到前台
|
||||
onWxShow(data: any) {
|
||||
console.log("快手 onShow回调:", data)
|
||||
if (data) {
|
||||
//启动小游戏时传入的参数 object
|
||||
if (data.query) {
|
||||
GlobalValue.ShareTocusid = data.query.ShareCode
|
||||
}
|
||||
//游戏启动场景 string
|
||||
if (data.from) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (this.ShareCb) {
|
||||
if (this.ShareSTime) {
|
||||
let nT = new Date().getTime();
|
||||
console.log("分享时间差 计算:",nT, this.ShareSTime);
|
||||
if (nT - this.ShareSTime > 1500) {
|
||||
let cb = this.ShareCb.succ
|
||||
cb && cb()
|
||||
} else {
|
||||
this.tostErr()
|
||||
}
|
||||
}
|
||||
this.ShareCb = null;
|
||||
}
|
||||
}
|
||||
//分享失败
|
||||
tostErr() {
|
||||
let rint = Math.floor( randomRange(0, this.shareTxt.length - 1) )
|
||||
SubManager.ShowPrompt(this.shareTxt[rint])
|
||||
if (this.ShareCb) {
|
||||
let cb = this.ShareCb.fail
|
||||
cb && cb()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**获取用户授权状态
|
||||
* @param autoKey string 授权类型 userInfo=用户信息,对应接口wx.getUserInfo
|
||||
*/
|
||||
checkAutoSetting(autoKey:string, cb:Function = null) {
|
||||
window['ks'].getSetting({
|
||||
success(res:any) {
|
||||
console.log("快手 - 检测权限状态 succ:", res)
|
||||
if (autoKey == "userInfo" && res.authSetting['scope.userInfo']) {
|
||||
cb && cb(true)
|
||||
} else {
|
||||
cb && cb(false)
|
||||
}
|
||||
},
|
||||
fail(res:any) {
|
||||
console.log("快手 - 检测权限状态 fail:", res)
|
||||
cb && cb(false)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取个人信息
|
||||
*/
|
||||
getUserInfo(cb:I_SDK_UserInfo_Callback = null) {
|
||||
var self = this;
|
||||
window['ks'].getSetting({
|
||||
success(res:any) {
|
||||
console.log("快手 - 获取授权信息成功:", res);
|
||||
let isScope = res.authSetting['scope.userInfo']
|
||||
if (isScope) {
|
||||
window['ks'].getUserInfo({
|
||||
success: (res2) => {
|
||||
console.log("快手 - 获取用户信息成功:", res2);
|
||||
cb && cb({avatarUrl:res2.userInfo.avatarUrl, nickName:res2.userInfo.nickName})
|
||||
},
|
||||
fail: (error) => {
|
||||
console.log("快手 - 获取用户信息失败:", error);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
//向用户发起授权请求
|
||||
window['ks'].authorize({
|
||||
scope: 'scope.userInfo',
|
||||
success: (res) => {
|
||||
console.log("快手 - 发起授权请求成功:", res);
|
||||
self.getUserInfo(cb)
|
||||
},
|
||||
fail: (error) => {
|
||||
console.log("快手 - 发起授权请求失败: ", error);
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
fail: (error) => {
|
||||
console.log("快手 - 获取授权信息失败: ", error);
|
||||
// cb && cb({avatarUrl:"", nickName:""})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//微信登录
|
||||
login(cb: Function = null) {
|
||||
window['ks'].login({
|
||||
success: (res) => {
|
||||
console.log('快手 - 登录成功', res.code);
|
||||
cb && cb({ platform:1, code: res.code });
|
||||
},
|
||||
fail(res: any) {
|
||||
console.log(`快手 login 调用失败`, res);
|
||||
cb && cb({ platform:1, code: null });
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
//初始化视频广告
|
||||
private init_video() {
|
||||
this.wx_video = window['ks'].createRewardedVideoAd({
|
||||
adUnitId: wx_video_ad_unit_id
|
||||
});
|
||||
this.wx_video.onError((err) => {
|
||||
console.log('onError event emit', err);
|
||||
});
|
||||
this.wx_video.onClose(res => {
|
||||
console.log('onClose event emit',res);
|
||||
// 用户点击了【关闭广告】按钮
|
||||
// 小于 2.1.0 的基础库版本,res 是一个 undefined
|
||||
if ((res && res.isEnded) || res === undefined) {
|
||||
// 正常播放结束,可以下发游戏奖励
|
||||
if (this.wx_video_callback) {
|
||||
this.wx_video_callback(this.wx_video_tag);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// 播放中途退出,不下发游戏奖励
|
||||
//wx_video_callback(-1);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//初始化插屏广告
|
||||
private init_splash() {
|
||||
// 创建插屏广告实例,提前初始化
|
||||
if (window['ks'].createInterstitialAd){
|
||||
this.wx_splash = window['ks'].createInterstitialAd({
|
||||
adUnitId: wx_splash_ad_unit_id
|
||||
});
|
||||
this.wx_splash.onError((err) => {
|
||||
console.log('splash onError event emit', err);
|
||||
});
|
||||
this.wx_splash.onClose(res => {
|
||||
console.log('splash onClose event emit', res);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//初始化Banner
|
||||
private init_banner() {
|
||||
|
||||
}
|
||||
|
||||
//显示视频广告
|
||||
show_video(callback:Function, tag:number) {
|
||||
if (wx_video_ad_unit_id == 'test') {
|
||||
console.log('未接入广告ID,视频广告请求直接返回');
|
||||
callback && callback();
|
||||
return;
|
||||
}
|
||||
if (this.wx_video) {
|
||||
this.wx_video_callback = callback;
|
||||
this.wx_video_tag = tag;
|
||||
let p = this.wx_video.show()
|
||||
p.then(function(result){
|
||||
// 激励视频展示成功
|
||||
console.log(`快手 show rewarded video ad success, result is ${result}`)
|
||||
}).catch(function(error){
|
||||
// 激励视频展示失败
|
||||
console.log(`快手 show rewarded video ad failed, error is ${error}`)
|
||||
})
|
||||
|
||||
// this.wx_video.load()
|
||||
// .then(() => {
|
||||
// this.wx_video.show()
|
||||
// .catch(err => {
|
||||
// this.wx_video.load()
|
||||
// .then(() => this.wx_video.show())
|
||||
// })
|
||||
// })
|
||||
}
|
||||
}
|
||||
|
||||
//显示插屏
|
||||
show_splash() {
|
||||
|
||||
if (this.wx_splash) {
|
||||
let p = this.wx_splash.show()
|
||||
p.then(function(result){
|
||||
// 插屏广告展示成功
|
||||
console.log(`快手 show interstitial ad success, result is ${result}`)
|
||||
}).catch(function(error){
|
||||
// 插屏广告展示失败
|
||||
console.log(`快手 show interstitial ad failed, error is ${error}`)
|
||||
if (error.code === -10005) {
|
||||
// 表明当前app版本不支持插屏广告,可以提醒用户升级app版本
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//显示Banner
|
||||
show_banner() {
|
||||
if (this.wx_banner) {
|
||||
this.wx_banner.show(); //banner 默认隐藏(hide) 要打开
|
||||
}
|
||||
}
|
||||
|
||||
//隐藏Banner
|
||||
hide_banner() {
|
||||
if (this.wx_banner) {
|
||||
this.wx_banner.hide(); //banner 默认隐藏(hide) 要打开
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//分享信息
|
||||
shareInfo() {
|
||||
return {
|
||||
templateId: undefined, //分享模版id,不传走默认分享文案
|
||||
//查询字符串,从这条转发消息进入后,可通过 ks.getLaunchOptionsSync() 或 ks.onShow() 获取启动参数中的 query。必须是 key1=val1&key2=val2 的格式。
|
||||
query: "ShareCode=" + "user_default", //ModelPlayer.I.getPlayerId(),
|
||||
}
|
||||
}
|
||||
//主动拉起分享
|
||||
show_share(rewardCB?:Function) {
|
||||
console.log("主动拉起分享");
|
||||
let info:any = this.shareInfo();
|
||||
info.succ = rewardCB;
|
||||
info.success = null;
|
||||
info.fail = null;
|
||||
this.ShareCb = info;
|
||||
window['ks'].shareAppMessage(info);
|
||||
}
|
||||
|
||||
//获取设备分辨率
|
||||
getWindowSize() {
|
||||
let windowinfo = window['ks'].getSystemInfoSync();
|
||||
return {width:windowinfo.screenWidth, height: windowinfo.screenHeight};
|
||||
}
|
||||
|
||||
//显示游戏圈
|
||||
show_gameClub(leftRatio, topRatio, widthRatio, heightRatio) {
|
||||
if (true) {
|
||||
console.log("显示游戏圈,快手暂不支持");
|
||||
return
|
||||
}
|
||||
// if (this.wx_gameClub) {
|
||||
// this.wx_gameClub.show();
|
||||
// }else {
|
||||
// let windowinfo = window['ks'].getSystemInfoSync();
|
||||
// let x = windowinfo.screenWidth * leftRatio;
|
||||
// let y = windowinfo.screenHeight * topRatio;
|
||||
// let w = windowinfo.screenWidth * widthRatio; //按钮宽高
|
||||
// let h = windowinfo.screenHeight * heightRatio;
|
||||
|
||||
// console.log("游戏圈按钮配置:", windowinfo, leftRatio, topRatio, widthRatio, heightRatio, x, y, w, h);
|
||||
// this.wx_gameClub = window['ks'].createGameClubButton({
|
||||
// type: 'string',
|
||||
// text: '',
|
||||
// // type: 'image',
|
||||
// icon: 'green',
|
||||
// style: {
|
||||
// left: x, //这个坐标对应UI上的按钮时,按钮要勾选适配
|
||||
// top: y,
|
||||
// width: w,
|
||||
// height: h,
|
||||
// },
|
||||
// })
|
||||
// }
|
||||
}
|
||||
//隐藏游戏圈
|
||||
hide_gameClub() {
|
||||
console.log("隐藏游戏圈");
|
||||
if (this.wx_gameClub) {
|
||||
this.wx_gameClub.hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"ver": "1.0.27",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "984b5a06-3152-4234-8900-162d28355b49",
|
||||
"files": [
|
||||
".jpg",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "984b5a06-3152-4234-8900-162d28355b49@6c48a",
|
||||
"displayName": "joy_1_cg",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "clamp-to-edge",
|
||||
"wrapModeT": "clamp-to-edge",
|
||||
"imageUuidOrDatabaseUri": "984b5a06-3152-4234-8900-162d28355b49",
|
||||
"isUuid": true,
|
||||
"visible": false,
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "984b5a06-3152-4234-8900-162d28355b49@f9941",
|
||||
"displayName": "joy_1_cg",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 996,
|
||||
"height": 1280,
|
||||
"rawWidth": 996,
|
||||
"rawHeight": 1280,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-498,
|
||||
-640,
|
||||
0,
|
||||
498,
|
||||
-640,
|
||||
0,
|
||||
-498,
|
||||
640,
|
||||
0,
|
||||
498,
|
||||
640,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
0,
|
||||
1280,
|
||||
996,
|
||||
1280,
|
||||
0,
|
||||
0,
|
||||
996,
|
||||
0
|
||||
],
|
||||
"nuv": [
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"minPos": [
|
||||
-498,
|
||||
-640,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
498,
|
||||
640,
|
||||
0
|
||||
]
|
||||
},
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "984b5a06-3152-4234-8900-162d28355b49@6c48a",
|
||||
"atlasUuid": ""
|
||||
},
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "sprite-frame",
|
||||
"hasAlpha": false,
|
||||
"fixAlphaTransparencyArtifacts": false,
|
||||
"redirect": "984b5a06-3152-4234-8900-162d28355b49@6c48a"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,675 @@
|
||||
{
|
||||
"gizmos-infos": {
|
||||
"is2D": true,
|
||||
"is3DIcon": false,
|
||||
"iconSize": 2,
|
||||
"gridVisible": true,
|
||||
"gridColor": [
|
||||
166,
|
||||
166,
|
||||
166,
|
||||
255
|
||||
],
|
||||
"transformToolName": "position",
|
||||
"pivot": "pivot",
|
||||
"coordinate": "local",
|
||||
"toolsVisibility3d": true
|
||||
},
|
||||
"__version__": "1.0.1",
|
||||
"builder": {
|
||||
"taskOptionsMap": {},
|
||||
"__version__": "1.3.8"
|
||||
},
|
||||
"snap-configs": {
|
||||
"position": {
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"rotation": 1,
|
||||
"scale": 1,
|
||||
"isPositionSnapEnabled": false,
|
||||
"isRotationSnapEnabled": false,
|
||||
"isScaleSnapEnabled": false
|
||||
},
|
||||
"rect-snap-configs": {
|
||||
"enableSnapping": true,
|
||||
"snapThreshold": 4
|
||||
},
|
||||
"float-window": {
|
||||
"position": {
|
||||
"cc": {
|
||||
"Camera": {
|
||||
"dock": false,
|
||||
"top": null,
|
||||
"bottom": 10,
|
||||
"left": null,
|
||||
"right": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"camera-infos": {
|
||||
"1fcc05e5-18d9-4302-b271-815963b8fb27": {
|
||||
"position": {
|
||||
"x": 640,
|
||||
"y": 360,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": 1.0373478206705766e-13,
|
||||
"y": -74.33133732534921,
|
||||
"width": 701.4000000000001,
|
||||
"height": 394.5375
|
||||
},
|
||||
"scale": 0.5479687500000001
|
||||
},
|
||||
"1a23cd3e-e487-4fd1-a415-346c2087464d": {
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": 640,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.371875
|
||||
},
|
||||
"1af15364-46a2-4eda-bfa1-afbc13cef7ed": {
|
||||
"position": {
|
||||
"x": 289.5058092012657,
|
||||
"y": 678.8326237675253,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -135.65154891336527,
|
||||
"y": -77.00267954737429,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.3148834130348147
|
||||
},
|
||||
"489b9fd0-6648-471e-9b73-f35de51e18ec": {
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": 640,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -583.0588235294117,
|
||||
"y": 0,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.371875
|
||||
},
|
||||
"5eb8006b-fdb2-438f-824b-0e81c4ae7075": {
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": 640,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -583.0588235294117,
|
||||
"y": 0,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.371875
|
||||
},
|
||||
"72516604-5e3c-4512-8eef-b189f45fda7c": {
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": 640,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -583.0588235294117,
|
||||
"y": 0,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.371875
|
||||
},
|
||||
"e111b312-e977-4ce9-ad81-fd2ddbc9e9f2": {
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": 640,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -583.0588235294117,
|
||||
"y": 0,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.371875
|
||||
},
|
||||
"54bfe600-9105-42b7-8725-fbd33f2cbfaa": {
|
||||
"position": {
|
||||
"x": 455.14362358229334,
|
||||
"y": 637.7356352547936,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": 364.39170805057717,
|
||||
"y": 540.1952670400128,
|
||||
"width": 442.8721419010482,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 2.440015394199985
|
||||
},
|
||||
"3f3cae27-d5a5-46ac-a56d-76a3d342ad7c": {
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": 640,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -583.0588235294117,
|
||||
"y": 0,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.371875
|
||||
},
|
||||
"9e3f36d6-1357-4d20-9915-71f4d2bac4d6": {
|
||||
"position": {
|
||||
"x": 550.6749823218985,
|
||||
"y": 278.4282055817483,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": 88.64165919925301,
|
||||
"y": 214.8344523575063,
|
||||
"width": 701.4000000000001,
|
||||
"height": 96.5399166666667
|
||||
},
|
||||
"scale": 0.7590361613526038
|
||||
},
|
||||
"04f18f73-2683-4458-bcdb-0f050f757f42": {
|
||||
"position": {
|
||||
"x": 582.5748502994012,
|
||||
"y": 395.6886227544911,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": 222.5748502994012,
|
||||
"y": 346.13862275449105,
|
||||
"width": 701.4000000000001,
|
||||
"height": 96.5399166666667
|
||||
},
|
||||
"scale": 0.9741666666666668
|
||||
},
|
||||
"022d7be0-2614-43b7-b842-16a35156d49f": {
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": 640,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.371875
|
||||
},
|
||||
"705cdc09-3fba-4d9d-aa9a-f9d3ae8314e5": {
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": 640,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -583.0588235294117,
|
||||
"y": 0,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.371875
|
||||
},
|
||||
"8bc7d597-38f6-4755-8e62-94553fade1a1": {
|
||||
"position": {
|
||||
"x": 293.81696993091094,
|
||||
"y": 643.7949664167054,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": 108.75648113281885,
|
||||
"y": 314.7985418867639,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.7234121171378869
|
||||
},
|
||||
"bbeb7b56-8ef0-46fe-98c6-47050bc1016d": {
|
||||
"position": {
|
||||
"x": 156.73268319982276,
|
||||
"y": 676.5373324527782,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -13.557693210784574,
|
||||
"y": 373.79888550058723,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.7861571676675261
|
||||
},
|
||||
"d5244228-33d7-4283-92f7-404f0ac0c4ff": {
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": 640,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.371875
|
||||
},
|
||||
"db827e15-1acd-4bd6-ba11-7c97f1b1ef0b": {
|
||||
"position": {
|
||||
"x": 156.02863308204883,
|
||||
"y": 724.5633142001748,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -235.19591742733584,
|
||||
"y": 29.053002183490925,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.3421947825761221
|
||||
},
|
||||
"21f192c8-c0d9-4f88-8559-8867160aaac9": {
|
||||
"position": {
|
||||
"x": 260.43692655799316,
|
||||
"y": 602.464867279982,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -20.06232211978917,
|
||||
"y": 103.79953629725797,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.47727400565620115
|
||||
},
|
||||
"5a84048d-d377-4f41-9e8d-8acf18c0dfa7": {
|
||||
"position": {
|
||||
"x": 99.13899076873895,
|
||||
"y": 694.3980422980328,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -181.3602579090416,
|
||||
"y": 195.73271131531186,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.47727400565620404
|
||||
},
|
||||
"d849ab34-cd64-4950-b151-bf4d9b9fb04d": {
|
||||
"position": {
|
||||
"x": 459.441653635389,
|
||||
"y": 1006.5012260181334,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": 274.381164837295,
|
||||
"y": 677.5048014881884,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.7234121171378792
|
||||
},
|
||||
"32268268-3574-4aed-bf34-19e36d1dd8e9": {
|
||||
"position": {
|
||||
"x": 448.6688078248885,
|
||||
"y": 966.7969265328356,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.371875
|
||||
},
|
||||
"16b0d021-6436-4bbc-ba5e-05ebe3e84ba4": {
|
||||
"position": {
|
||||
"x": 19.333758569750216,
|
||||
"y": 613.060545650809,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -297.7716535986653,
|
||||
"y": 454.5078395666013,
|
||||
"width": 210,
|
||||
"height": 105
|
||||
},
|
||||
"scale": 0.33112017635395724
|
||||
},
|
||||
"5de6e399-8fdd-4be1-91fa-38439f59cc9b": {
|
||||
"position": {
|
||||
"x": 415.6910962353106,
|
||||
"y": 698.2726145557035,
|
||||
"z": 5000
|
||||
},
|
||||
"rotation": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"viewCenter": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"contentRect": {
|
||||
"x": -9.466261879324842,
|
||||
"y": -57.56268875920416,
|
||||
"width": 267.75,
|
||||
"height": 476
|
||||
},
|
||||
"scale": 0.3148834130348114
|
||||
}
|
||||
},
|
||||
"camera-uuids": [
|
||||
"1fcc05e5-18d9-4302-b271-815963b8fb27",
|
||||
"1a23cd3e-e487-4fd1-a415-346c2087464d",
|
||||
"1af15364-46a2-4eda-bfa1-afbc13cef7ed",
|
||||
"489b9fd0-6648-471e-9b73-f35de51e18ec",
|
||||
"5eb8006b-fdb2-438f-824b-0e81c4ae7075",
|
||||
"72516604-5e3c-4512-8eef-b189f45fda7c",
|
||||
"e111b312-e977-4ce9-ad81-fd2ddbc9e9f2",
|
||||
"54bfe600-9105-42b7-8725-fbd33f2cbfaa",
|
||||
"3f3cae27-d5a5-46ac-a56d-76a3d342ad7c",
|
||||
"9e3f36d6-1357-4d20-9915-71f4d2bac4d6",
|
||||
"04f18f73-2683-4458-bcdb-0f050f757f42",
|
||||
"022d7be0-2614-43b7-b842-16a35156d49f",
|
||||
"705cdc09-3fba-4d9d-aa9a-f9d3ae8314e5",
|
||||
"8bc7d597-38f6-4755-8e62-94553fade1a1",
|
||||
"bbeb7b56-8ef0-46fe-98c6-47050bc1016d",
|
||||
"d5244228-33d7-4283-92f7-404f0ac0c4ff",
|
||||
"db827e15-1acd-4bd6-ba11-7c97f1b1ef0b",
|
||||
"21f192c8-c0d9-4f88-8559-8867160aaac9",
|
||||
"5a84048d-d377-4f41-9e8d-8acf18c0dfa7",
|
||||
"d849ab34-cd64-4950-b151-bf4d9b9fb04d",
|
||||
"32268268-3574-4aed-bf34-19e36d1dd8e9",
|
||||
"16b0d021-6436-4bbc-ba5e-05ebe3e84ba4",
|
||||
"5de6e399-8fdd-4be1-91fa-38439f59cc9b"
|
||||
],
|
||||
"camera": {
|
||||
"color": [
|
||||
48,
|
||||
48,
|
||||
48,
|
||||
255
|
||||
],
|
||||
"fov": 45,
|
||||
"far": 10000,
|
||||
"near": 0.01,
|
||||
"wheelSpeed": 0.01,
|
||||
"wanderSpeed": 10,
|
||||
"enableAcceleration": true,
|
||||
"size": "__default_design__",
|
||||
"far2D": 10000,
|
||||
"near2D": 1,
|
||||
"wheelSpeed2D": 6,
|
||||
"iso": 0,
|
||||
"aperture": 19,
|
||||
"shutter": 7
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"ver": "1.0.27",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "8af3ccfa-295b-430f-a866-653d0e948f6c",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "8af3ccfa-295b-430f-a866-653d0e948f6c@6c48a",
|
||||
"displayName": "mengxia_laugh",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "clamp-to-edge",
|
||||
"wrapModeT": "clamp-to-edge",
|
||||
"imageUuidOrDatabaseUri": "8af3ccfa-295b-430f-a866-653d0e948f6c",
|
||||
"isUuid": true,
|
||||
"visible": false,
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "8af3ccfa-295b-430f-a866-653d0e948f6c@f9941",
|
||||
"displayName": "mengxia_laugh",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimType": "none",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 925,
|
||||
"height": 1189,
|
||||
"rawWidth": 925,
|
||||
"rawHeight": 1189,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-462.5,
|
||||
-594.5,
|
||||
0,
|
||||
462.5,
|
||||
-594.5,
|
||||
0,
|
||||
-462.5,
|
||||
594.5,
|
||||
0,
|
||||
462.5,
|
||||
594.5,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
0,
|
||||
1189,
|
||||
925,
|
||||
1189,
|
||||
0,
|
||||
0,
|
||||
925,
|
||||
0
|
||||
],
|
||||
"nuv": [
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"minPos": [
|
||||
-462.5,
|
||||
-594.5,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
462.5,
|
||||
594.5,
|
||||
0
|
||||
]
|
||||
},
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "8af3ccfa-295b-430f-a866-653d0e948f6c@6c48a",
|
||||
"atlasUuid": ""
|
||||
},
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "sprite-frame",
|
||||
"hasAlpha": true,
|
||||
"fixAlphaTransparencyArtifacts": false,
|
||||
"redirect": "8af3ccfa-295b-430f-a866-653d0e948f6c@6c48a"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 297 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 837 KiB |
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"ver": "1.0.27",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "d0968ebe-060a-4a6e-b74f-e1f6444bb11e",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "d0968ebe-060a-4a6e-b74f-e1f6444bb11e@6c48a",
|
||||
"displayName": "orion_stage_icon",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "clamp-to-edge",
|
||||
"wrapModeT": "clamp-to-edge",
|
||||
"imageUuidOrDatabaseUri": "d0968ebe-060a-4a6e-b74f-e1f6444bb11e",
|
||||
"isUuid": true,
|
||||
"visible": false,
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "d0968ebe-060a-4a6e-b74f-e1f6444bb11e@f9941",
|
||||
"displayName": "orion_stage_icon",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 174,
|
||||
"height": 174,
|
||||
"rawWidth": 174,
|
||||
"rawHeight": 174,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-87,
|
||||
-87,
|
||||
0,
|
||||
87,
|
||||
-87,
|
||||
0,
|
||||
-87,
|
||||
87,
|
||||
0,
|
||||
87,
|
||||
87,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
0,
|
||||
174,
|
||||
174,
|
||||
174,
|
||||
0,
|
||||
0,
|
||||
174,
|
||||
0
|
||||
],
|
||||
"nuv": [
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"minPos": [
|
||||
-87,
|
||||
-87,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
87,
|
||||
87,
|
||||
0
|
||||
]
|
||||
},
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "d0968ebe-060a-4a6e-b74f-e1f6444bb11e@6c48a",
|
||||
"atlasUuid": ""
|
||||
},
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "sprite-frame",
|
||||
"hasAlpha": true,
|
||||
"fixAlphaTransparencyArtifacts": false,
|
||||
"redirect": "d0968ebe-060a-4a6e-b74f-e1f6444bb11e@6c48a"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user