[Fix] Updated jsons to match new icons and removed pokeball icon from legacy mode

This commit is contained in:
Tiago Rodrigues 2025-07-22 23:35:35 +01:00
parent 749f373903
commit 4f21ed808f
5 changed files with 46 additions and 54 deletions

View File

@ -4,8 +4,8 @@
"image": "party_discard.png", "image": "party_discard.png",
"format": "RGBA8888", "format": "RGBA8888",
"size": { "size": {
"w": 52, "w": 75,
"h": 32 "h": 50
}, },
"scale": 1, "scale": 1,
"frames": [ "frames": [
@ -14,20 +14,20 @@
"rotated": false, "rotated": false,
"trimmed": false, "trimmed": false,
"sourceSize": { "sourceSize": {
"w": 52, "w": 75,
"h": 16 "h": 25
}, },
"spriteSourceSize": { "spriteSourceSize": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 52, "w": 75,
"h": 16 "h": 25
}, },
"frame": { "frame": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 52, "w": 75,
"h": 16 "h": 25
} }
}, },
{ {
@ -35,20 +35,20 @@
"rotated": false, "rotated": false,
"trimmed": false, "trimmed": false,
"sourceSize": { "sourceSize": {
"w": 52, "w": 75,
"h": 16 "h": 25
}, },
"spriteSourceSize": { "spriteSourceSize": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 52, "w": 75,
"h": 16 "h": 25
}, },
"frame": { "frame": {
"x": 0, "x": 0,
"y": 16, "y": 25,
"w": 52, "w": 75,
"h": 16 "h": 25
} }
} }
] ]

View File

@ -4,8 +4,8 @@
"image": "party_transfer.png", "image": "party_transfer.png",
"format": "RGBA8888", "format": "RGBA8888",
"size": { "size": {
"w": 52, "w": 75,
"h": 32 "h": 50
}, },
"scale": 1, "scale": 1,
"frames": [ "frames": [
@ -14,20 +14,20 @@
"rotated": false, "rotated": false,
"trimmed": false, "trimmed": false,
"sourceSize": { "sourceSize": {
"w": 52, "w": 75,
"h": 16 "h": 25
}, },
"spriteSourceSize": { "spriteSourceSize": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 52, "w": 75,
"h": 16 "h": 25
}, },
"frame": { "frame": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 52, "w": 75,
"h": 16 "h": 25
} }
}, },
{ {
@ -35,20 +35,20 @@
"rotated": false, "rotated": false,
"trimmed": false, "trimmed": false,
"sourceSize": { "sourceSize": {
"w": 52, "w": 75,
"h": 16 "h": 25
}, },
"spriteSourceSize": { "spriteSourceSize": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 52, "w": 75,
"h": 16 "h": 25
}, },
"frame": { "frame": {
"x": 0, "x": 0,
"y": 16, "y": 25,
"w": 52, "w": 75,
"h": 16 "h": 25
} }
} }
] ]

View File

@ -5,7 +5,7 @@
"format": "RGBA8888", "format": "RGBA8888",
"size": { "size": {
"w": 75, "w": 75,
"h": 46 "h": 50
}, },
"scale": 1, "scale": 1,
"frames": [ "frames": [
@ -15,19 +15,19 @@
"trimmed": false, "trimmed": false,
"sourceSize": { "sourceSize": {
"w": 75, "w": 75,
"h": 23 "h": 25
}, },
"spriteSourceSize": { "spriteSourceSize": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 75, "w": 75,
"h": 23 "h": 25
}, },
"frame": { "frame": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 75, "w": 75,
"h": 23 "h": 25
} }
}, },
{ {
@ -36,19 +36,19 @@
"trimmed": false, "trimmed": false,
"sourceSize": { "sourceSize": {
"w": 75, "w": 75,
"h": 23 "h": 25
}, },
"spriteSourceSize": { "spriteSourceSize": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 75, "w": 75,
"h": 23 "h": 25
}, },
"frame": { "frame": {
"x": 0, "x": 0,
"y": 23, "y": 25,
"w": 75, "w": 75,
"h": 23 "h": 25
} }
} }
] ]

View File

@ -5,7 +5,7 @@
"format": "RGBA8888", "format": "RGBA8888",
"size": { "size": {
"w": 75, "w": 75,
"h": 46 "h": 50
}, },
"scale": 1, "scale": 1,
"frames": [ "frames": [
@ -15,19 +15,19 @@
"trimmed": false, "trimmed": false,
"sourceSize": { "sourceSize": {
"w": 75, "w": 75,
"h": 23 "h": 25
}, },
"spriteSourceSize": { "spriteSourceSize": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 75, "w": 75,
"h": 23 "h": 25
}, },
"frame": { "frame": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 75, "w": 75,
"h": 23 "h": 25
} }
}, },
{ {
@ -36,19 +36,19 @@
"trimmed": false, "trimmed": false,
"sourceSize": { "sourceSize": {
"w": 75, "w": 75,
"h": 23 "h": 25
}, },
"spriteSourceSize": { "spriteSourceSize": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 75, "w": 75,
"h": 23 "h": 25
}, },
"frame": { "frame": {
"x": 0, "x": 0,
"y": 23, "y": 25,
"w": 75, "w": 75,
"h": 23 "h": 25
} }
} }
] ]

