updaet
This commit is contained in:
parent
0fc28fc37c
commit
f0d5f5c3c8
@ -12020,6 +12020,9 @@
|
|||||||
"cegget": {
|
"cegget": {
|
||||||
"__id__": 315
|
"__id__": 315
|
||||||
},
|
},
|
||||||
|
"wantedNode": {
|
||||||
|
"__id__": 292
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -20855,6 +20855,9 @@
|
|||||||
"cegget": {
|
"cegget": {
|
||||||
"__id__": 183
|
"__id__": 183
|
||||||
},
|
},
|
||||||
|
"wantedNode": {
|
||||||
|
"__id__": 128
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -4691,6 +4691,9 @@
|
|||||||
"cegget": {
|
"cegget": {
|
||||||
"__id__": 75
|
"__id__": 75
|
||||||
},
|
},
|
||||||
|
"wantedNode": {
|
||||||
|
"__id__": 121
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -9309,6 +9312,9 @@
|
|||||||
"cegget": {
|
"cegget": {
|
||||||
"__id__": 208
|
"__id__": 208
|
||||||
},
|
},
|
||||||
|
"wantedNode": {
|
||||||
|
"__id__": 254
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -13927,6 +13933,9 @@
|
|||||||
"cegget": {
|
"cegget": {
|
||||||
"__id__": 341
|
"__id__": 341
|
||||||
},
|
},
|
||||||
|
"wantedNode": {
|
||||||
|
"__id__": 387
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -18545,6 +18554,9 @@
|
|||||||
"cegget": {
|
"cegget": {
|
||||||
"__id__": 474
|
"__id__": 474
|
||||||
},
|
},
|
||||||
|
"wantedNode": {
|
||||||
|
"__id__": 520
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -3360,6 +3360,9 @@
|
|||||||
"cegget": {
|
"cegget": {
|
||||||
"__id__": 35
|
"__id__": 35
|
||||||
},
|
},
|
||||||
|
"wantedNode": {
|
||||||
|
"__id__": 84
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -6730,6 +6733,9 @@
|
|||||||
"cegget": {
|
"cegget": {
|
||||||
"__id__": 133
|
"__id__": 133
|
||||||
},
|
},
|
||||||
|
"wantedNode": {
|
||||||
|
"__id__": 182
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -10100,6 +10106,9 @@
|
|||||||
"cegget": {
|
"cegget": {
|
||||||
"__id__": 231
|
"__id__": 231
|
||||||
},
|
},
|
||||||
|
"wantedNode": {
|
||||||
|
"__id__": 280
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -33,6 +33,11 @@ export default class guns_info extends UIBase {
|
|||||||
@property(cc.ProgressBar) limitBar:cc.ProgressBar = null;
|
@property(cc.ProgressBar) limitBar:cc.ProgressBar = null;
|
||||||
|
|
||||||
@property(cc.Label) cegget:cc.Label = null;
|
@property(cc.Label) cegget:cc.Label = null;
|
||||||
|
@property(cc.Node) wantedNode:cc.Node = null;
|
||||||
|
|
||||||
|
showWanted(){
|
||||||
|
this.wantedNode.active = true
|
||||||
|
}
|
||||||
|
|
||||||
protected update(dt: number): void {
|
protected update(dt: number): void {
|
||||||
if (this.scrollView.getScrollOffset().y <= 0) {
|
if (this.scrollView.getScrollOffset().y <= 0) {
|
||||||
@ -60,6 +65,11 @@ export default class guns_info extends UIBase {
|
|||||||
["35", this.lab_successrate],
|
["35", this.lab_successrate],
|
||||||
["37", this.lab_naijiu],
|
["37", this.lab_naijiu],
|
||||||
]);
|
]);
|
||||||
|
console.log(JSON.stringify(data.lock_type))
|
||||||
|
|
||||||
|
if(data.lock_type==3){
|
||||||
|
this.showWanted()
|
||||||
|
}
|
||||||
|
|
||||||
const imgConfigs = all_ItemConfig[data.gun_id];
|
const imgConfigs = all_ItemConfig[data.gun_id];
|
||||||
this.title.getComponent(cc.Label).string = imgConfigs.name;
|
this.title.getComponent(cc.Label).string = imgConfigs.name;
|
||||||
|
@ -12,10 +12,17 @@ export class guns_single extends cc.Component {
|
|||||||
@property(cc.ProgressBar) limitBar:cc.ProgressBar = null;
|
@property(cc.ProgressBar) limitBar:cc.ProgressBar = null;
|
||||||
|
|
||||||
@property(cc.Label) cegget:cc.Label = null;
|
@property(cc.Label) cegget:cc.Label = null;
|
||||||
|
|
||||||
|
@property(cc.Node) wantedNode:cc.Node = null
|
||||||
|
|
||||||
private curData = {};
|
private curData = {};
|
||||||
|
|
||||||
private guninfo = {};
|
private guninfo = {};
|
||||||
|
|
||||||
|
showWanted(){
|
||||||
|
this.wantedNode.active = true
|
||||||
|
}
|
||||||
|
|
||||||
init(data) {
|
init(data) {
|
||||||
|
|
||||||
if (data == 0) {
|
if (data == 0) {
|
||||||
@ -24,7 +31,11 @@ export class guns_single extends cc.Component {
|
|||||||
}
|
}
|
||||||
var limit = data.ceg_uplimit
|
var limit = data.ceg_uplimit
|
||||||
var get = data.today_get_gold
|
var get = data.today_get_gold
|
||||||
|
console.log(JSON.stringify(data.lock_type))
|
||||||
|
|
||||||
|
if(data.lock_type==3){
|
||||||
|
this.showWanted()
|
||||||
|
}
|
||||||
|
|
||||||
if(this.limitBar)this.limitBar.progress =(limit-get)/limit
|
if(this.limitBar)this.limitBar.progress =(limit-get)/limit
|
||||||
if(this.cegget)this.cegget.string = `${limit-data.today_get_gold}/${data.ceg_uplimit}`
|
if(this.cegget)this.cegget.string = `${limit-data.today_get_gold}/${data.ceg_uplimit}`
|
||||||
|
@ -78,10 +78,16 @@ export class UIHeroinfo extends UIBase {
|
|||||||
|
|
||||||
@property(cc.Label) cegget:cc.Label = null;
|
@property(cc.Label) cegget:cc.Label = null;
|
||||||
|
|
||||||
|
@property(cc.Node) wantedNode:cc.Node = null
|
||||||
|
|
||||||
private hero_id = 0;
|
private hero_id = 0;
|
||||||
private allSkins = [];
|
private allSkins = [];
|
||||||
private curentBuyId = 0;
|
private curentBuyId = 0;
|
||||||
|
|
||||||
|
showWanted(){
|
||||||
|
this.wantedNode.active = true
|
||||||
|
}
|
||||||
|
|
||||||
protected update(dt: number): void {
|
protected update(dt: number): void {
|
||||||
if (this.infoScrollview.getScrollOffset().y <= 0) {
|
if (this.infoScrollview.getScrollOffset().y <= 0) {
|
||||||
this.arrow_down.active = true;
|
this.arrow_down.active = true;
|
||||||
@ -102,6 +108,11 @@ export class UIHeroinfo extends UIBase {
|
|||||||
|
|
||||||
init(data: any) {
|
init(data: any) {
|
||||||
|
|
||||||
|
console.log(JSON.stringify(data.lock_type))
|
||||||
|
if(data.lock_type==3){
|
||||||
|
this.showWanted()
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
var limit = data.ceg_uplimit
|
var limit = data.ceg_uplimit
|
||||||
var get = data.today_get_gold
|
var get = data.today_get_gold
|
||||||
|
@ -34,6 +34,15 @@ cc.Class({
|
|||||||
type: cc.Label,
|
type: cc.Label,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
wantedNode: {
|
||||||
|
default: null,
|
||||||
|
type: cc.Node,
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
showWanted(){
|
||||||
|
this.wantedNode.active = true
|
||||||
},
|
},
|
||||||
|
|
||||||
initdata(v) {
|
initdata(v) {
|
||||||
@ -45,6 +54,11 @@ cc.Class({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(JSON.stringify(v.lock_type))
|
||||||
|
if(v.lock_type==3){
|
||||||
|
this.showWanted()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
var limit = v.ceg_uplimit
|
var limit = v.ceg_uplimit
|
||||||
@ -54,6 +68,8 @@ cc.Class({
|
|||||||
if(this.cegget) this.cegget.string = `${limit-v.today_get_gold}/${v.ceg_uplimit}`
|
if(this.cegget) this.cegget.string = `${limit-v.today_get_gold}/${v.ceg_uplimit}`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.hero_id = v.hero_id;
|
this.hero_id = v.hero_id;
|
||||||
var self = this;
|
var self = this;
|
||||||
var cfg = gameConfig.playerConfig[v.hero_id];
|
var cfg = gameConfig.playerConfig[v.hero_id];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user