mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 23:09:27 +02:00
Missed a couple of things to push
This commit is contained in:
parent
5f0fc22085
commit
4999b34de2
@ -76,7 +76,7 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override getFields(_config?: ModalConfig): string[] {
|
override getFields(_config?: ModalConfig): string[] {
|
||||||
return [i18next.t("menu:username"), i18next.t("menu:password")];
|
return [ i18next.t("menu:username"), i18next.t("menu:password") ];
|
||||||
}
|
}
|
||||||
|
|
||||||
override getWidth(_config?: ModalConfig): number {
|
override getWidth(_config?: ModalConfig): number {
|
||||||
@ -84,11 +84,11 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override getMargin(_config?: ModalConfig): [number, number, number, number] {
|
override getMargin(_config?: ModalConfig): [number, number, number, number] {
|
||||||
return [0, 0, 48, 0];
|
return [ 0, 0, 48, 0 ];
|
||||||
}
|
}
|
||||||
|
|
||||||
override getButtonLabels(_config?: ModalConfig): string[] {
|
override getButtonLabels(_config?: ModalConfig): string[] {
|
||||||
return [i18next.t("menu:login"), i18next.t("menu:register")];
|
return [ i18next.t("menu:login"), i18next.t("menu:register") ];
|
||||||
}
|
}
|
||||||
|
|
||||||
override getReadableErrorMessage(error: string): string {
|
override getReadableErrorMessage(error: string): string {
|
||||||
|
@ -389,7 +389,7 @@ export default class MenuUiHandler extends MessageUiHandler {
|
|||||||
label: "Admin",
|
label: "Admin",
|
||||||
handler: () => {
|
handler: () => {
|
||||||
|
|
||||||
const skippedAdminModes: AdminMode[] = [AdminMode.ADMIN]; // this is here so that we can skip the menu populating enums that aren't meant for the menu, such as the AdminMode.ADMIN
|
const skippedAdminModes: AdminMode[] = [ AdminMode.ADMIN ]; // this is here so that we can skip the menu populating enums that aren't meant for the menu, such as the AdminMode.ADMIN
|
||||||
const options: OptionSelectItem[] = [];
|
const options: OptionSelectItem[] = [];
|
||||||
Object.values(AdminMode).filter((v) => !isNaN(Number(v)) && !skippedAdminModes.includes(v as AdminMode)).forEach((mode) => { // this gets all the enums in a way we can use
|
Object.values(AdminMode).filter((v) => !isNaN(Number(v)) && !skippedAdminModes.includes(v as AdminMode)).forEach((mode) => { // this gets all the enums in a way we can use
|
||||||
options.push({
|
options.push({
|
||||||
|
Loading…
Reference in New Issue
Block a user