remove button fontsize option

This commit is contained in:
KimJeongSun 2024-08-28 00:48:35 +09:00
parent 346bc8932b
commit b6396771fd

View File

@ -7,7 +7,6 @@ import i18next from "i18next";
interface LanguageSetting { interface LanguageSetting {
buttonLabelFontSize?: string,
inputFieldFontSize?: string, inputFieldFontSize?: string,
warningMessageFontSize?: string, warningMessageFontSize?: string,
errorMessageFontSize?: string, errorMessageFontSize?: string,
@ -65,18 +64,6 @@ export default class RegistrationFormUiHandler extends FormModalUiHandler {
setup(): void { setup(): void {
super.setup(); super.setup();
this.buttonContainers.forEach((buttonContainer: Phaser.GameObjects.Container, i: number) => {
buttonContainer.each((child: Phaser.GameObjects.GameObject) => {
if (child instanceof Phaser.GameObjects.Text) {
// if buttonLabelFontSize is defined in languageSettings, set the font size to the value
const buttonLabelFontSize = languageSettings[i18next.language]?.buttonLabelFontSize;
if (buttonLabelFontSize) {
child.setFontSize(buttonLabelFontSize);
}
}
});
});
this.modalContainer.each((child: Phaser.GameObjects.GameObject) => { this.modalContainer.each((child: Phaser.GameObjects.GameObject) => {
// if child is a text object, and not the title text, set the font size to 42px // if child is a text object, and not the title text, set the font size to 42px
if (child instanceof Phaser.GameObjects.Text && child !== this.titleText) { if (child instanceof Phaser.GameObjects.Text && child !== this.titleText) {