This commit is contained in:
guoqing.zhu 2022-06-05 16:54:23 +08:00
parent 0fc28fc37c
commit f0d5f5c3c8
8 changed files with 75 additions and 0 deletions

View File

@ -12020,6 +12020,9 @@
"cegget": {
"__id__": 315
},
"wantedNode": {
"__id__": 292
},
"_id": ""
},
{

View File

@ -20855,6 +20855,9 @@
"cegget": {
"__id__": 183
},
"wantedNode": {
"__id__": 128
},
"_id": ""
},
{

View File

@ -4691,6 +4691,9 @@
"cegget": {
"__id__": 75
},
"wantedNode": {
"__id__": 121
},
"_id": ""
},
{
@ -9309,6 +9312,9 @@
"cegget": {
"__id__": 208
},
"wantedNode": {
"__id__": 254
},
"_id": ""
},
{
@ -13927,6 +13933,9 @@
"cegget": {
"__id__": 341
},
"wantedNode": {
"__id__": 387
},
"_id": ""
},
{
@ -18545,6 +18554,9 @@
"cegget": {
"__id__": 474
},
"wantedNode": {
"__id__": 520
},
"_id": ""
},
{

View File

@ -3360,6 +3360,9 @@
"cegget": {
"__id__": 35
},
"wantedNode": {
"__id__": 84
},
"_id": ""
},
{
@ -6730,6 +6733,9 @@
"cegget": {
"__id__": 133
},
"wantedNode": {
"__id__": 182
},
"_id": ""
},
{
@ -10100,6 +10106,9 @@
"cegget": {
"__id__": 231
},
"wantedNode": {
"__id__": 280
},
"_id": ""
},
{

View File

@ -33,6 +33,11 @@ export default class guns_info extends UIBase {
@property(cc.ProgressBar) limitBar:cc.ProgressBar = 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 {
if (this.scrollView.getScrollOffset().y <= 0) {
@ -60,6 +65,11 @@ export default class guns_info extends UIBase {
["35", this.lab_successrate],
["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];
this.title.getComponent(cc.Label).string = imgConfigs.name;

View File

@ -12,10 +12,17 @@ export class guns_single extends cc.Component {
@property(cc.ProgressBar) limitBar:cc.ProgressBar = null;
@property(cc.Label) cegget:cc.Label = null;
@property(cc.Node) wantedNode:cc.Node = null
private curData = {};
private guninfo = {};
showWanted(){
this.wantedNode.active = true
}
init(data) {
if (data == 0) {
@ -24,7 +31,11 @@ export class guns_single extends cc.Component {
}
var limit = data.ceg_uplimit
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.cegget)this.cegget.string = `${limit-data.today_get_gold}/${data.ceg_uplimit}`

View File

@ -78,10 +78,16 @@ export class UIHeroinfo extends UIBase {
@property(cc.Label) cegget:cc.Label = null;
@property(cc.Node) wantedNode:cc.Node = null
private hero_id = 0;
private allSkins = [];
private curentBuyId = 0;
showWanted(){
this.wantedNode.active = true
}
protected update(dt: number): void {
if (this.infoScrollview.getScrollOffset().y <= 0) {
this.arrow_down.active = true;
@ -102,6 +108,11 @@ export class UIHeroinfo extends UIBase {
init(data: any) {
console.log(JSON.stringify(data.lock_type))
if(data.lock_type==3){
this.showWanted()
}
//
var limit = data.ceg_uplimit
var get = data.today_get_gold

View File

@ -34,8 +34,17 @@ cc.Class({
type: cc.Label,
},
wantedNode: {
default: null,
type: cc.Node,
},
},
showWanted(){
this.wantedNode.active = true
},
initdata(v) {
this._data = v;
if (v != 0) {
@ -45,6 +54,11 @@ cc.Class({
return;
}
console.log(JSON.stringify(v.lock_type))
if(v.lock_type==3){
this.showWanted()
}
//
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}`
this.hero_id = v.hero_id;
var self = this;
var cfg = gameConfig.playerConfig[v.hero_id];