Fixed some minor bugs, made the save related errors have error codes, and added updated icons

This commit is contained in:
Opaque02 2024-10-14 08:29:15 +10:00
parent ec359f549c
commit b1eb36c3bf
7 changed files with 17 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 460 B

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 556 B

After

Width:  |  Height:  |  Size: 219 B

View File

@ -168,7 +168,7 @@ export default class AdminUiHandler extends FormModalUiHandler {
const img = this.scene.add.image(this.inputContainers[i].x + nineSlice.width + this.buttonGap, this.inputContainers[i].y + (Math.floor(nineSlice.height / 2)), adminResult[aR] === "" ? "link_icon" : "unlink_icon");
img.setName(`adminBtn_${aR}`);
img.setOrigin(0.5, 0.5);
img.setScale(0.5);
//img.setScale(0.5);
img.setInteractive();
img.on("pointerdown", () => {
const service = aR.toLowerCase().replace("id", ""); // this takes our key (discordId or googleId) and removes the "Id" at the end to make it more url friendly

View File

@ -106,9 +106,9 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
case this.ERR_PASSWORD_MATCH:
return i18next.t("menu:unmatchingPassword");
case this.ERR_NO_SAVES:
return i18next.t("menu:noSaves");
return "P01: " + i18next.t("menu:noSaves");
case this.ERR_TOO_MANY_SAVES:
return i18next.t("menu:tooManySaves");
return "P02: " + i18next.t("menu:tooManySaves");
}
return super.getReadableErrorMessage(error);

View File

@ -70,6 +70,10 @@ export default class TestDialogueUiHandler extends FormModalUiHandler {
show(args: any[]): boolean {
const ui = this.getUi();
const fields = this.getFields();
const hasTitle = !!this.getModalTitle();
this.updateFields(fields, hasTitle);
this.updateContainer(args[0] as ModalConfig);
const input = this.inputs[0];
input.setMaxLength(255);