Skip to content

Commit

Permalink
Made changed suggested in code review
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeTappert committed Sep 30, 2024
1 parent e6cf0c9 commit f79a2a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ui/summary-ui-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ export default class SummaryUiHandler extends UiHandler {
this.candyIcon.setTint(argbFromRgba(Utils.rgbHexToRgba(colorScheme[0])));
this.candyOverlay.setTint(argbFromRgba(Utils.rgbHexToRgba(colorScheme[1])));

this.friendshipOverlay.setTint(argbFromRgba(Utils.rgbHexToRgba(colorScheme[1])));

this.numberText.setText(Utils.padInt(this.pokemon.species.speciesId, 4));
this.numberText.setColor(this.getTextColor(!this.pokemon.isShiny() ? TextStyle.SUMMARY : TextStyle.SUMMARY_GOLD));
Expand Down Expand Up @@ -371,8 +370,8 @@ export default class SummaryUiHandler extends UiHandler {
this.candyShadow.setCrop(0, 0, 16, candyCropY);

if (this.friendshipShadow.visible) {
this.friendshipShadow.on("pointerover", () => (this.scene as BattleScene).ui.showTooltip("", `${i18next.t("pokemonSummary:friendship")}`, true));
this.friendshipShadow.on("pointerout", () => (this.scene as BattleScene).ui.hideTooltip());
this.friendshipShadow.on("pointerover", () => this.scene.ui.showTooltip("", `${i18next.t("pokemonSummary:friendship")}`, true));
this.friendshipShadow.on("pointerout", () => this.scene.ui.hideTooltip());
}

this.friendshipText.setText(`${this.pokemon?.friendship || "0"} / 255`);
Expand Down

0 comments on commit f79a2a9

Please sign in to comment.