Compare commits
2 Commits
028860232a
...
7edc38914c
| Author | SHA1 | Date | |
|---|---|---|---|
| 7edc38914c | |||
| fc6e89939d |
File diff suppressed because it is too large
Load Diff
@ -28,6 +28,10 @@ export class SysGift extends Component {
|
|||||||
|
|
||||||
onLoad(): void {
|
onLoad(): void {
|
||||||
this.hideAll();
|
this.hideAll();
|
||||||
|
|
||||||
|
let sp_win = this.info.getChildByName("sysgift_win");
|
||||||
|
let scale = 116 / sp_win.getComponent(Sprite).spriteFrame.width;
|
||||||
|
sp_win.setScale(scale, scale, scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
hideAll() {
|
hideAll() {
|
||||||
@ -45,16 +49,11 @@ export class SysGift extends Component {
|
|||||||
if (!frb) return;
|
if (!frb) return;
|
||||||
|
|
||||||
let txt_spin_num = this.info.getChildByName("count")
|
let txt_spin_num = this.info.getChildByName("count")
|
||||||
txt_spin_num.getComponent(Label).string = (frb.Ongoing.Frn.toLocaleString())
|
txt_spin_num.getComponent(Label).string = frb.Ongoing.Frn.toLocaleString()
|
||||||
|
|
||||||
let sp_win = this.info.getChildByName("sysgift_win")
|
// let sp_win = this.info.getChildByName("sysgift_win")
|
||||||
let txt_win = this.info.getChildByName("win")
|
let txt_win = this.info.getChildByName("win")
|
||||||
|
|
||||||
sp_win.getComponent(LocalizedSprite).fetchRender();
|
|
||||||
let scale = 116 / sp_win.getComponent(Sprite).spriteFrame.width;
|
|
||||||
sp_win.setScale(scale, scale, scale);
|
|
||||||
|
|
||||||
|
|
||||||
let num = Math.round(frb.Ongoing.Fra * 100 + 1e-6) / 100;
|
let num = Math.round(frb.Ongoing.Fra * 100 + 1e-6) / 100;
|
||||||
txt_win.getComponent(Label).string = num.toLocaleString('en-US', {
|
txt_win.getComponent(Label).string = num.toLocaleString('en-US', {
|
||||||
minimumFractionDigits: 2,
|
minimumFractionDigits: 2,
|
||||||
@ -67,6 +66,7 @@ export class SysGift extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onClickConfirm() {
|
onClickConfirm() {
|
||||||
|
GameDataManager.instance.frb.Finished = null;
|
||||||
this.hide(this.settle);
|
this.hide(this.settle);
|
||||||
this.node.emit(SYS_GIFT.SETTLE_CONTINUE);
|
this.node.emit(SYS_GIFT.SETTLE_CONTINUE);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
{
|
{
|
||||||
"__version__": "1.3.9"
|
"__version__": "1.3.9",
|
||||||
|
"splash-setting": {
|
||||||
|
"logo": {
|
||||||
|
"type": "none"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
"label": "customSplash",
|
"label": "customSplash",
|
||||||
"enable": true,
|
"enable": true,
|
||||||
"customSplash": {
|
"customSplash": {
|
||||||
"complete": false,
|
"complete": true,
|
||||||
"form": "https://creator-api.cocos.com/api/form/show?sid=571ede397bfe249c5b5fb193d6022644"
|
"form": "https://creator-api.cocos.com/api/form/show?sid=571ede397bfe249c5b5fb193d6022644"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user