Keep sortie prep feedback visible after save
This commit is contained in:
@@ -12075,10 +12075,15 @@ export class CampScene extends Phaser.Scene {
|
||||
|
||||
private saveCampToSlot(slot: number) {
|
||||
soundDirector.playSelect();
|
||||
const returnToSortiePrep = this.sortieObjects.length > 0;
|
||||
this.hideCampSaveSlotPanel();
|
||||
this.campaign = saveCampaignState(getCampaignState(), slot);
|
||||
if (returnToSortiePrep) {
|
||||
this.showSortiePrep();
|
||||
} else {
|
||||
this.render();
|
||||
}
|
||||
this.showCampNotice(`슬롯 ${this.campaign.activeSaveSlot}에 군영 진행을 저장했습니다.`);
|
||||
this.render();
|
||||
}
|
||||
|
||||
private handleSaveSlotKey(event: KeyboardEvent) {
|
||||
@@ -14823,16 +14828,17 @@ export class CampScene extends Phaser.Scene {
|
||||
private showCampNotice(message: string) {
|
||||
this.dialogueObjects.forEach((object) => object.destroy());
|
||||
this.dialogueObjects = [];
|
||||
const depth = this.sortieObjects.length > 0 ? 72 : 30;
|
||||
const box = this.add.rectangle(this.scale.width / 2, 104, 720, 58, 0x101820, 0.96);
|
||||
box.setStrokeStyle(2, palette.gold, 0.84);
|
||||
box.setDepth(30);
|
||||
box.setDepth(depth);
|
||||
const text = this.add.text(this.scale.width / 2, 104, message, {
|
||||
...this.textStyle(16, '#f2e3bf', true),
|
||||
align: 'center',
|
||||
wordWrap: { width: 670, useAdvancedWrap: true }
|
||||
});
|
||||
text.setOrigin(0.5);
|
||||
text.setDepth(31);
|
||||
text.setDepth(depth + 1);
|
||||
this.dialogueObjects.push(box, text);
|
||||
this.tweens.add({
|
||||
targets: this.dialogueObjects,
|
||||
|
||||
Reference in New Issue
Block a user