mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Add necessary explicit types for TextStyle let vars
This commit is contained in:
parent
6030dd6462
commit
b8367fdb8c
@ -106,7 +106,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
|
|||||||
const gachaInfoContainer = globalScene.add.container(160, 46);
|
const gachaInfoContainer = globalScene.add.container(160, 46);
|
||||||
|
|
||||||
const currentLanguage = i18next.resolvedLanguage ?? "en";
|
const currentLanguage = i18next.resolvedLanguage ?? "en";
|
||||||
let gachaTextStyle = TextStyle.WINDOW_ALT;
|
let gachaTextStyle: TextStyle = TextStyle.WINDOW_ALT;
|
||||||
let gachaX = 4;
|
let gachaX = 4;
|
||||||
let gachaY = 0;
|
let gachaY = 0;
|
||||||
let pokemonIconX = -20;
|
let pokemonIconX = -20;
|
||||||
|
@ -279,7 +279,7 @@ export default class FightUiHandler extends UiHandler implements InfoToggle {
|
|||||||
const ppPercentLeft = pp / maxPP;
|
const ppPercentLeft = pp / maxPP;
|
||||||
|
|
||||||
//** Determines TextStyle according to percentage of PP remaining */
|
//** Determines TextStyle according to percentage of PP remaining */
|
||||||
let ppColorStyle = TextStyle.MOVE_PP_FULL;
|
let ppColorStyle: TextStyle = TextStyle.MOVE_PP_FULL;
|
||||||
if (ppPercentLeft > 0.25 && ppPercentLeft <= 0.5) {
|
if (ppPercentLeft > 0.25 && ppPercentLeft <= 0.5) {
|
||||||
ppColorStyle = TextStyle.MOVE_PP_HALF_FULL;
|
ppColorStyle = TextStyle.MOVE_PP_HALF_FULL;
|
||||||
} else if (ppPercentLeft > 0 && ppPercentLeft <= 0.25) {
|
} else if (ppPercentLeft > 0 && ppPercentLeft <= 0.25) {
|
||||||
|
Loading…
Reference in New Issue
Block a user