[Fix] Background fixes,manage menu is the only one affected by changes now

This commit is contained in:
Tiago Rodrigues 2025-06-20 07:10:20 +01:00
parent 2691d4e391
commit a4e721fe2a
4 changed files with 10 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -131,6 +131,7 @@ export class LoadingScene extends SceneBase {
this.loadImage("party_bg", "ui"); this.loadImage("party_bg", "ui");
this.loadImage("party_bg_double", "ui"); this.loadImage("party_bg_double", "ui");
this.loadImage("party_bg_double_manage", "ui");
this.loadAtlas("party_slot_main", "ui"); this.loadAtlas("party_slot_main", "ui");
this.loadAtlas("party_slot", "ui"); this.loadAtlas("party_slot", "ui");
this.loadImage("party_slot_overlay_lv", "ui"); this.loadImage("party_slot_overlay_lv", "ui");

View File

@ -360,7 +360,12 @@ export default class PartyUiHandler extends MessageUiHandler {
this.showMovePp = args.length > 6 && args[6]; this.showMovePp = args.length > 6 && args[6];
this.partyContainer.setVisible(true); this.partyContainer.setVisible(true);
this.partyBg.setTexture(`party_bg${globalScene.currentBattle.double ? "_double" : ""}`); if (this.isItemManageMode()) {
this.partyBg.setTexture(`party_bg${globalScene.currentBattle.double ? "_double_manage" : ""}`);
} else {
this.partyBg.setTexture(`party_bg${globalScene.currentBattle.double ? "_double" : ""}`);
}
this.populatePartySlots(); this.populatePartySlots();
this.PartyDiscardModeButton.toggleIcon(this.partyUiMode); this.PartyDiscardModeButton.toggleIcon(this.partyUiMode);
this.setCursor(0); this.setCursor(0);
@ -1785,7 +1790,9 @@ class PartySlot extends Phaser.GameObjects.Container {
? -184 + ? -184 +
(globalScene.currentBattle.double ? -40 : 0) + (globalScene.currentBattle.double ? -40 : 0) +
(28 + (globalScene.currentBattle.double ? 8 : 0)) * slotIndex (28 + (globalScene.currentBattle.double ? 8 : 0)) * slotIndex
: -124 + (globalScene.currentBattle.double ? -20 : 0) + slotIndex * 55, : partyUiMode === PartyUiMode.MODIFIER_TRANSFER
? -124 + (globalScene.currentBattle.double ? -20 : 0) + slotIndex * 55
: -124 + (globalScene.currentBattle.double ? -8 : 0) + slotIndex * 64,
); );
this.slotIndex = slotIndex; this.slotIndex = slotIndex;