View File

@ -2107,7 +2107,6 @@ class PartyDiscardModeButton extends Phaser.GameObjects.Container {
private transferIcon: Phaser.GameObjects.Sprite; private transferIcon: Phaser.GameObjects.Sprite;
private discardIcon: Phaser.GameObjects.Sprite; private discardIcon: Phaser.GameObjects.Sprite;
private partyDiscardPb: Phaser.GameObjects.Sprite;
private textBox: Phaser.GameObjects.Text; private textBox: Phaser.GameObjects.Text;
constructor(x: number, y: number) { constructor(x: number, y: number) {
@ -2119,12 +2118,10 @@ class PartyDiscardModeButton extends Phaser.GameObjects.Container {
setup() { setup() {
this.transferIcon = globalScene.add.sprite(0, 0, "party_transfer"); this.transferIcon = globalScene.add.sprite(0, 0, "party_transfer");
this.discardIcon = globalScene.add.sprite(0, 0, "party_discard"); this.discardIcon = globalScene.add.sprite(0, 0, "party_discard");
this.partyDiscardPb = globalScene.add.sprite(-20, 0, "party_pb");
this.textBox = addTextObject(-8, -7, i18next.t("partyUiHandler:TRANSFER"), TextStyle.PARTY); this.textBox = addTextObject(-8, -7, i18next.t("partyUiHandler:TRANSFER"), TextStyle.PARTY);
this.add(this.transferIcon); this.add(this.transferIcon);
this.add(this.discardIcon); this.add(this.discardIcon);
this.add(this.partyDiscardPb);
this.add(this.textBox); this.add(this.textBox);
this.clear(); this.clear();
@ -2139,7 +2136,6 @@ class PartyDiscardModeButton extends Phaser.GameObjects.Container {
this.transferIcon.setFrame("selected"); this.transferIcon.setFrame("selected");
this.discardIcon.setFrame("selected"); this.discardIcon.setFrame("selected");
this.partyDiscardPb.setFrame("party_pb_sel");
} }
deselect() { deselect() {
@ -2151,7 +2147,6 @@ class PartyDiscardModeButton extends Phaser.GameObjects.Container {
this.transferIcon.setFrame("normal"); this.transferIcon.setFrame("normal");
this.discardIcon.setFrame("normal"); this.discardIcon.setFrame("normal");
this.partyDiscardPb.setFrame("party_pb");
} }
toggleIcon(partyMode: number) { toggleIcon(partyMode: number) {
@ -2159,7 +2154,6 @@ class PartyDiscardModeButton extends Phaser.GameObjects.Container {
case PartyUiMode.MODIFIER_TRANSFER: case PartyUiMode.MODIFIER_TRANSFER:
this.transferIcon.setVisible(true); this.transferIcon.setVisible(true);
this.discardIcon.setVisible(false); this.discardIcon.setVisible(false);
this.partyDiscardPb.setVisible(true);
this.textBox.setVisible(true); this.textBox.setVisible(true);
this.textBox.setText(i18next.t("partyUiHandler:TRANSFER")); this.textBox.setText(i18next.t("partyUiHandler:TRANSFER"));
this.setPosition( this.setPosition(
@ -2171,7 +2165,6 @@ class PartyDiscardModeButton extends Phaser.GameObjects.Container {
case PartyUiMode.DISCARD: case PartyUiMode.DISCARD:
this.transferIcon.setVisible(false); this.transferIcon.setVisible(false);
this.discardIcon.setVisible(true); this.discardIcon.setVisible(true);
this.partyDiscardPb.setVisible(true);
this.textBox.setVisible(true); this.textBox.setVisible(true);
this.textBox.setText(i18next.t("partyUiHandler:DISCARD")); this.textBox.setText(i18next.t("partyUiHandler:DISCARD"));
this.setPosition( this.setPosition(
@ -2189,6 +2182,5 @@ class PartyDiscardModeButton extends Phaser.GameObjects.Container {
this.transferIcon.setVisible(false); this.transferIcon.setVisible(false);
this.discardIcon.setVisible(false); this.discardIcon.setVisible(false);
this.textBox.setVisible(false); this.textBox.setVisible(false);
this.partyDiscardPb.setVisible(false);
} }
} }