update
This commit is contained in:
parent
182d1a2d17
commit
4c3bc991e2
@ -68,8 +68,8 @@
|
|||||||
},
|
},
|
||||||
"_scale": {
|
"_scale": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0.5050207566484387,
|
"x": 0.9824218749999979,
|
||||||
"y": 0.5050207566484387,
|
"y": 0.9824218749999979,
|
||||||
"z": 1
|
"z": 1
|
||||||
},
|
},
|
||||||
"_quat": {
|
"_quat": {
|
||||||
@ -256,7 +256,7 @@
|
|||||||
"__id__": 14
|
"__id__": 14
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": true,
|
"_active": false,
|
||||||
"_level": 2,
|
"_level": 2,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
@ -4995,6 +4995,8 @@
|
|||||||
"pveget": {
|
"pveget": {
|
||||||
"__id__": 87
|
"__id__": 87
|
||||||
},
|
},
|
||||||
|
"qualityStar": null,
|
||||||
|
"lb_lv": null,
|
||||||
"_id": "fcsTA+XXVPsYegEGiIDFLE"
|
"_id": "fcsTA+XXVPsYegEGiIDFLE"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -9552,6 +9554,8 @@
|
|||||||
"pveget": {
|
"pveget": {
|
||||||
"__id__": 185
|
"__id__": 185
|
||||||
},
|
},
|
||||||
|
"qualityStar": null,
|
||||||
|
"lb_lv": null,
|
||||||
"_id": "b4oSs+At9Pib2iL+qD+aXz"
|
"_id": "b4oSs+At9Pib2iL+qD+aXz"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -17325,6 +17329,8 @@
|
|||||||
"pveget": {
|
"pveget": {
|
||||||
"__id__": 351
|
"__id__": 351
|
||||||
},
|
},
|
||||||
|
"qualityStar": null,
|
||||||
|
"lb_lv": null,
|
||||||
"_id": "b6TTcshZtMhIvWZAr70FyO"
|
"_id": "b6TTcshZtMhIvWZAr70FyO"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -21882,6 +21888,8 @@
|
|||||||
"pveget": {
|
"pveget": {
|
||||||
"__id__": 449
|
"__id__": 449
|
||||||
},
|
},
|
||||||
|
"qualityStar": null,
|
||||||
|
"lb_lv": null,
|
||||||
"_id": "01LyGWFv9EZ6n8LX7C8OZF"
|
"_id": "01LyGWFv9EZ6n8LX7C8OZF"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -43174,7 +43182,7 @@
|
|||||||
"__id__": 1221
|
"__id__": 1221
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_level": 1,
|
"_level": 1,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
@ -69085,6 +69093,8 @@
|
|||||||
"pveget": {
|
"pveget": {
|
||||||
"__id__": 1603
|
"__id__": 1603
|
||||||
},
|
},
|
||||||
|
"qualityStar": null,
|
||||||
|
"lb_lv": null,
|
||||||
"_id": "030IpUBd1JS7cp9CabMQ0f"
|
"_id": "030IpUBd1JS7cp9CabMQ0f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -75218,6 +75228,8 @@
|
|||||||
"pveget": {
|
"pveget": {
|
||||||
"__id__": 1733
|
"__id__": 1733
|
||||||
},
|
},
|
||||||
|
"qualityStar": null,
|
||||||
|
"lb_lv": null,
|
||||||
"_id": "6bOjPQR19Oq4jcZX79OxF9"
|
"_id": "6bOjPQR19Oq4jcZX79OxF9"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -79333,6 +79345,8 @@
|
|||||||
"pveget": {
|
"pveget": {
|
||||||
"__id__": 1821
|
"__id__": 1821
|
||||||
},
|
},
|
||||||
|
"qualityStar": null,
|
||||||
|
"lb_lv": null,
|
||||||
"_id": "21GTthTz9Lwas6R9Jk6Jqk"
|
"_id": "21GTthTz9Lwas6R9Jk6Jqk"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -83448,6 +83462,8 @@
|
|||||||
"pveget": {
|
"pveget": {
|
||||||
"__id__": 1909
|
"__id__": 1909
|
||||||
},
|
},
|
||||||
|
"qualityStar": null,
|
||||||
|
"lb_lv": null,
|
||||||
"_id": "15+MRLosVLXpwAnKkHJEVC"
|
"_id": "15+MRLosVLXpwAnKkHJEVC"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -92524,6 +92540,8 @@
|
|||||||
"pveget": {
|
"pveget": {
|
||||||
"__id__": 2111
|
"__id__": 2111
|
||||||
},
|
},
|
||||||
|
"qualityStar": null,
|
||||||
|
"lb_lv": null,
|
||||||
"_id": "cetNI0PspGjYi5N5u83dB8"
|
"_id": "cetNI0PspGjYi5N5u83dB8"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
File diff suppressed because it is too large
Load Diff
2259
assets/res/prefabs/NUI/rankWorldItem - 001.prefab
Normal file
2259
assets/res/prefabs/NUI/rankWorldItem - 001.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
assets/res/prefabs/NUI/rankWorldItem - 001.prefab.meta
Normal file
7
assets/res/prefabs/NUI/rankWorldItem - 001.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.1",
|
||||||
|
"uuid": "d0b6d5ce-fc91-4803-9b43-bf9f0be5b67e",
|
||||||
|
"optimizationPolicy": "AUTO",
|
||||||
|
"asyncLoadAssets": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
@ -174,6 +174,9 @@
|
|||||||
"_isTrimmedMode": false,
|
"_isTrimmedMode": false,
|
||||||
"_state": 0,
|
"_state": 0,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
|
"_tilecount": 1,
|
||||||
|
"_tileoffx": 0,
|
||||||
|
"_tileoffy": 0,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -355,6 +358,9 @@
|
|||||||
"_isTrimmedMode": false,
|
"_isTrimmedMode": false,
|
||||||
"_state": 0,
|
"_state": 0,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
|
"_tilecount": 1,
|
||||||
|
"_tileoffx": 0,
|
||||||
|
"_tileoffy": 0,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -642,6 +648,9 @@
|
|||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_state": 0,
|
"_state": 0,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
|
"_tilecount": 1,
|
||||||
|
"_tileoffx": 0,
|
||||||
|
"_tileoffy": 0,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -741,6 +750,9 @@
|
|||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_state": 0,
|
"_state": 0,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
|
"_tilecount": 1,
|
||||||
|
"_tileoffx": 0,
|
||||||
|
"_tileoffy": 0,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -842,6 +854,9 @@
|
|||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_state": 0,
|
"_state": 0,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
|
"_tilecount": 1,
|
||||||
|
"_tileoffx": 0,
|
||||||
|
"_tileoffy": 0,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1304,6 +1319,9 @@
|
|||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_state": 0,
|
"_state": 0,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
|
"_tilecount": 1,
|
||||||
|
"_tileoffx": 0,
|
||||||
|
"_tileoffy": 0,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1616,6 +1634,9 @@
|
|||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_state": 0,
|
"_state": 0,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
|
"_tilecount": 1,
|
||||||
|
"_tileoffx": 0,
|
||||||
|
"_tileoffy": 0,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1938,6 +1959,9 @@
|
|||||||
"_isTrimmedMode": false,
|
"_isTrimmedMode": false,
|
||||||
"_state": 0,
|
"_state": 0,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
|
"_tilecount": 1,
|
||||||
|
"_tileoffx": 0,
|
||||||
|
"_tileoffy": 0,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -2039,6 +2063,9 @@
|
|||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_state": 0,
|
"_state": 0,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
|
"_tilecount": 1,
|
||||||
|
"_tileoffx": 0,
|
||||||
|
"_tileoffy": 0,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -2140,6 +2167,9 @@
|
|||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_state": 0,
|
"_state": 0,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
|
"_tilecount": 1,
|
||||||
|
"_tileoffx": 0,
|
||||||
|
"_tileoffy": 0,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -147,6 +147,7 @@ export default class Academy_block extends cc.Component {
|
|||||||
type,
|
type,
|
||||||
this.currentData.info.hero_uniid,
|
this.currentData.info.hero_uniid,
|
||||||
(res) => {
|
(res) => {
|
||||||
|
// wait...
|
||||||
uimanger.showUI(UpSuccess.prefabPath, res);
|
uimanger.showUI(UpSuccess.prefabPath, res);
|
||||||
var node = cc
|
var node = cc
|
||||||
.find('Canvas')
|
.find('Canvas')
|
||||||
|
@ -38,6 +38,9 @@ export class ChooseHeroUpQuality extends UIBase {
|
|||||||
|
|
||||||
private boxIndex = 0;
|
private boxIndex = 0;
|
||||||
|
|
||||||
|
// private mainHeroID = 0;
|
||||||
|
// private secHeroID = 0;
|
||||||
|
|
||||||
init(data: any) {
|
init(data: any) {
|
||||||
this.boxIndex = data.boxIndex;
|
this.boxIndex = data.boxIndex;
|
||||||
}
|
}
|
||||||
@ -60,6 +63,7 @@ export class ChooseHeroUpQuality extends UIBase {
|
|||||||
this.finalHero.getComponent('herochoseone').initdata(data.heroInfo);
|
this.finalHero.getComponent('herochoseone').initdata(data.heroInfo);
|
||||||
this.mainHero.active = true;
|
this.mainHero.active = true;
|
||||||
this.mainHeroData = data.heroInfo.hero_uniid;
|
this.mainHeroData = data.heroInfo.hero_uniid;
|
||||||
|
// this.mainHeroID = data.heroInfo.hero_id;
|
||||||
|
|
||||||
let cfg =
|
let cfg =
|
||||||
gameConfig.heroQuality[
|
gameConfig.heroQuality[
|
||||||
@ -69,19 +73,35 @@ export class ChooseHeroUpQuality extends UIBase {
|
|||||||
this.costLabel.string = cfg.gold;
|
this.costLabel.string = cfg.gold;
|
||||||
this.timeLabel.string = cfg.time;
|
this.timeLabel.string = cfg.time;
|
||||||
this.rateLabel.string = cfg.success_rate + '%';
|
this.rateLabel.string = cfg.success_rate + '%';
|
||||||
|
|
||||||
|
window.qualityMainData = {
|
||||||
|
heroid: data.heroInfo.hero_id,
|
||||||
|
herouuid: data.heroInfo.hero_uniid,
|
||||||
|
};
|
||||||
} else if (data.index == 1) {
|
} else if (data.index == 1) {
|
||||||
this.secHeroChoose.active = false;
|
this.secHeroChoose.active = false;
|
||||||
this.secHero.getComponent('herochoseone').initdata(data.heroInfo);
|
this.secHero.getComponent('herochoseone').initdata(data.heroInfo);
|
||||||
this.secHero.active = true;
|
this.secHero.active = true;
|
||||||
this.secHeroData = data.heroInfo.hero_uniid;
|
this.secHeroData = data.heroInfo.hero_uniid;
|
||||||
console.log(JSON.stringify(data));
|
// this.secHeroID = data.heroInfo.hero_id;
|
||||||
|
|
||||||
|
window.qualitySecData = {
|
||||||
|
heroid: data.heroInfo.hero_id,
|
||||||
|
herouuid: data.heroInfo.hero_uniid,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.mainHeroData && this.secHeroData) {
|
if (this.mainHeroData && this.secHeroData) {
|
||||||
if (this.mainHeroData == this.secHeroData) {
|
if (this.mainHeroData == this.secHeroData) {
|
||||||
cc.uiHelper.showTips('Must Choose two different hero');
|
cc.uiHelper.showTips('Must Choose two hero');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if (this.mainHeroID != this.secHeroID) {
|
||||||
|
// cc.uiHelper.showTips('Must Choose same hero');
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
NetManage.upgradeQualityPreview(
|
NetManage.upgradeQualityPreview(
|
||||||
this.mainHeroData,
|
this.mainHeroData,
|
||||||
this.secHeroData,
|
this.secHeroData,
|
||||||
@ -113,16 +133,23 @@ export class ChooseHeroUpQuality extends UIBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onClose() {
|
onClose() {
|
||||||
|
window.qualityMainData = null;
|
||||||
|
window.qualitySecData = null;
|
||||||
this.node.destroy();
|
this.node.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
onOk() {
|
onOk() {
|
||||||
if (this.mainHeroData && this.secHeroData) {
|
if (this.mainHeroData && this.secHeroData) {
|
||||||
if (this.mainHeroData == this.secHeroData) {
|
if (this.mainHeroData == this.secHeroData) {
|
||||||
cc.uiHelper.showTips('Must Choose two different hero');
|
cc.uiHelper.showTips('Must Choose two hero');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if (this.mainHeroID != this.secHeroID) {
|
||||||
|
// cc.uiHelper.showTips('Must Choose same hero');
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
NetManage.heroUpgradeQuality(
|
NetManage.heroUpgradeQuality(
|
||||||
this.mainHeroData,
|
this.mainHeroData,
|
||||||
this.secHeroData,
|
this.secHeroData,
|
||||||
@ -132,7 +159,10 @@ export class ChooseHeroUpQuality extends UIBase {
|
|||||||
.find('Canvas')
|
.find('Canvas')
|
||||||
.getComponentInChildren(UIUpdateHero).node;
|
.getComponentInChildren(UIUpdateHero).node;
|
||||||
node.emit('refreshUI');
|
node.emit('refreshUI');
|
||||||
this.node.destroy();
|
|
||||||
|
window.qualityMainData = null;
|
||||||
|
window.qualitySecData = null;
|
||||||
|
|
||||||
this.node.destroy();
|
this.node.destroy();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -21,6 +21,23 @@ export class UpdateChoose extends UIBase {
|
|||||||
var sc = node.getComponent('herochoseone');
|
var sc = node.getComponent('herochoseone');
|
||||||
sc.initdata(element);
|
sc.initdata(element);
|
||||||
|
|
||||||
|
if (window.qualityMainData) {
|
||||||
|
if (element.hero_id != window.qualityMainData.heroid) {
|
||||||
|
node.getComponent('wantedHero').showCover();
|
||||||
|
}
|
||||||
|
if (element.hero_uniid == window.qualityMainData.herouuid) {
|
||||||
|
node.getComponent('wantedHero').showCover();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (window.qualitySecData) {
|
||||||
|
if (element.hero_id != window.qualitySecData.heroid) {
|
||||||
|
node.getComponent('wantedHero').showCover();
|
||||||
|
}
|
||||||
|
if (element.hero_uniid == window.qualitySecData.herouuid) {
|
||||||
|
node.getComponent('wantedHero').showCover();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
if (
|
if (
|
||||||
this.qualityIndex &&
|
this.qualityIndex &&
|
||||||
|
@ -19,23 +19,30 @@ cc.Class({
|
|||||||
type: sp.Skeleton,
|
type: sp.Skeleton,
|
||||||
},
|
},
|
||||||
|
|
||||||
nd_btn1:{
|
nd_btn1: {
|
||||||
default: null,
|
|
||||||
type: cc.Node,
|
|
||||||
},
|
|
||||||
|
|
||||||
nd_btn2:{
|
|
||||||
default: null,
|
default: null,
|
||||||
type: cc.Node,
|
type: cc.Node,
|
||||||
},
|
},
|
||||||
|
|
||||||
tableContent:{
|
nd_btn2: {
|
||||||
default:null,
|
default: null,
|
||||||
type:cc.Node
|
type: cc.Node,
|
||||||
}
|
},
|
||||||
|
|
||||||
|
tableContent: {
|
||||||
|
default: null,
|
||||||
|
type: cc.Node,
|
||||||
|
},
|
||||||
|
|
||||||
|
title_time: {
|
||||||
|
default: null,
|
||||||
|
type: cc.Node,
|
||||||
|
},
|
||||||
|
|
||||||
|
title_score: {
|
||||||
|
default: null,
|
||||||
|
type: cc.Label,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// LIFE-CYCLE CALLBACKS:
|
// LIFE-CYCLE CALLBACKS:
|
||||||
@ -46,44 +53,70 @@ cc.Class({
|
|||||||
|
|
||||||
onLoad() {
|
onLoad() {
|
||||||
// set can open
|
// set can open
|
||||||
NetManage.getRankOpenList((res)=>{
|
NetManage.getRankOpenList((res) => {
|
||||||
var rankList = res.list;
|
var rankList = res.list;
|
||||||
if(rankList.includes(2) && this.nd_btn2) this.nd_btn2.active = true;
|
if (rankList.includes(2) && this.nd_btn2)
|
||||||
|
this.nd_btn2.active = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.title_time.active = false;
|
||||||
|
this.title_score.stirng = 'Score';
|
||||||
|
|
||||||
jcgamelog.addOperation(OperationType.BUTTON, 'get into rank');
|
jcgamelog.addOperation(OperationType.BUTTON, 'get into rank');
|
||||||
cc.Notifier.on('clickrankhero', this, this.clickrankhero.bind(this));
|
cc.Notifier.on('clickrankhero', this, this.clickrankhero.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
onClickFirstRank(){
|
onClickFirstRank() {
|
||||||
|
this.title_time.active = false;
|
||||||
|
this.title_score.stirng = 'Score';
|
||||||
NetManage.getactivityRankingList(1, (data) => {
|
NetManage.getactivityRankingList(1, (data) => {
|
||||||
this.initTable(JSON.stringify(data));
|
this.initTable(JSON.stringify(data));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onClickSecondRank(){
|
onClickSecondRank() {
|
||||||
|
this.title_time.active = false;
|
||||||
|
this.title_score.stirng = 'Score';
|
||||||
NetManage.getactivityRankingList(2, (data) => {
|
NetManage.getactivityRankingList(2, (data) => {
|
||||||
this.initTable(JSON.stringify(data));
|
this.initTable(JSON.stringify(data));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
initTable(rankData){
|
onClickThirdRank() {
|
||||||
|
this.title_time.active = true;
|
||||||
|
this.title_score.stirng = 'Level';
|
||||||
|
NetManage.getactivityRankingList(3, (data) => {
|
||||||
|
this.initTable(JSON.stringify(data));
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
onClickFourthRank() {
|
||||||
|
this.title_time.active = true;
|
||||||
|
this.title_score.stirng = 'Level';
|
||||||
|
NetManage.getactivityRankingList(4, (data) => {
|
||||||
|
this.initTable(JSON.stringify(data));
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
initTable(rankData) {
|
||||||
|
console.log(`rank data---${JSON.stringify(rankData)}`);
|
||||||
|
|
||||||
this.tableContent.destroyAllChildren();
|
this.tableContent.destroyAllChildren();
|
||||||
var data = JSON.parse(rankData);
|
var data = JSON.parse(rankData);
|
||||||
this.nd_my.getComponent('cellRank').initdata(data.my_ranked);
|
this.nd_my.getComponent('cellRank').initdata(data.my_ranked);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.tableView
|
this.tableView
|
||||||
.getComponent('tableView')
|
.getComponent('tableView')
|
||||||
.initTableView(data.rows.length, {
|
.initTableView(data.rows.length, {
|
||||||
array: data.rows,
|
array: data.rows,
|
||||||
target: this,
|
target: this,
|
||||||
});
|
});
|
||||||
if (data.rows.length > 0) {
|
if (data.rows.length > 0) {
|
||||||
cc.Notifier.emit('clickrankhero', {
|
cc.Notifier.emit('clickrankhero', {
|
||||||
account_id: data.rows[0].user.account_id,
|
account_id: data.rows[0].user.account_id,
|
||||||
hero_id: data.rows[0].user.hero_id,
|
hero_id: data.rows[0].user.hero_id,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -47,6 +47,11 @@ cc.Class({
|
|||||||
default: [],
|
default: [],
|
||||||
type: cc.Node,
|
type: cc.Node,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
lb_time: {
|
||||||
|
default: null,
|
||||||
|
type: cc.Label,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// LIFE-CYCLE CALLBACKS:
|
// LIFE-CYCLE CALLBACKS:
|
||||||
@ -55,7 +60,6 @@ cc.Class({
|
|||||||
|
|
||||||
init: function (index, data, reload, group) {
|
init: function (index, data, reload, group) {
|
||||||
if (index >= data.array.length) {
|
if (index >= data.array.length) {
|
||||||
|
|
||||||
this.node.active = false;
|
this.node.active = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -121,7 +125,7 @@ cc.Class({
|
|||||||
account_id: this.account_id,
|
account_id: this.account_id,
|
||||||
hero_id: this.hero_id,
|
hero_id: this.hero_id,
|
||||||
});
|
});
|
||||||
uimanger.showUI(playerInfoUI,this.account_id);
|
uimanger.showUI(playerInfoUI, this.account_id);
|
||||||
},
|
},
|
||||||
|
|
||||||
onDisable() {
|
onDisable() {
|
||||||
|
@ -19,7 +19,7 @@ export class ShopItem extends cc.Component {
|
|||||||
this.lb_cost.string = data.price_info.cost_list[0][0].item_num;
|
this.lb_cost.string = data.price_info.cost_list[0][0].item_num;
|
||||||
//
|
//
|
||||||
var cfg = gameConfig.playerConfig[data.item_id];
|
var cfg = gameConfig.playerConfig[data.item_id];
|
||||||
this.lb_name.string = cfg.name;
|
if (this.lb_name) this.lb_name.string = cfg.name;
|
||||||
var skinres = cc.playerData.getheroSkinbyId(data.item_id, 0);
|
var skinres = cc.playerData.getheroSkinbyId(data.item_id, 0);
|
||||||
cc.loader.loadRes(
|
cc.loader.loadRes(
|
||||||
'spine/heropic/pic_hero' + skinres,
|
'spine/heropic/pic_hero' + skinres,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user