update
This commit is contained in:
parent
0b04cf4816
commit
e0ef810593
@ -69,7 +69,10 @@ export default class guns_info extends UIBase {
|
||||
|
||||
if(data.lock_type==3){
|
||||
this.showWanted()
|
||||
}
|
||||
}else{
|
||||
this.wantedNode.active = false
|
||||
|
||||
}
|
||||
|
||||
const imgConfigs = all_ItemConfig[data.gun_id];
|
||||
this.title.getComponent(cc.Label).string = imgConfigs.name;
|
||||
|
@ -35,6 +35,8 @@ export class guns_single extends cc.Component {
|
||||
|
||||
if(data.lock_type==3){
|
||||
this.showWanted()
|
||||
}else{
|
||||
this.wantedNode.active = false
|
||||
}
|
||||
|
||||
if(this.limitBar)this.limitBar.progress =(limit-get)/limit
|
||||
|
@ -111,7 +111,9 @@ export class UIHeroinfo extends UIBase {
|
||||
console.log(JSON.stringify(data.lock_type))
|
||||
if(data.lock_type==3){
|
||||
this.showWanted()
|
||||
}
|
||||
}else{
|
||||
this.wantedNode.active = false
|
||||
}
|
||||
|
||||
//
|
||||
var limit = data.ceg_uplimit
|
||||
|
@ -57,7 +57,9 @@ cc.Class({
|
||||
console.log(JSON.stringify(v.lock_type))
|
||||
if(v.lock_type==3){
|
||||
this.showWanted()
|
||||
}
|
||||
}else{
|
||||
this.wantedNode.active = false
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
|
@ -151,18 +151,23 @@ cc.Class({
|
||||
|
||||
onLoad() {
|
||||
cc.Notifier.on('hasChooseHero', this, (data) => {
|
||||
this.herolistNode.children[this.currentBtn]
|
||||
if(this.herolistNode){
|
||||
this.herolistNode.children[this.currentBtn]
|
||||
.getComponent('mission_oneBox')
|
||||
.init(data);
|
||||
this.allChooseHero[this.currentBtn] = data;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
cc.Notifier.on('hasChooseGun', this, (data) => {
|
||||
console.log(JSON.stringify(data))
|
||||
this.gunlistNode.children[this.currentBtn]
|
||||
if(this.gunlistNode){
|
||||
this.gunlistNode.children[this.currentBtn]
|
||||
.getComponent('mission_oneBox')
|
||||
.init(data);
|
||||
this.allChooseGun[this.currentBtn] = data;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// cc.Notifier.on('ClearOneBox', this, (data) => {
|
||||
|
@ -113,7 +113,7 @@ cc.Class({
|
||||
});
|
||||
//set cover
|
||||
if (
|
||||
this.allHasGotHero.includes(element.hero_uniid.toString())
|
||||
this.allHasGotHero.includes(element.hero_uniid.toString()) || element.lock_type==3
|
||||
) {
|
||||
node.getComponent('wantedHero').showCover();
|
||||
}
|
||||
@ -141,7 +141,7 @@ cc.Class({
|
||||
});
|
||||
|
||||
if (
|
||||
this.allHasGotGun.includes(element.gun_uniid.toString())
|
||||
this.allHasGotGun.includes(element.gun_uniid.toString()) || element.lock_type==3
|
||||
) {
|
||||
node.getComponent('wantedHero').showCover();
|
||||
}
|
||||
|
@ -65,7 +65,10 @@ cc.Class({
|
||||
onCancelBtn(){
|
||||
cc.uiHelper.showTips('Boost cancel!');
|
||||
NetManage.cancelOfferRewardMission(this.missionId,()=>{
|
||||
|
||||
this.boostNode.active = false
|
||||
this.receiveNode.active = false
|
||||
this.getNode.active = true
|
||||
this.lb_time.node.parent.active = false
|
||||
})
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user