update
This commit is contained in:
parent
0901a1fc74
commit
8c5274d7ee
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,4 @@
|
||||
import { QualityStar } from '../UI/QualityStar';
|
||||
import { UIBase } from '../UI/UIBase';
|
||||
|
||||
const { ccclass, property } = cc._decorator;
|
||||
@ -15,6 +16,9 @@ export class UpFail extends UIBase {
|
||||
@property(cc.Label) lb_lucky: cc.Label = null;
|
||||
@property(cc.Label) lb_adv: cc.Label = null;
|
||||
|
||||
@property(QualityStar) oldStar: QualityStar = null;
|
||||
@property(QualityStar) newStar: QualityStar = null;
|
||||
|
||||
init(data: any) {
|
||||
console.log(JSON.stringify(data));
|
||||
this.beforeNode.getComponent('herochoseone').initdata();
|
||||
@ -24,6 +28,9 @@ export class UpFail extends UIBase {
|
||||
this.lb_def.string = data.old_hero.def;
|
||||
this.lb_lucky.string = data.old_hero.lucky;
|
||||
this.lb_adv.string = data.old_hero.advanced_count;
|
||||
|
||||
this.oldStar.initStar(data.old_hero.quality);
|
||||
this.newStar.initStar(data.new_hero.quality);
|
||||
}
|
||||
|
||||
onClose() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { QualityStar } from '../UI/QualityStar';
|
||||
import { UIBase } from '../UI/UIBase';
|
||||
|
||||
const { ccclass, property } = cc._decorator;
|
||||
@ -20,6 +21,9 @@ export class UpSuccess extends UIBase {
|
||||
@property(cc.Label) lb_luckyaf: cc.Label = null;
|
||||
@property(cc.Label) lb_advaf: cc.Label = null;
|
||||
|
||||
@property(QualityStar) oldStar: QualityStar = null;
|
||||
@property(QualityStar) newStar: QualityStar = null;
|
||||
|
||||
init(data: any) {
|
||||
this.beforeNode.getComponent('herochoseone').initdata(data.old_hero);
|
||||
this.lb_lv.string = data.new_hero.hero_lv;
|
||||
@ -35,6 +39,9 @@ export class UpSuccess extends UIBase {
|
||||
this.lb_defaf.string = data.new_hero.def;
|
||||
this.lb_luckyaf.string = data.new_hero.lucky;
|
||||
this.lb_advaf.string = data.new_hero.advanced_count;
|
||||
|
||||
this.oldStar.initStar(data.old_hero.quality);
|
||||
this.newStar.initStar(data.new_hero.quality);
|
||||
}
|
||||
|
||||
onClose() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user