mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 19:02:16 +02:00
Compare commits
No commits in common. "3491b5f5e2dc4c5e40c7a38c1654fc158fb5be23" and "3dac0993f4c7a87c6bf582e12310fa7bdb4ed0a3" have entirely different histories.
3491b5f5e2
...
3dac0993f4
Binary file not shown.
Before Width: | Height: | Size: 172 B |
Binary file not shown.
Before Width: | Height: | Size: 205 B |
Binary file not shown.
Before Width: | Height: | Size: 172 B |
Binary file not shown.
Before Width: | Height: | Size: 205 B |
@ -98,8 +98,6 @@ export class LoadingScene extends SceneBase {
|
|||||||
this.loadImage("ha_capsule", "ui", "ha_capsule.png");
|
this.loadImage("ha_capsule", "ui", "ha_capsule.png");
|
||||||
this.loadImage("champion_ribbon", "ui", "champion_ribbon.png");
|
this.loadImage("champion_ribbon", "ui", "champion_ribbon.png");
|
||||||
this.loadImage("icon_spliced", "ui");
|
this.loadImage("icon_spliced", "ui");
|
||||||
this.loadImage("icon_lock", "ui", "icon_lock.png");
|
|
||||||
this.loadImage("icon_stop", "ui", "icon_stop.png");
|
|
||||||
this.loadImage("icon_tera", "ui");
|
this.loadImage("icon_tera", "ui");
|
||||||
this.loadImage("type_tera", "ui");
|
this.loadImage("type_tera", "ui");
|
||||||
this.loadAtlas("type_bgs", "ui");
|
this.loadAtlas("type_bgs", "ui");
|
||||||
|
@ -263,8 +263,6 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
private pokemonHatchedIcon : Phaser.GameObjects.Sprite;
|
private pokemonHatchedIcon : Phaser.GameObjects.Sprite;
|
||||||
private pokemonHatchedCountText: Phaser.GameObjects.Text;
|
private pokemonHatchedCountText: Phaser.GameObjects.Text;
|
||||||
private pokemonShinyIcon: Phaser.GameObjects.Sprite;
|
private pokemonShinyIcon: Phaser.GameObjects.Sprite;
|
||||||
private pokemonPassiveDisabledIcon: Phaser.GameObjects.Sprite;
|
|
||||||
private pokemonPassiveLockedIcon: Phaser.GameObjects.Sprite;
|
|
||||||
|
|
||||||
private instructionsContainer: Phaser.GameObjects.Container;
|
private instructionsContainer: Phaser.GameObjects.Container;
|
||||||
private filterInstructionsContainer: Phaser.GameObjects.Container;
|
private filterInstructionsContainer: Phaser.GameObjects.Container;
|
||||||
@ -576,18 +574,6 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
this.pokemonPassiveText.setOrigin(0, 0);
|
this.pokemonPassiveText.setOrigin(0, 0);
|
||||||
this.starterSelectContainer.add(this.pokemonPassiveText);
|
this.starterSelectContainer.add(this.pokemonPassiveText);
|
||||||
|
|
||||||
this.pokemonPassiveDisabledIcon = this.scene.add.sprite(starterInfoXPos, 137 + starterInfoYOffset, "icon_stop");
|
|
||||||
this.pokemonPassiveDisabledIcon.setOrigin(0, 0.5);
|
|
||||||
this.pokemonPassiveDisabledIcon.setScale(0.35);
|
|
||||||
this.pokemonPassiveDisabledIcon.setVisible(false);
|
|
||||||
this.starterSelectContainer.add(this.pokemonPassiveDisabledIcon);
|
|
||||||
|
|
||||||
this.pokemonPassiveLockedIcon = this.scene.add.sprite(starterInfoXPos, 137 + starterInfoYOffset, "icon_lock");
|
|
||||||
this.pokemonPassiveLockedIcon.setOrigin(0, 0.5);
|
|
||||||
this.pokemonPassiveLockedIcon.setScale(0.42, 0.38);
|
|
||||||
this.pokemonPassiveLockedIcon.setVisible(false);
|
|
||||||
this.starterSelectContainer.add(this.pokemonPassiveLockedIcon);
|
|
||||||
|
|
||||||
this.pokemonNatureLabelText = addTextObject(this.scene, 6, 145 + starterInfoYOffset, i18next.t("starterSelectUiHandler:nature"), TextStyle.SUMMARY_ALT, { fontSize: starterInfoTextSize });
|
this.pokemonNatureLabelText = addTextObject(this.scene, 6, 145 + starterInfoYOffset, i18next.t("starterSelectUiHandler:nature"), TextStyle.SUMMARY_ALT, { fontSize: starterInfoTextSize });
|
||||||
this.pokemonNatureLabelText.setOrigin(0, 0);
|
this.pokemonNatureLabelText.setOrigin(0, 0);
|
||||||
this.pokemonNatureLabelText.setVisible(false);
|
this.pokemonNatureLabelText.setVisible(false);
|
||||||
@ -748,7 +734,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
this.pokemonShinyIcon = this.scene.add.sprite(14, 76, "shiny_icons");
|
this.pokemonShinyIcon = this.scene.add.sprite(14, 76, "shiny_icons");
|
||||||
this.pokemonShinyIcon.setOrigin(0.15, 0.2);
|
this.pokemonShinyIcon.setOrigin(0.15, 0.2);
|
||||||
this.pokemonShinyIcon.setScale(1);
|
this.pokemonShinyIcon.setScale(1);
|
||||||
this.pokemonCaughtHatchedContainer.add(this.pokemonShinyIcon);
|
this.pokemonCaughtHatchedContainer.add ((this.pokemonShinyIcon));
|
||||||
|
|
||||||
this.pokemonHatchedCountText = addTextObject(this.scene, 24, 19, "0", TextStyle.SUMMARY_ALT);
|
this.pokemonHatchedCountText = addTextObject(this.scene, 24, 19, "0", TextStyle.SUMMARY_ALT);
|
||||||
this.pokemonHatchedCountText.setOrigin(0, 0);
|
this.pokemonHatchedCountText.setOrigin(0, 0);
|
||||||
@ -2949,10 +2935,6 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.pokemonSprite.setVisible(false);
|
this.pokemonSprite.setVisible(false);
|
||||||
this.pokemonPassiveLabelText.setVisible(false);
|
|
||||||
this.pokemonPassiveText.setVisible(false);
|
|
||||||
this.pokemonPassiveDisabledIcon.setVisible(false);
|
|
||||||
this.pokemonPassiveLockedIcon.setVisible(false);
|
|
||||||
|
|
||||||
if (this.assetLoadCancelled) {
|
if (this.assetLoadCancelled) {
|
||||||
this.assetLoadCancelled.value = true;
|
this.assetLoadCancelled.value = true;
|
||||||
@ -3087,30 +3069,27 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
const passiveAbility = allAbilities[starterPassiveAbilities[this.lastSpecies.speciesId]];
|
const passiveAbility = allAbilities[starterPassiveAbilities[this.lastSpecies.speciesId]];
|
||||||
|
|
||||||
if (passiveAbility) {
|
if (passiveAbility) {
|
||||||
const isUnlocked = !!(passiveAttr & PassiveAttr.UNLOCKED);
|
const isUnlocked = passiveAttr & PassiveAttr.UNLOCKED;
|
||||||
const isEnabled = !!(passiveAttr & PassiveAttr.ENABLED);
|
const isEnabled = passiveAttr & PassiveAttr.ENABLED;
|
||||||
|
|
||||||
|
const labelStyle = isUnlocked ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GRAY;
|
||||||
const textStyle = isUnlocked && isEnabled ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GRAY;
|
const textStyle = isUnlocked && isEnabled ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GRAY;
|
||||||
|
const labelAlpha = isUnlocked ? 1 : 0.5;
|
||||||
const textAlpha = isUnlocked && isEnabled ? 1 : 0.5;
|
const textAlpha = isUnlocked && isEnabled ? 1 : 0.5;
|
||||||
|
|
||||||
this.pokemonPassiveLabelText.setVisible(true);
|
this.pokemonPassiveLabelText.setVisible(true);
|
||||||
this.pokemonPassiveLabelText.setColor(this.getTextColor(TextStyle.SUMMARY_ALT));
|
this.pokemonPassiveLabelText.setColor(this.getTextColor(labelStyle));
|
||||||
this.pokemonPassiveLabelText.setShadowColor(this.getTextColor(TextStyle.SUMMARY_ALT, true));
|
this.pokemonPassiveLabelText.setAlpha(labelAlpha);
|
||||||
|
this.pokemonPassiveLabelText.setShadowColor(this.getTextColor(labelStyle, true));
|
||||||
|
|
||||||
this.pokemonPassiveText.setVisible(true);
|
this.pokemonPassiveText.setVisible(true);
|
||||||
this.pokemonPassiveText.setText(passiveAbility.name);
|
this.pokemonPassiveText.setText(passiveAbility.name);
|
||||||
this.pokemonPassiveText.setColor(this.getTextColor(textStyle));
|
this.pokemonPassiveText.setColor(this.getTextColor(textStyle));
|
||||||
this.pokemonPassiveText.setAlpha(textAlpha);
|
this.pokemonPassiveText.setAlpha(textAlpha);
|
||||||
this.pokemonPassiveText.setShadowColor(this.getTextColor(textStyle, true));
|
this.pokemonPassiveText.setShadowColor(this.getTextColor(textStyle, true));
|
||||||
|
} else {
|
||||||
const iconPosition = {
|
this.pokemonPassiveLabelText.setVisible(false);
|
||||||
x: this.pokemonPassiveText.x + this.pokemonPassiveText.displayWidth + 1,
|
this.pokemonPassiveText.setVisible(false);
|
||||||
y: this.pokemonPassiveText.y + this.pokemonPassiveText.displayHeight / 2
|
|
||||||
};
|
|
||||||
this.pokemonPassiveDisabledIcon.setVisible(isUnlocked && !isEnabled);
|
|
||||||
this.pokemonPassiveDisabledIcon.setPosition(iconPosition.x, iconPosition.y);
|
|
||||||
this.pokemonPassiveLockedIcon.setVisible(!isUnlocked);
|
|
||||||
this.pokemonPassiveLockedIcon.setPosition(iconPosition.x, iconPosition.y);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.pokemonNatureText.setText(getNatureName(natureIndex as unknown as Nature, true, true, false, this.scene.uiTheme));
|
this.pokemonNatureText.setText(getNatureName(natureIndex as unknown as Nature, true, true, false, this.scene.uiTheme));
|
||||||
|
Loading…
Reference in New Issue
Block a user