Commit 6dae2e0f 6dae2e0f163187accda208ec3ce1a3618167eba0 by jinwawa

complete SceneRecommend

0 parents
Showing 112 changed files with 2888 additions and 0 deletions
#/////////////////////////////////////////////////////////////////////////////
# Fireball Projects
#/////////////////////////////////////////////////////////////////////////////
/library/
/temp/
/local/
/build/
#/////////////////////////////////////////////////////////////////////////////
# npm files
#/////////////////////////////////////////////////////////////////////////////
npm-debug.log
node_modules/
#/////////////////////////////////////////////////////////////////////////////
# Logs and databases
#/////////////////////////////////////////////////////////////////////////////
*.log
*.sql
*.sqlite
#/////////////////////////////////////////////////////////////////////////////
# files for debugger
#/////////////////////////////////////////////////////////////////////////////
*.sln
*.csproj
*.pidb
*.unityproj
*.suo
#/////////////////////////////////////////////////////////////////////////////
# OS generated files
#/////////////////////////////////////////////////////////////////////////////
.DS_Store
ehthumbs.db
Thumbs.db
#/////////////////////////////////////////////////////////////////////////////
# WebStorm files
#/////////////////////////////////////////////////////////////////////////////
.idea/
#//////////////////////////
# VS Code files
#//////////////////////////
.vscode/
# hello-world
Hello world new project template.
{
"ver": "1.0.1",
"uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7",
"isGroup": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.2.0",
"uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934",
"isGroup": false,
"subMetas": {}
}
\ No newline at end of file
cc.Class({
extends: cc.Layout,
properties: {
},
_doLayoutDirty: function () {
this._layoutDirty = true;
//-----------------------------------------------
var children = this.node.children;
for (var i = 0; i < children.length; ++i) {
var child = children[i];
child.zIndex=10;
}
//-----------------------------------------------
},
});
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "e24450be-ee0f-4078-8526-2d1821a7bc96",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "bb57216f-4ed7-4f39-ac79-58d24574a43b",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "280c3aec-6492-4a9d-9f51-a9b00b570b4a",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
//模拟动态数据
cc.Class({
extends: cc.Component,
statics: {
layout4Page: {
id: 121,//每个页面对应一个pageId,后台创建下发生成
name: "首页",//page layout名称
code: "eb954b1e-712e-415c-ba27-ddcf60f64adf",//每个页面对应一个pageCode,后台创建生成
layout: "absolute",//页面整理布局,非必填字段
children: [
{
"name": "Navigator",/* 左侧导航 */
"layout": "vertical",//浮动式垂直布局
"position": [44, 98],//框架的起始坐标
"childrenSize": [166, 94],//子元素尺寸
"childrenMargin": [0, 0, 3, 0],//子元素边距
"dataContainer": "promotion_list",//列表名称
"data": {/* 对于数据比较少的采取这种方式或者本地数据 */
"name": "Navigator",
"resultSet": [
{
"name": "recommend",//项名称 填写比较规范
"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_recommend.json"}}]}',//项动作
"type": "promotion_item",//项类型 非必填
"imageURL": "image/navigator/recommend.png",//项图片路径
"top": 120,
"left": 100,
},
{
"name": "three2six",
"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_three2six.json"}}]}',
"type": "promotion_item",
"imageURL": "image/navigator/three2six.png",
"top": 240,
"left": 100,
},
{
"name": "primarySchool",
"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_primarySchool.json"}}]}',
"type": "promotion_item",
"imageURL": "image/navigator/primary.png",
"top": 360,
"left": 100,
},
{
"name": "course",
"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_course.json"}}]}',
"type": "promotion_item",
"imageURL": "image/navigator/course.png",
"top": 480,
"left": 100,
},
{
"name": "parent",
"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_parent.json"}}]}',
"type": "promotion_item",
"imageURL": "image/navigator/parent.png",
"top": 600,
"left": 100,
}
]
},
// "dataSrc" : "layout/navigator.json",
"dataTmpl": "tmplNavigator",//数据渲染jsrender模板
"cellName": "navigator_list_cell"//渲染元素class和id前缀
},
{
"name": "Additional",/* 我的、搜索、历史 - 在右上角 */
"layout": "absolute",//绝对布局
"position": [0, 0],//框架的起点坐标
"focusstatus": 2,//列表元素焦点状态位,默认是0
"dataContainer": "addition_list",//列表容器id
"data": {//数据列表
"name": "Addition",//模块名称
"resultSet": [
{
"name": "我的",
"left": 822,
"top": 19,
"width": 137,
"height": 65,
"tvlink": "{click: [{action: 'changeUI',parameters: {uiName: 'collection'}}]}",
"type" : "promotion_item",
"imageURL": "image/addition/my.png"
},
{
"name": "历史",
"left": 965,
"top": 19,
"width": 137,
"height": 65,
"tvlink": "{click: [{action: 'changeUI',parameters: {uiName: 'history'}}]}",
"type" : "promotion_item",
"imageURL": "image/addition/history.png"
},
{
"name": "搜索",
"left": 1108,
"top": 19,
"width": 137,
"height": 65,
"tvlink": "{click: [{action: 'changeUI',parameters: {uiName: 'search'}}]}",
"type" : "promotion_item",
"imageURL": "image/addition/search.png"
}
]
},
//"dataSrc" : "layout/addition.json",
"dataTmpl": "tmplAddition",
"cellName": "addition_list_cell"
},
{
"name": "WaterFall",/* 右侧瀑布流 */
"layout": "abosolute",
"position": [207, 78],
"width": 1100,//框架宽度
"height": 642,//框架高度
"extraClass": "move_transition",
"dataContainer": "waterfall_list_wrapper",
"data": {
"name": "WaterFallList",
"resultSet": [
{
"name": "WaterFallList",
"layout": "absolute",
"position": [20, 20],//这里是根据上下文拿
"disable": true,//是否是焦点控件
"containerId": "waterfall_list",//个性化元素id
"dataContainer": "waterfall_list",
"hasChildFrame": true,//是否有子框架
"frozen": true,//是否冻结获得的框架数据,在后续适当时机再解除冻结,继续渲染框架和数据 true 冻结 false 不冻结
"data": [],
"dataSrc": "layout/waterfall_recommend.json",//在没有data的情况下,dataSrc生效,并且成为请求数据路径的参考,是否要在远程服务器地址,视页面情况而定
"dataTmpl": "tmplPromotionGroup",//渲染jsrender模板
"cellName": "group_list",//同上
"childLayout": "absolute",//子元素布局,子元素框架可继承父元素框架
"childDataTmpl": "tmplPromotionGroupCell",//子元素渲染的jsrender模板
"childFramePath": "layout/recommend/"//子元素渲染框架路径
}
]
},
"dataTmpl": "tmplPromotionGroupCell2",//jsrender渲染模板
"cellName": "waterfall_list"//同上
}
]
},
}
});
{
"ver": "1.0.5",
"uuid": "ad5a92b2-a39c-4f97-bc28-be933f018df5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "61ec49b6-05b5-4ed9-a3d4-e5a49ec26335",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}
\ No newline at end of file
cc.Class({
extends: cc.Component,
properties: {
//键值由具体场景决定
_aSceneContext:{default:[]},
/*
{
categoryId:123,
history:[]
}
/*/
_aSceneParameter:{default:[]},
_bBackStatus:false,
_iDefaultCollectionId:-1,
_iTotalFrames:0,
},
// use this for initialization
onLoad: function () {
this._aSceneContext=[];
this._aSceneParameter=[];
},
getSceneContext:function(){
return this._aSceneContext;
},
popSceneContext:function(){
return this._aSceneContext.pop();
},
getTopSceneContext:function(){
return this._aSceneContext[this._aSceneContext.length-1];
},
setSceneContext:function(aSceneContext){
this._aSceneContext=aSceneContext;
},
getSceneParameter:function(){
return this._aSceneParameter;
},
popSceneParameter:function(){
return this._aSceneParameter.pop();
},
getTopSceneParameter:function(){
return this._aSceneParameter[this._aSceneParameter.length-1];
},
setSceneParameter:function(aSceneParameter){
this._aSceneParameter=aSceneParameter;
},
getBackStatus:function(){
return this._bBackStatus;
},
setBackStatus:function(bBackStatus){
this._bBackStatus=bBackStatus;
},
getDefaultCollectionId:function(){
return this._iDefaultCollectionId;
},
setDefaultCollectionId:function(iCollectionId){
this._iDefaultCollectionId=iCollectionId;
},
setTotalFrames:function(iFrames){
this._iTotalFrames=iFrames;
},
getTotalFrames:function(){
return this._iTotalFrames;
}
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});
{
"ver": "1.0.5",
"uuid": "9e3446c8-49f7-4eeb-8b1d-eb7f6c0e2fd8",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
//公用参数
cc.Class({
extends: cc.Component,
statics: {
CARTOON_SPECIAL: '0',
//各应用基础分类
SONG_CATEGORY:"20",
ENHLISH_CATEGORY:"34",
STORY_CATEGORY:"43",
SCIENCE_CATEGORY:"46",
EDUCATION_CATEGORY:"35",
CLASSICAL_CATEGORY:"32",
ART_CATEGORY:"65",
//各应用appId
SONG_APPID:"td9c60ab5ba1f3c44c",
ENHLISH_APPID:"tdde7add064d218a84",
STORY_APPID:"td16283e54e262f207",
SCIENCE_APPID:"td9eeab808e4d1a4b7",
EDUCATION_APPID:"td8765403b3f38d1a8",
CLASSICAL_APPID:"td7a74235419ac55ee",
ART_APPID:"tdd72ee5abf9a38754",
CARTOON_APPID:"tda7e47f868313d9f5",
//各应用免费分类id
SONG_FREE_CID:"143",
ENGLISH_FREE_CID:"149",
STORY_FREE_CID:"152",
SCIENCE_FREE_CID:"158",
EDUCATION_FREE_CID:"155",
CLASSICAL_FREE_CID:"146",
ART_FREE_CID:"161",
},
});
{
"ver": "1.0.5",
"uuid": "764bc77a-675b-4ee3-8a09-865c957071d7",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
//修改Network,解决闪屏问题
var Network = require('Network');
cc.Class({
extends: Network,
properties: {
},
// use this for initialization
onLoad: function () {
},
statics: {
//_count: 0,
/*
var txt = document.getElementById('txt');
//1.创建XMLHttpRequest对象
var xhr = null;
if(window.XMLHttpRequest) {
xhr = new XMLHttpRequest();
}else {
xhr = new ActiveXObject('Microsoft.XMLHTTP');
}
//2.打开与服务器的链接
xhr.open('get',url,false);
//3.发送给服务器
xhr.send(null);
//4.响应就绪(同步请求)
var json = JSON.parse(xhr.responseText);
txt.innerHTML = json;
cc.log('其他程序');
*/
//ajax请求函数
ajax: function (strMethod, strURL, astrContentType, oDataOrPostBody, onSuccess, onError, oScope, oAdditionalData) {
var xlr = null;
var oResult = {};
if (window.XMLHttpRequest) {// code for IE7, Firefox, Opera, etc.
xlr = new XMLHttpRequest(); //Log.info('XMLHttpRequest');
} else if (window.ActiveXObject) {// code for IE6, IE5
xlr = new ActiveXObject("Microsoft.XMLHTTP"); //Log.info('ActiveXObject');
}
if (!xlr) {
cc.log("Your browser does not support XMLHTTP, using iframe instead..");
//退化到使用iframe 在cocos中无用 //这里两个函数名需要字符串输入
//iframeRequest(strMethod, strURL, astrContentType, oDataOrPostBody, onSuccess, onError, oAdditionalData)
return;
}
function onStateChange() {
if (xlr.readyState == 4) {// 4 = "loaded"
if (xlr.status == 200) {// 200 = OK
if (null != oScope) {
onSuccess.call(oScope, xlr.responseText, oAdditionalData);
} else {
onSuccess(xlr.responseText, oAdditionalData);
}
} else {
if (null != oScope) {
onError.call(oScope, xlr.responseText, oAdditionalData);
} else {
onError(xlr.responseText, oAdditionalData);
}
}
xlr = null;
}
}
strMethod = strMethod.toUpperCase();
var strDataOrPostBody = '';
if (strMethod == "GET") {
//以下这段可使用正则表达式改造
if (oDataOrPostBody) {
if (strURL.indexOf('?') > 0) { //有问号
if (strURL.indexOf('=') > strURL.indexOf('?') //并且有等号在问号右边
&& strURL.lastIndexOf('&') != strURL.length - 1) //最后一个不是&
{
strURL = strURL.concat('&');
} else { //光有问号没等号
cc.log('Unavailable Request URL!');
return;
}
} else {//没问号
strURL = strURL.concat('?');
}
if (typeof oDataOrPostBody == "string") {
strDataOrPostBody = oDataOrPostBody;
} else if (oDataOrPostBody instanceof Object) {
for (var key in oDataOrPostBody) {
strDataOrPostBody = strDataOrPostBody.concat(key).concat('=').concat(oDataOrPostBody[key]).concat('&');
}
strDataOrPostBody = strDataOrPostBody.substring(0, strDataOrPostBody.length - 1);
//strDataOrPostBody.TrimEnd('&');
} else {
cc.log('Unavailable Parameters!');
return;
}
}
strURL = strURL.concat(strDataOrPostBody);
}
xlr.onreadystatechange = onStateChange;
xlr.open(strMethod, strURL, true);
var isWWWFormURLEncoded = false;
if (astrContentType) {
for (var i = 0; i < astrContentType.length; i++) {
xlr.setRequestHeader('Content-type', astrContentType[i]);
if (astrContentType[i] == 'application/x-www-form-urlencoded') {
isWWWFormURLEncoded = true;
break;
}
}
}
//xlr.setRequestHeader('Connection', 'close');
switch (strMethod) {
case 'GET':
xlr.send(null);
break;
case 'POST':
if (isWWWFormURLEncoded) {
}
if (oDataOrPostBody) {
/*
if (isWWWFormURLEncoded) {
var fd=new FormData();
if (typeof oDataOrPostBody == "string") {
strDataOrPostBody = oDataOrPostBody;
var aParameters1=oDataOrPostBody.split('&');
for (var i=0;i<aParameters1.length;i++){
var aPairs1=aParameters1.split('=');
if (aPairs1[0] && aPairs1[1]){
fd.append(aPairs1[0],aPairs1[1]);
}
}
} else if (oDataOrPostBody instanceof Object) {
for (var key in oDataOrPostBody) {
fd.append(key,oDataOrPostBody[key]);
}
//strDataOrPostBody.TrimEnd('&');
//strDataOrPostBody = strDataOrPostBody.substring(0, strDataOrPostBody.length - 1);
} else {
console.log("Unavailable Parameters!");
return
}
xlr.send(fd);
}else{*/
if (typeof oDataOrPostBody == "string") {
strDataOrPostBody = oDataOrPostBody;
} else if (oDataOrPostBody instanceof Object) {
for (var key in oDataOrPostBody) {
strDataOrPostBody = strDataOrPostBody.concat(key).concat('=').concat(oDataOrPostBody[key]).concat('&');
}
//strDataOrPostBody.TrimEnd('&');
strDataOrPostBody = strDataOrPostBody.substring(0, strDataOrPostBody.length - 1);
} else {
oResult.businessCode = 'success';
oResult.description = 'Unavailable Parameters!';
return oResult;
}
xlr.send(strDataOrPostBody);
//}
} else {
xlr.send(null);
}
break;
}
// cc.director.on(cc.Director.EVENT_BEFORE_SCENE_LOADING, function () {
// // cc.log("运行新场景之前所触发的事件------------->");
// xlr.abort();
// });
},
loadImageInJSRuntime: function (strURL, iRequestId, onSuccess, onError, oScope) {
cc.loader.load(
{
url: strURL,
isCrossOrigin: false,
type: 'jpg' //防止跨域问题
},
function (err, texture) {
if (!err) {
if (null != oScope) {
onSuccess.call(oScope, texture, iRequestId);
} else {
onSuccess(texture);
}
} else {
if (null != oScope) {
onError.call(oScope, err, iRequestId);
} else {
onError(err);
}
}
}
);
},
loadImageInNativeRuntime: function (strURL, iRequestId, onSuccess, onError, oScope) {
cc.loader.load(strURL, function (err, texture) {
if (null != oScope) {
onSuccess.call(oScope, texture, iRequestId);
} else {
onSuccess(texture);
}
cc.log('Should load a texture from external url: ' + (texture instanceof cc.Texture2D));
});
},
},
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});
{
"ver": "1.0.5",
"uuid": "77b9f0db-8832-41b4-b51f-ca5fd671b093",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
cc.Class({
extends: cc.Component,
properties: {
},
// use this for initialization
onLoad: function () {
},
statics: {
SCREEN_WIDTH: 1280.0,
SCREEN_HEIGHT: 720.0,
MOVE_DIRECTION_UP: 0,
MOVE_DIRECTION_RIGHT: 1,
MOVE_DIRECTION_DOWN: 2,
MOVE_DIRECTION_LEFT: 3,
FOCUS_FLY_DURATION: 0.3,
FOCUS_BREATH_DURATION: 0.8,
//Action Tag
FEATURE_NODE_TRANSFER: 1,
FOCUS_CELL_TRANSFER: 1,
FOCUS_CONTAINER_TRANSFER: 1,
FOCUS_CONTAINER_BREATH: 2,
FOCUS_CONTAINER_JOGGLE: 3,
OVERLENGTH_MOVING: 4,
SCROLL_BY_FOCUS_CHANGE: 5,
API_SORT_ASC: 'asc',
API_SORT_DESC: 'desc',
FEMALE: 0,
MALE: 1,
BAND: 2,
ANDROID_KEY: {
back: 6,
up: 1003,
right: 1001,
down: 1004,
left: 1000,
enter: 1005
},
BUSINESS_PARAMETER: {
// {:,
},
//天津少儿2.0测试接口
// TOPDRAW_API_SERVER:'http://202.99.114.74:52118/hyperion.chimera/',
// TOPDRAW_API_SERVER2:'http://202.99.114.74:52118/hyperion.archer/',
// TOPDRAW_IMAGE_SERVER:'http://202.99.114.74:52118/hyperion.resource/',
//新部署测试接口
TOPDRAW_API_SERVER: 'http://139.196.192.242:8080/hyperion.chimera/',
TOPDRAW_API_SERVER2: 'http://139.196.192.242:8080/hyperion.archer/',
TOPDRAW_IMAGE_SERVER: 'http://139.196.192.242:8080/hyperion.resource/',
// TOPDRAW_API_SERVER : "http://111.11.189.12:8080/hyperion.chimera/", //暂且取用EPG数据
// TOPDRAW_IMAGE_SERVER : "http://111.11.189.12:8080/hyperion.resource/",
// TOPDRAW_API_SERVER2:'http://111.11.189.12:8080/hyperion.archer/',
TEST_API_TOKEN: 'dd4b1968eb5b417e834c2687e23d2471',
//教育
TOPDRAW_API_SERVER_EDU: 'http://139.196.4.234:38080/hyperion.chimera/',
TOPDRAW_IMAGE_SERVER_EDU: 'http://139.196.4.234:38080/eduHall/pages/index/',
TOPDRAW_IMAGE_SERVER_EDU_RIGHT: 'http://139.196.4.234:38080/hyperion.resource/',
TEST_API_TOKEN_EDU: 'b4863228c5ef4593991ad4cc83f0cabf',
BI_BASE_PATH: 'http://139.196.192.242:82/1.gif',
TV_LINK_ACTION_CLICK: 100,
TV_LINK_ACTION_HOVER: 101,
// TEST_API_TOKEN:'8a56a215e7be4cf6910990d4d7c95e2c',
USER_ID: '1',
AUTH_STATUS: 0,
DEBUG_MODE: 0,//0非调试模式,1调试模式
APP_VERSION_NAME: '1.0.0',
g_strCurrentSceneName: "",
loadRes: function (strResourceURL,/*iResourceIndex,*/onSuccess, onError, oScope) {
cc.loader.loadRes(strResourceURL,
function (error, loadedResource) {
if (error) {
if (null != oScope) {
onError.call(oScope, error);
} else {
onError(error);
}
} else {
if (null != oScope) {
onSuccess.call(oScope, loadedResource/*,iResourceIndex*/);
} else {
onSuccess(loadedResource/*,iResourceIndex*/);
}
}
}
);
},
setTimeout: function (onTimeComplete, iDuration, oScope, argements) {
/*
window.setTimeout(onTimeComplete,iDuration,);
cc.loader.loadRes(strResourceURL,
function(error,loadedResource){
if (error){
if(null!=oScope){
onError.call(oScope,error);
}else{
onError(error);
}
}else{
if(null!=oScope){
onSuccess.call(oScope,loadedResource);
}else{
onSuccess(loadedResource);
}
}
}
);
*/
},
getAbsolutePositionX: function (node) {
},
getAbsolutePositionY: function (node) {
},
promiseAjax: function () {
},
getNodePath: function (node) {
let strPath = "";
while (node.parent && node.parent.parent) {//不算TopCanvas
strPath = "/" + node.name + strPath;
node = node.parent;
}
return strPath.substring(1);
},
getX: function (tempNode) {
let fCenterX = 0;
while (tempNode.parent.parent) {//不算TopCanvas
//cc.log(tempNode.name+" X: "+tempNode.x)
fCenterX += tempNode.x;
tempNode = tempNode.parent;
}
return fCenterX;
},
getY: function (tempNode) {
let fCenterY = 0;
while (tempNode.parent.parent) {//不算TopCanvas
//cc.log(tempNode.name+" Y: "+tempNode.y)
fCenterY += tempNode.y;
tempNode = tempNode.parent;
}
return fCenterY;
},
/**
* 用于合并对象 By Eva
* @param target
* @param firstSource
* @returns {any}
*/
assign: function (target, firstSource) {
if (target === undefined || target === null)
throw new TypeError("Cannot convert first argument to object");
var to = Object(target);
for (var i = 1; i < arguments.length; i++) {
var nextSource = arguments[i];
if (nextSource === undefined || nextSource === null) continue;
var keysArray = Object.keys(Object(nextSource));
for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
var nextKey = keysArray[nextIndex];
var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
if (desc !== undefined && desc.enumerable) to[nextKey] = nextSource[nextKey];
}
}
return to;
},
}
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});
{
"ver": "1.0.5",
"uuid": "23d179fb-41db-4a22-9803-860d7e587a34",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
var Common = require('Common');
var FocusInfo = require('FocusInfo');
cc.Class({
extends: cc.Component,
properties: {
// TODO: to be a real Component?
//_fLeft:0,
//_fTop:0,
//_fWidth:0,
//_fHeight:0,
//_oFocusNode:null,//deprecated
_strTVLink: '',
_bEnable: false,
_fScaleFactor: 1.06,
},
//ctor: function (fLeft,fTop,fWidth,fHeight,oFocusNode,strTVLink,bEnable,fnOnFocus,fnOnBlur) {
ctor: function () {
//this._fLeft=arguments[0];
//this._fTop=arguments[1];
//this._fWidth=arguments[2];
//this._fHeight=arguments[3];
//this._oFocusNode=arguments[4];
this._strTVLink = arguments[0];
this._bEnable = arguments[1];
this._fnOnFocus = arguments[2];
this._fnOnBlur = arguments[3];
//this._fLeft=fLeft;
//this._fTop=fTop;
//this._fWidth=fWidth;
//this._fHeight=fHeight;
//this._oFocusNode=oFocusNode;
},
init: function (/*fLeft,fTop,fWidth,fHeight,oFocusNode,*/strTVLink, bEnable, fnOnFocus, fnOnBlur, fScaleFactor) {
//this._fLeft=arguments[0];
//this._fTop=arguments[1];
//this._fWidth=arguments[2];
//this._fHeight=arguments[3];
//this._oFocusNode=arguments[4];
this._strTVLink = strTVLink;
this._bEnable = bEnable;
this._fnOnFocus = fnOnFocus;
this._fnOnBlur = fnOnBlur;
this._fScaleFactor = fScaleFactor;
//this._fLeft=fLeft;
//this._fTop=fTop;
//this._fWidth=fWidth;
//this._fHeight=fHeight;
//this._oFocusNode=oFocusNode;
},
// use this for initialization
onLoad: function () {
//气泡式向上传递 通常收不到
//this.node.on('foucs', this._fnOnFocus || function(){},this);
//this.node.on('blur', this._fnOnBlur || function(){},this);
},
getLeft: function () {
//return this._fLeft;
return Common.SCREEN_WIDTH / 2 + (this.getX() - this.node.width / 2);
},
//setLeft:function(fLeft){
// this._fLeft=fLeft;
//},
getTop: function () {
//return this._fTop;
return Common.SCREEN_HEIGHT / 2 - (this.getY() + this.node.height / 2);
},
getX: function () {
return Common.getX(this.node);
},
getY: function () {
return Common.getY(this.node);
},
//setTop:function(fTop){
// this._fTop=fTop;
//},
getWidth: function () {
//return this._fWidth;
return this.node.width;
},
setWidth: function (fWidth) {
// this._fWidth=fWidth;
this.node.width = fWidth;
},
getHeight: function () {
//return this._fHeight;
return this.node.height;
},
//setHeight:function(fHeight){
// this._fHeight=fHeight;
//},
//getFocusNode:function(){
// return this._oFocusNode;
//},
//setFocusNode:function(oFocusNode){
// this._oFocusNode=oFocusNode;
//},
getTVLink: function () {
return this._strTVLink;
},
setTVLink: function (strTVLink) {
this._strTVLink = strTVLink;
},
getEnable: function () {
return this._bEnable;
},
setEnable: function (bEnable) {
this._bEnable = bEnable;
},
onFocus: function (fiFrom) {
if (this._fnOnFocus) {
this._fnOnFocus(fiFrom);
}
},
onBlur: function (fiTo) {
if (this._fnOnBlur) {
this._fnOnBlur(fiTo);
}
},
getScaleFactor: function () {
return this._fScaleFactor;
},
setScaleFactor: function (fScaleFactor) {
this._fScaleFactor = fScaleFactor;
},
onEnable: function () { //修改节点的active属性为true时会执行挂载组件的onEnable方法
//注意:子节点有ListView要慎用!会使所有未初始化数据的子节点也改变焦点状态
// cc.log("执行FocusInfo中onEnable方法");
if (0 != this.node.name.indexOf('RoleInstallListCell') && 0 != this.node.name.indexOf('AchievementListCell')) {
this._bEnable = true;
}
},
onDisable: function () { //修改节点的active属性为false时会执行挂载组件的onDisable方法
// cc.log("执行FocusInfo中onDisable方法" + this.node.name);
this._bEnable = false;
},
onDestroy: function () {
// cc.log("节点销毁-------->" + this.node.name);
cc.director.emit('stop_render'); //分发事件
// this.node.removeComponent(FocusInfo);
},
});
{
"ver": "1.0.5",
"uuid": "af6c2393-5eef-4d0c-830e-ddcae637d713",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
//全局类
window.APP_VERSION="";
window.FISRST_IN=true;
window.testJsLog=function(strDesc,isTrue){
cc.log(strDesc+"/////////////////////////Globals---->testJsLog"+isTrue);
}
{
"ver": "1.0.5",
"uuid": "fd60ed02-fd3e-4f8a-9168-fcbc22d30a65",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
var Network = require('Network');
var Common = require('Common');
cc.Class({
extends: cc.Component,
properties: {
// foo: {
// default: null, // The default value will be used only when the component attaching
// to a node for the first time
// url: cc.Texture2D, // optional, default is typeof default
// serializable: true, // optional, default is true
// visible: true, // optional, default is true
// displayName: 'Foo', // optional
// readonly: false, // optional, default is false
// },
// ...
_iLogCount:0,
_oScene:null,
},
init: function (oScene) {
this._oScene=oScene;
},
// use this for initialization
onLoad: function () {
//设置本身节点的宽高透明
this.node.x=0;
this.node.y=0;
this.node.width=Common.SCREEN_WIDTH;
this.node.height=Common.SCREEN_HEIGHT;
let nodeLogMask=new cc.Node('LogMask');
nodeLogMask.x=0;
nodeLogMask.y=0;
this.node.addChild(nodeLogMask,10);
//设置为全屏遮罩
// let urlSplash = cc.url.raw('resources/Texture/splash_black.png');
// let textureFocus = cc.textureCache.addImage(urlSplash);
let spriteSplash=nodeLogMask.addComponent(cc.Sprite);
// spriteSplash.spriteFrame = new cc.SpriteFrame(textureFocus);
//TODO:2.0移除cc.textureCache
// cc.loader.loadRes("Texture/ui/splash_black",cc.SpriteFrame,function(error,spriteFrame){
// spriteSplash.spriteFrame=spriteFrame;
// });
//因为纹理2*2所以这里写死了
nodeLogMask.setScale(Common.SCREEN_WIDTH/2,Common.SCREEN_HEIGHT/2);
nodeLogMask.opacity=100;
// nodeLogMask.setLocalZOrder(400);//2.0中所有子节点都会在父节点之后渲染
let nodeLogList=new cc.Node('LogList');
nodeLogList.x = 20 - Common.SCREEN_WIDTH/2;
nodeLogList.y = Common.SCREEN_HEIGHT/2 - 20;
nodeLogList.setAnchorPoint(0,1);
this.node.addChild(nodeLogList,10);
// nodeLogList.setLocalZOrder(402);
this._nodeLogList = nodeLogList;
//this.node.color=new cc.Color(0, 0, 0); //黑色
//this.node.cascadeOpacity=false;
//this.node.parent=this._oScene.node;
//this.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(Texture2D.);
//parentNode.cascadeOpacity=false;
},
//statics: {
serverD:function(strInfo){
},
screenD:function(strInfo){
this.flushLogToScreen(strInfo,'Debug');
},
serverI:function(strInfo){
},
screenI:function(strInfo){
this.flushLogToScreen(strInfo,'Info');
},
serverW:function(strInfo){
},
screenW:function(strInfo){
this.flushLogToScreen(strInfo,'Warning');
},
serverE:function(strInfo){
},
screenE:function(strInfo){
this.flushLogToScreen(strInfo,'Error');
},
flushLogToScreen:function(strInfo, strLevel){
let nodeInfo=new cc.Node('log_info_'+this._iLogCount);
let lblInfo=nodeInfo.addComponent(cc.Label);
this._iLogCount++;
//if _iLogCount>20
lblInfo.string=strLevel+':'+strInfo;//+(nodeInfo.width/2-Common.SCREEN_WIDTH/2);
lblInfo.fontSize=18;
lblInfo.lineHeight=20;
//nodeInfo.parent=this.node;
nodeInfo.parent=this._nodeLogList;
switch(strLevel){
case 'Debug':
nodeInfo.color=new cc.color(51,255,255,255);
break;
case 'Info':
nodeInfo.color=new cc.color(51,255,51,255);
break;
case 'Warning':
nodeInfo.color=new cc.color(255,255,51,255);
break;
case 'Error':
nodeInfo.color=new cc.color(255,51,51,255);
break;
default:
nodeInfo.color=new cc.color(255,255,255,255);
}
//nodeInfo.color=new cc.color(255,255,255,255);
nodeInfo.height=20;
nodeInfo.setAnchorPoint(0,1);
nodeInfo.y = -(this._iLogCount-1)*20;
// nodeInfo.setLocalZOrder(401);
this._nodeLogList.y = this._nodeLogList.y + ((this._iLogCount - parseInt(Common.SCREEN_HEIGHT/20)+1)>0 ? 20 : 0);
},
clearLogOnScreen : function () {
this._nodeLogList.destroy();
this._iLogCount = 0;
let nodeLogList=new cc.Node('LogList');
nodeLogList.x = 20 - Common.SCREEN_WIDTH/2;
nodeLogList.y = Common.SCREEN_HEIGHT/2 - 20;
nodeLogList.setAnchorPoint(0,1);
this.node.addChild(nodeLogList,10);
// nodeLogList.setLocalZOrder(402);
this._nodeLogList = nodeLogList;
},
flushLogToServer:function(){
}
//TODO:需要加一个清除(所有条目全删除)和删除日志(一条一条删除)的函数
//}
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});
{
"ver": "1.0.5",
"uuid": "575ad62c-3a8f-452a-a7cf-8447bf43ac47",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "e213e4ae-14f8-406c-afba-9ad9aea75e06",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "445864d0-7911-43e7-ab0a-a27ad0ae4705",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "a4e1b66d-6337-472f-bbf7-6d1a4a4c4b98",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
cc.Class({
extends: cc.Component,
properties: {
_fStep:1,
_bHasRelation:true,
_oNode:null, //deprecated
_iDirection:0,
_fTargetPosition:0,
},
//ctor: function (fStep,bHasRelation,iDirection) {
ctor: function () {
this._fStep=arguments[0];
this._bHasRelation=arguments[1];
//this._oNode=arguments[2];
this._iDirection=arguments[2];
//this._fStep=fStep;
//this._bHasRelation=bHasRelation;
//this._oNode=oNode;
//this._iDirection=iDirection;
},
init: function (fStep,bHasRelation,iDirection) {
this._fStep=fStep;
this._bHasRelation=bHasRelation;
//this._oNode=oNode;
this._iDirection=iDirection;
},
getStep:function(){
return this._fStep;
},
setStep:function(fStep){
this._fStep=fStep;
},
getHasRelation:function(){
return this._bHasRelation;
},
setHasRelation:function(bHasRelation){
this._bHasRelation=bHasRelation;
},
/*
getNode:function(){
return this._oNode;
},
setNode:function(oNode){
this._oNode=oNode;
},*/
getDirection:function(){
return this._iDirection;
},
setDirection:function(iDirection){
this._iDirection=iDirection;
},
getTargetNode:function(){
return this._oTargetNode;
},
setTargetNode:function(oTargetNode){
this._oTargetNode=oTargetNode;
},
//明确目标位置 比设置Step更为有效
getTargetPosition:function(){
return this._fTargetPosition;
},
setTargetPosition:function(fTargetPosition){
this._fTargetPosition=fTargetPosition;
}
});
{
"ver": "1.0.5",
"uuid": "2970f50b-b098-424a-8197-5208a926b646",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
//测试界面
var TVCanvas = require('TVCanvas');
cc.Class({
extends: cc.Component,
properties: {
testSprite:cc.Sprite,
test:cc.Label,
},
onLoad: function () {
//获取页面背景
// this.getPageBg(this, "background");
},
// TestLog:function(){
// cc.log("测试js中Test->TestLog发送方法。。。。");
// },
});
{
"ver": "1.0.5",
"uuid": "ac4e29c4-f16f-41cb-9dbc-8432082945c4",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
//工具
//导出变量给PersoanlListView使用
// module.exports.foo = function (strResponse) { //require 实际上获取的是目标脚本内的 module.exports 变量
//注意:一旦使用exports导出则static内函数全部获取不到
// var utils = new Utils();
// utils.setTest(strResponse);
// };
cc.Class({
extends: cc.Component,
properties: {
},
onLoad: function () {
// this._aCategoryMediaId.join(","); //将数组转化为','相隔的字符串
// if (typeof (oResult[i].images) != 'undefined' && oResult[i].images.map.normal != null) {//typeOf获取一个变量是否存在,即使oResult[i].images不存在(未声明)也不会出错
// var index = oResult[i].images.map.normal[0];
// fileURL = oResult[i].images.list[index].fileUrl;
// }
// cc.log("时间测试:" + this.formatDate(1522031521000));
// this._graphicsLine = cc.find('ScrollContent/GraphicsLine', this.node).getComponent(cc.Graphics);
// this._graphicsLine.roundRect(borderX, borderY, oResult[i].width, oResult[i].height, 20);//圆角矩形路径
// this._graphicsLine.stroke(); //绘制路径
// if (oJSONResult.resultSet[0].score) {
// cc.find("LeftGroup/Score", this.node).getComponent(cc.Label).string = parseInt(oJSONResult.resultSet[0].score * 10) / 10 + "分";
// }
//Label下一帧才刷新大小
//目前用户可以自行在设置 label 所有属性后在执行一次 label._updateRenderData(true); 就能带当帧获取大小
},
statics: {
/**
* 移除元素
*/
indexOfArr: function (arr, val) {
for (var i = 0; i < arr.length; i++) {
if (arr[i] == val) { return i; }
}
return -1;
},
remove: function (arr, val) {
var index = this.indexOfArr(arr, val);
// cc.log("index:"+index);
if (index > -1) { arr.splice(index, 1); }
},
/**
* 将时间字符串转成年月日
* @param {*} date
*/
formatDate: function (date) {
date = new Date(date);
var y = date.getFullYear();
var m = date.getMonth() + 1;
var d = date.getDate();
var h = date.getHours();
var m1 = date.getMinutes();
var s = date.getSeconds();
m = m < 10 ? ("0" + m) : m;
d = d < 10 ? ("0" + d) : d;
// return y+"-"+m+"-"+d+" "+h+":"+m1+":"+s;
return y + "-" + m + "-" + d;
},
// 提取url中的解析字符串
//使用 var params = UrlParamHash(url);
// var fr= params['fr']; //fr = iks
UrlParamHash: function (url) {
if(typeof(url)=='undefined') return;
var params = [], h;
var hash = url.slice(url.indexOf("?") + 1).split(/[&,']/); //以'或&分割,将变量放在数组里面,形如[fr=iks,word=slice,ie=gbk]
for (var i = 0; i < hash.length; i++) {
h = hash[i].split("="); //形如[fr,iks]
params[h[0]] = h[1];
}
return params;
},
//秒数转分钟 200.617083--03:21
formatSecond2Minute: function (second) {
var mm = Math.floor(second / 60);
if (mm < 10) mm = "0" + mm;
var ss = (second % 60).toFixed(0);
if (ss < 10) ss = "0" + ss;
return mm + ":" + ss;
},
//加载资源并且设置资源可以自动释放
loadRes: function (url, type, completeCallback) {
return cc.loader.loadRes(url, type, function (err, res) {
if (completeCallback) {
completeCallback(err, res);
}
if (!err) {
cc.loader.setAutoReleaseRecursively(res, true);
}
});
},
//判断是不是移动端
isMobile:function(){
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { //Web端不支持JSB
return true;
} else {
return false;
}
},
//筛选得到图片
getImageByTag: function (oData, strTag, index) {
var val = oData.images;
strTag = strTag || "normal";
index = index || 0;
var strUrl = null;
if (val && val != '' && val != 'null') {
if (val.list && val.list instanceof Array && val.list.length > 0
&& val.map[strTag] && val.map[strTag] instanceof Array && val.map[strTag].length > 0
) {
if (val.list[val.map[strTag][index]].fileUrl) {
strUrl = Common.TOPDRAW_IMAGE_SERVER + val.list[val.map[strTag][index]].fileUrl;
}
}
}
return strUrl;
},
},
});
{
"ver": "1.0.5",
"uuid": "118fab66-2ecc-4316-9d2b-0455ee265dba",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
//推荐页
var Common = require('Common');
var Network = require('Network');
cc.Class({
extends: cc.Component,
properties: {
id: 0,
pic: cc.Sprite,
activeName1: cc.Label,
activeName2: cc.Label,
normalName: cc.Label,
},
// data: {id,iconSF,itemName,itemPrice}
init: function (data, funCallback) {
// cc.log("pfbRecommend->init: "+data.tvlink);
// this.id = data.id;
// this.node.width = data.width;
// this.node.height = data.height;
// this.node.getChildByName('Pic').width = data.width;
// this.node.getChildByName('Pic').height = data.height;
if (data.imageURL) {
var self = this;
Network.loadImageInNativeRuntime(
Common.TOPDRAW_IMAGE_SERVER_EDU + data.imageURL,
function (texture) {
self.pic.spriteFrame = new cc.SpriteFrame(texture,cc.rect(0,0,self.node.width,self.node.height));
if (null != funCallback && typeof funCallback == 'function') {
funCallback.call();
}
}, null, this
);
}
// this.node.getComponent(cc.Widget).top = data.top;
// this.node.getComponent(cc.Widget).left = data.left;
if (data.title_visible == 1) { //前三个不需要显示文字
cc.find('Name', this.node).active = true;
cc.find('Name', this.node).width = data.width - 10;
cc.find('Name/TextBg', this.node).width = data.width;
cc.find('Name/NormalName', this.node).width = data.width - 10;
cc.find('Name/ActiveName', this.node).width = data.width - 10;
cc.find('Name/ActiveName/NameContainer', this.node).width = data.width - 10;
cc.find('Name/ActiveName/NameContainer/NameText', this.node).width = data.width - 10;
this.normalName.node.width = data.width - 10;
this.activeName1.string = data.title;
this.activeName2.string = data.title;
this.normalName.string = data.title;
this.activeName1._updateRenderData(true);
this.activeName2._updateRenderData(true);
this.normalName._updateRenderData(true);
//调整文字位置
let nodeCellName = this.node.getChildByName('Name');
let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
let nodeScreenTitleText1 = nodeScreenTitleText.getChildByName('NameText1');
if (nodeScreenTitleText1.width > nodeScreenTitleText.width) {
this.normalName.overflow = cc.Label.Overflow.CLAMP;
this.normalName.enableWrapText = false;
this.normalName.horizontalAlign = cc.Label.HorizontalAlign.LEFT;
}
}
},
setUIWithFocus: function () {
let nodeCellName = this.node.getChildByName('Name');
cc.find("NormalName", nodeCellName).opacity = 255;
//超出滚动
let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
let fOriginalX = nodeScreenTitleText.x;
let fOriginalY = nodeScreenTitleText.y;
let nodeScreenTitleText1 = nodeScreenTitleText.getChildByName('NameText1');
let nodeScreenTitleText2 = nodeScreenTitleText.getChildByName('NameText2');
nodeScreenTitleText2.x = nodeScreenTitleText1.x + nodeScreenTitleText1.width + 10;//TODO:补丁,解决滚动重叠
cc.log(nodeScreenTitleText1.width + "------------" + nodeScreenTitleText.width);
if (nodeScreenTitleText1.width > nodeScreenTitleText.width) {
cc.find("ActiveName/NameContainer", nodeCellName).opacity = 255;
cc.find("NormalName", nodeCellName).opacity = 0;
let fEndPositionDelta = (nodeScreenTitleText1.width + 30);
//下方时长和字有关系,才能速度一样
var ftaScreenTitleMoveToTarget = cc.moveTo(10 * (nodeScreenTitleText1.width / nodeScreenTitleText.width), fOriginalX - fEndPositionDelta, fOriginalY);
var ftaScreenTitleMoveToBack = cc.moveTo(0, fOriginalX, fOriginalY);
var sequenceMediaTitle = cc.sequence(ftaScreenTitleMoveToTarget, ftaScreenTitleMoveToBack);
var repeatScreenTitle = cc.repeat(sequenceMediaTitle, 10);
repeatScreenTitle.setTag(Common.OVERLENGTH_MOVING);
nodeScreenTitleText.runAction(repeatScreenTitle);
nodeScreenTitleText2.active = true;
}
},
setUIWithoutFocus: function () {
let nodeCellName = this.node.getChildByName('Name');
cc.find("NormalName", nodeCellName).opacity = 255;
//如有滚动停止滚动
let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
if (null != nodeScreenTitleText.getActionByTag(Common.OVERLENGTH_MOVING)) {
nodeScreenTitleText.stopActionByTag(Common.OVERLENGTH_MOVING);
nodeScreenTitleText.getChildByName('NameText2').active = false;
cc.find("ActiveName/NameContainer", nodeCellName).opacity = 0;
}
nodeScreenTitleText.x = 0;
},
});
{
"ver": "1.0.5",
"uuid": "43a14b47-14de-42be-b1fc-5b7cfcc31cf8",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
//推荐页
var Common = require('Common');
var Network = require('Network');
cc.Class({
extends: cc.Component,
properties: {
id: 0,
pic: cc.Sprite,
activeName1: cc.Label,
activeName2: cc.Label,
normalName: cc.Label,
},
// data: {id,iconSF,itemName,itemPrice}
init: function (data, funCallback) {
// cc.log("pfbRecommend->init: "+data.tvlink);
// this.id = data.id;
// this.node.width = data.width;
// this.node.height = data.height;
// this.node.getChildByName('Pic').width = data.width;
// this.node.getChildByName('Pic').height = data.height;
if (data.image[0].fileUrl) {
var self = this;
Network.loadImageInNativeRuntime(
Common.TOPDRAW_IMAGE_SERVER_EDU_RIGHT + data.image[0].fileUrl,
function (texture) {
self.pic.spriteFrame = new cc.SpriteFrame(texture);
if (null != funCallback && typeof funCallback == 'function') {
funCallback.call();
}
}, null, this
);
}
// this.node.getComponent(cc.Widget).top = data.top;
// this.node.getComponent(cc.Widget).left = data.left;
// if (data.title_visible == 1) { //前三个不需要显示文字
// cc.find('Name', this.node).active = true;
// cc.find('Name', this.node).width = data.width - 10;
// cc.find('Name/TextBg', this.node).width = data.width;
// cc.find('Name/NormalName', this.node).width = data.width - 10;
// cc.find('Name/ActiveName', this.node).width = data.width - 10;
// cc.find('Name/ActiveName/NameContainer', this.node).width = data.width - 10;
// cc.find('Name/ActiveName/NameContainer/NameText', this.node).width = data.width - 10;
// this.normalName.node.width = data.width - 10;
// this.activeName1.string = data.title;
// this.activeName2.string = data.title;
// this.normalName.string = data.title;
// this.activeName1._updateRenderData(true);
// this.activeName2._updateRenderData(true);
// this.normalName._updateRenderData(true);
// //调整文字位置
// let nodeCellName = this.node.getChildByName('Name');
// let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
// let nodeScreenTitleText1 = nodeScreenTitleText.getChildByName('NameText1');
// if (nodeScreenTitleText1.width > nodeScreenTitleText.width) {
// this.normalName.overflow = cc.Label.Overflow.CLAMP;
// this.normalName.enableWrapText = false;
// this.normalName.horizontalAlign = cc.Label.HorizontalAlign.LEFT;
// }
// }
},
setUIWithFocus: function () {
let nodeCellName = this.node.getChildByName('Name');
cc.find("NormalName", nodeCellName).opacity = 255;
//超出滚动
let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
let fOriginalX = nodeScreenTitleText.x;
let fOriginalY = nodeScreenTitleText.y;
let nodeScreenTitleText1 = nodeScreenTitleText.getChildByName('NameText1');
let nodeScreenTitleText2 = nodeScreenTitleText.getChildByName('NameText2');
nodeScreenTitleText2.x = nodeScreenTitleText1.x + nodeScreenTitleText1.width + 10;//TODO:补丁,解决滚动重叠
cc.log(nodeScreenTitleText1.width + "------------" + nodeScreenTitleText.width);
if (nodeScreenTitleText1.width > nodeScreenTitleText.width) {
cc.find("ActiveName/NameContainer", nodeCellName).opacity = 255;
cc.find("NormalName", nodeCellName).opacity = 0;
let fEndPositionDelta = (nodeScreenTitleText1.width + 30);
//下方时长和字有关系,才能速度一样
var ftaScreenTitleMoveToTarget = cc.moveTo(10 * (nodeScreenTitleText1.width / nodeScreenTitleText.width), fOriginalX - fEndPositionDelta, fOriginalY);
var ftaScreenTitleMoveToBack = cc.moveTo(0, fOriginalX, fOriginalY);
var sequenceMediaTitle = cc.sequence(ftaScreenTitleMoveToTarget, ftaScreenTitleMoveToBack);
var repeatScreenTitle = cc.repeat(sequenceMediaTitle, 10);
repeatScreenTitle.setTag(Common.OVERLENGTH_MOVING);
nodeScreenTitleText.runAction(repeatScreenTitle);
nodeScreenTitleText2.active = true;
}
},
setUIWithoutFocus: function () {
let nodeCellName = this.node.getChildByName('Name');
cc.find("NormalName", nodeCellName).opacity = 255;
//如有滚动停止滚动
let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
if (null != nodeScreenTitleText.getActionByTag(Common.OVERLENGTH_MOVING)) {
nodeScreenTitleText.stopActionByTag(Common.OVERLENGTH_MOVING);
nodeScreenTitleText.getChildByName('NameText2').active = false;
cc.find("ActiveName/NameContainer", nodeCellName).opacity = 0;
}
nodeScreenTitleText.x = 0;
},
});
{
"ver": "1.0.5",
"uuid": "4e3e0b43-0b64-4a48-b6fb-9cd3d734de73",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "aa753a4e-3b13-4828-ad1b-a7d1af1e6272",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "97fdacf1-0a54-46e5-960d-8017fba2261f",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "499fb139-3263-492e-94a2-495a8db820e9",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "8d5835ea-26bc-4227-abd5-be997edcff8d",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "bb5c5a5e-89a9-4ed1-8918-b65df56166ad",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54",
"isGroup": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"HelloWorld": {
"ver": "1.0.4",
"uuid": "31bc895a-c003-4566-a9f3-2e54ae1c17dc",
"rawTextureUuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 195,
"height": 270,
"rawWidth": 195,
"rawHeight": 270,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "7b058b45-1d99-4a6f-af75-477dcbaa56dd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "eab92123-65ec-44fd-b9af-7b80346d5e64",
"rawTextureUuid": "7b058b45-1d99-4a6f-af75-477dcbaa56dd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 2885,
"rawWidth": 1280,
"rawHeight": 2885,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "90871d77-34d5-4fa5-8b14-0fc3d0acdf3d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"history": {
"ver": "1.0.4",
"uuid": "8c0c790b-4b85-43a1-8b6c-a8686b700df6",
"rawTextureUuid": "90871d77-34d5-4fa5-8b14-0fc3d0acdf3d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 108,
"height": 48,
"rawWidth": 108,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "bd1dfb5f-c75a-4fac-b539-585b0b231a4b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"logo": {
"ver": "1.0.4",
"uuid": "1af31773-8501-40fe-96e5-ec700c03162c",
"rawTextureUuid": "bd1dfb5f-c75a-4fac-b539-585b0b231a4b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -17,
"trimX": 2,
"trimY": 38,
"width": 649,
"height": 466,
"rawWidth": 653,
"rawHeight": 508,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "723c70d3-74ee-4a9e-9eb0-12e04f587bc7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"my": {
"ver": "1.0.4",
"uuid": "e74a5b86-b958-43cf-a583-6ebdeb00e071",
"rawTextureUuid": "723c70d3-74ee-4a9e-9eb0-12e04f587bc7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 127,
"height": 48,
"rawWidth": 127,
"rawHeight": 48,
"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": "pfbShowCategory",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 5
},
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Pic",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0a9ac85b-6d8a-498b-92ce-d1b35b092920"
},
"fileId": "cahAospA9KiZ8bJwfuwSSJ",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": -20,
"_right": 0,
"_top": 702,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "43a14tHFN5CvrH8W3z8wxz4",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"id": 0,
"pic": {
"__id__": 3
},
"activeName1": null,
"activeName2": null,
"normalName": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0a9ac85b-6d8a-498b-92ce-d1b35b092920"
},
"fileId": "f3FKYd7SJEvrs4s48MPI1G",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.0",
"uuid": "0a9ac85b-6d8a-498b-92ce-d1b35b092920",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"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": "pfbShowCategory",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 5
},
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Pic",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "410fb916-8721-4663-bab8-34397391ace7"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "9058dd42-455f-43f3-93b4-ed587f2159bd"
},
"fileId": "cahAospA9KiZ8bJwfuwSSJ",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": -20,
"_right": 0,
"_top": 702,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "4e3e0tDC2RKSLb7nNPXNN5z",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"id": 0,
"pic": {
"__id__": 3
},
"activeName1": null,
"activeName2": null,
"normalName": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "9058dd42-455f-43f3-93b4-ed587f2159bd"
},
"fileId": "f3FKYd7SJEvrs4s48MPI1G",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.0",
"uuid": "9058dd42-455f-43f3-93b4-ed587f2159bd",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "f35038d7-351f-431f-87db-d06c657b0216",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"search": {
"ver": "1.0.4",
"uuid": "2724fd4d-8592-497d-9ab1-4e33968c0e89",
"rawTextureUuid": "f35038d7-351f-431f-87db-d06c657b0216",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 108,
"height": 48,
"rawWidth": 108,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"singleColor": {
"ver": "1.0.4",
"uuid": "410fb916-8721-4663-bab8-34397391ace7",
"rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2,
"height": 2,
"rawWidth": 2,
"rawHeight": 2,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "8465620c-9347-477f-be29-e246c6679147",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "af74e7fc-dc2d-4e3b-9e98-c77ca9ee7ebe",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"HelloWorld": {
"ver": "1.0.4",
"uuid": "837c982b-9cd1-4e5a-a97b-7ea38b39a2ed",
"rawTextureUuid": "af74e7fc-dc2d-4e3b-9e98-c77ca9ee7ebe",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 195,
"height": 270,
"rawWidth": 195,
"rawHeight": 270,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "9ab1d077-e501-4d49-af8d-66fa45d8d195",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"history": {
"ver": "1.0.4",
"uuid": "b9b775dd-436b-455f-bf36-de112de109e8",
"rawTextureUuid": "9ab1d077-e501-4d49-af8d-66fa45d8d195",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 108,
"height": 48,
"rawWidth": 108,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "ed1ff055-a16b-4f2a-9caf-e715e5273b95",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"my": {
"ver": "1.0.4",
"uuid": "244ccc93-62bc-4f79-81ba-2fd341419b2e",
"rawTextureUuid": "ed1ff055-a16b-4f2a-9caf-e715e5273b95",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 127,
"height": 48,
"rawWidth": 127,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "64db64a5-a07f-4743-abae-863219e4ed59",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"search": {
"ver": "1.0.4",
"uuid": "622d4902-61b7-4461-a5fe-bdeaa3f44ce2",
"rawTextureUuid": "64db64a5-a07f-4743-abae-863219e4ed59",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 108,
"height": 48,
"rawWidth": 108,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "8aafcb6f-79a9-4274-a8e6-11535d7db5c7",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "7a0fdfb4-67d2-4ce5-881f-27ba48398963",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "07c42853-44f6-44fd-b4a7-96c657273d5b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"1": {
"ver": "1.0.4",
"uuid": "2f12d7cb-336d-4d50-8523-d7336a40a1b6",
"rawTextureUuid": "07c42853-44f6-44fd-b4a7-96c657273d5b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 51,
"height": 51,
"rawWidth": 51,
"rawHeight": 51,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "a17484ab-98b9-45a7-96c5-e2f115f20b9c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"2": {
"ver": "1.0.4",
"uuid": "d0f889f0-abdf-4e0b-b995-80b7e4d958db",
"rawTextureUuid": "a17484ab-98b9-45a7-96c5-e2f115f20b9c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 12,
"trimX": 0,
"trimY": 3,
"width": 1,
"height": 16,
"rawWidth": 1,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "9009b50c-a6e9-4eea-b016-3b716af19308",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"3": {
"ver": "1.0.4",
"uuid": "57330949-d587-439b-b54a-d4a951b04b3f",
"rawTextureUuid": "9009b50c-a6e9-4eea-b016-3b716af19308",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 51,
"height": 51,
"rawWidth": 51,
"rawHeight": 51,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "56f3cca9-2ea8-4982-a749-08244c283d8e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"4": {
"ver": "1.0.4",
"uuid": "d9cd3cd3-7f7c-4094-9580-346e8b03a3b4",
"rawTextureUuid": "56f3cca9-2ea8-4982-a749-08244c283d8e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -14,
"offsetY": 0,
"trimX": 1,
"trimY": 0,
"width": 16,
"height": 1,
"rawWidth": 46,
"rawHeight": 1,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "53e675f3-1400-4b57-b9fc-6a3f6a65da90",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"6": {
"ver": "1.0.4",
"uuid": "f976c075-cfeb-40be-8911-9eea7ed9b7bd",
"rawTextureUuid": "53e675f3-1400-4b57-b9fc-6a3f6a65da90",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 14,
"offsetY": 0,
"trimX": 29,
"trimY": 0,
"width": 16,
"height": 1,
"rawWidth": 46,
"rawHeight": 1,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "3c0252ba-5da0-4511-8d70-05afc35020c0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"7": {
"ver": "1.0.4",
"uuid": "cac1da50-9322-4dd7-ad51-a4494493aceb",
"rawTextureUuid": "3c0252ba-5da0-4511-8d70-05afc35020c0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 51,
"height": 51,
"rawWidth": 51,
"rawHeight": 51,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.1",
"uuid": "8d4922f8-8db2-46a0-a7ba-3ecc252a9318",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"platformSettings": {},
"subMetas": {
"8": {
"ver": "1.0.4",
"uuid": "86da34f4-416e-4542-be45-cebb63e5e69a",
"rawTextureUuid": "8d4922f8-8db2-46a0-a7ba-3ecc252a9318",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -16,
"trimX": 0,
"trimY": 32,
"width": 1,
"height": 14,
"rawWidth": 1,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
No preview for this file type
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.