[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",
"format": "RGBA8888",
"size": {
"w": 52,
"h": 32
"w": 75,
"h": 50
},
"scale": 1,
"frames": [
@ -14,20 +14,20 @@
"rotated": false,
"trimmed": false,
"sourceSize": {
"w": 52,
"h": 16
"w": 75,
"h": 25
},
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 52,
"h": 16
"w": 75,
"h": 25
},
"frame": {
"x": 0,
"y": 0,
"w": 52,
"h": 16
"w": 75,
"h": 25
}
},
{
@ -35,20 +35,20 @@
"rotated": false,
"trimmed": false,
"sourceSize": {
"w": 52,
"h": 16
"w": 75,
"h": 25
},
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 52,
"h": 16
"w": 75,
"h": 25
},
"frame": {
"x": 0,
"y": 16,
"w": 52,
"h": 16
"y": 25,
"w": 75,
"h": 25
}
}
]

View File

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

View File

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

View File

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

View File

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