Added INSTRUCTIONS_TEXT TextStyle

This commit is contained in:
Lugiad 2025-06-27 17:07:01 +02:00 committed by GitHub
parent 9f37cd4cf7
commit 144d367a73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -561,7 +561,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
this.goFilterIconElement2.setName("sprite-goFilter2-icon-element"); this.goFilterIconElement2.setName("sprite-goFilter2-icon-element");
this.goFilterIconElement2.setScale(0.675); this.goFilterIconElement2.setScale(0.675);
this.goFilterIconElement2.setOrigin(0.0, 0.0); this.goFilterIconElement2.setOrigin(0.0, 0.0);
this.goFilterLabel = addTextObject(30, 2, i18next.t("pokedexUiHandler:goFilters"), TextStyle.PARTY, { this.goFilterLabel = addTextObject(30, 2, i18next.t("pokedexUiHandler:goFilters"), TextStyle.INSTRUCTIONS_TEXT, {
fontSize: instructionTextSize, fontSize: instructionTextSize,
}); });
this.goFilterLabel.setName("text-goFilter-label"); this.goFilterLabel.setName("text-goFilter-label");
@ -577,7 +577,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
20, 20,
10, 10,
i18next.t("pokedexUiHandler:toggleDecorations"), i18next.t("pokedexUiHandler:toggleDecorations"),
TextStyle.PARTY, TextStyle.INSTRUCTIONS_TEXT,
{ fontSize: instructionTextSize }, { fontSize: instructionTextSize },
); );
this.toggleDecorationsLabel.setName("text-toggleDecorations-label"); this.toggleDecorationsLabel.setName("text-toggleDecorations-label");
@ -588,7 +588,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
this.showFormTrayIconElement.setName("sprite-showFormTray-icon-element"); this.showFormTrayIconElement.setName("sprite-showFormTray-icon-element");
this.showFormTrayIconElement.setScale(0.675); this.showFormTrayIconElement.setScale(0.675);
this.showFormTrayIconElement.setOrigin(0.0, 0.0); this.showFormTrayIconElement.setOrigin(0.0, 0.0);
this.showFormTrayLabel = addTextObject(16, 168, i18next.t("pokedexUiHandler:showForms"), TextStyle.PARTY, { this.showFormTrayLabel = addTextObject(16, 168, i18next.t("pokedexUiHandler:showForms"), TextStyle.INSTRUCTIONS_TEXT, {
fontSize: instructionTextSize, fontSize: instructionTextSize,
}); });
this.showFormTrayLabel.setName("text-showFormTray-label"); this.showFormTrayLabel.setName("text-showFormTray-label");