Compare commits

...

2 Commits

Author SHA1 Message Date
TJH
7edc38914c 免费赠送相关
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
2025-10-14 17:33:43 +08:00
TJH
fc6e89939d 关闭插屏,小游戏赠送的bug修改 2025-10-14 17:29:26 +08:00
4 changed files with 441 additions and 394 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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);
} }

View File

@ -1,3 +1,8 @@
{ {
"__version__": "1.3.9" "__version__": "1.3.9",
"splash-setting": {
"logo": {
"type": "none"
}
}
} }

View File

@ -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"
} }
}, },