mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 23:09:27 +02:00
Fixed some minor bugs, made the save related errors have error codes, and added updated icons
This commit is contained in:
parent
ec359f549c
commit
b1eb36c3bf
BIN
public/images/ui/legacy/link_icon.png
Normal file
BIN
public/images/ui/legacy/link_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 209 B |
BIN
public/images/ui/legacy/unlink_icon.png
Normal file
BIN
public/images/ui/legacy/unlink_icon.png
Normal file
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 |
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user