Yggdrasil account requries email to be username
This commit is contained in:
@@ -38,6 +38,7 @@ import org.jackhuang.hmcl.game.HMCLMultiCharacterSelector;
|
|||||||
import org.jackhuang.hmcl.setting.Settings;
|
import org.jackhuang.hmcl.setting.Settings;
|
||||||
import org.jackhuang.hmcl.task.Schedulers;
|
import org.jackhuang.hmcl.task.Schedulers;
|
||||||
import org.jackhuang.hmcl.task.Task;
|
import org.jackhuang.hmcl.task.Task;
|
||||||
|
import org.jackhuang.hmcl.ui.construct.Validator;
|
||||||
import org.jackhuang.hmcl.ui.wizard.DecoratorPage;
|
import org.jackhuang.hmcl.ui.wizard.DecoratorPage;
|
||||||
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
@@ -74,6 +75,7 @@ public final class AccountsPage extends StackPane implements DecoratorPage {
|
|||||||
|
|
||||||
txtPassword.setOnAction(e -> onCreationAccept());
|
txtPassword.setOnAction(e -> onCreationAccept());
|
||||||
txtUsername.setOnAction(e -> onCreationAccept());
|
txtUsername.setOnAction(e -> onCreationAccept());
|
||||||
|
txtUsername.getValidators().add(new Validator(Main.i18n("input.email"), str -> !txtPassword.isVisible() || str.contains("@")));
|
||||||
|
|
||||||
FXUtils.onChangeAndOperate(Settings.INSTANCE.selectedAccountProperty(), account -> {
|
FXUtils.onChangeAndOperate(Settings.INSTANCE.selectedAccountProperty(), account -> {
|
||||||
for (Node node : masonryPane.getChildren())
|
for (Node node : masonryPane.getChildren())
|
||||||
|
|||||||
@@ -362,17 +362,11 @@ color.dark_blue=Dark Blue
|
|||||||
color.purple=Purple
|
color.purple=Purple
|
||||||
|
|
||||||
wizard.next_>=Next >
|
wizard.next_>=Next >
|
||||||
wizard.next_mnemonic=N
|
|
||||||
wizard.<_prev=< Prev
|
wizard.<_prev=< Prev
|
||||||
wizard.prev_mnemonic=P
|
|
||||||
wizard.finish=Finish
|
wizard.finish=Finish
|
||||||
wizard.finish_mnemonic=F
|
|
||||||
wizard.cancel=Cancel
|
wizard.cancel=Cancel
|
||||||
wizard.cancel_mnemonic=C
|
|
||||||
wizard.help=Help
|
wizard.help=Help
|
||||||
wizard.help_mnemonic=H
|
|
||||||
wizard.close=Close
|
wizard.close=Close
|
||||||
wizard.close_mnemonic=C
|
|
||||||
wizard.summary=Summary
|
wizard.summary=Summary
|
||||||
wizard.failed=Failed
|
wizard.failed=Failed
|
||||||
wizard.steps=Steps
|
wizard.steps=Steps
|
||||||
|
|||||||
@@ -362,17 +362,11 @@ color.dark_blue=深蓝色
|
|||||||
color.purple=紫色
|
color.purple=紫色
|
||||||
|
|
||||||
wizard.next_>=下一步 >
|
wizard.next_>=下一步 >
|
||||||
wizard.next_mnemonic=下
|
|
||||||
wizard.<_prev=< 上一步
|
wizard.<_prev=< 上一步
|
||||||
wizard.prev_mnemonic=上
|
|
||||||
wizard.finish=完成
|
wizard.finish=完成
|
||||||
wizard.finish_mnemonic=完
|
|
||||||
wizard.cancel=取消
|
wizard.cancel=取消
|
||||||
wizard.cancel_mnemonic=取
|
|
||||||
wizard.help=帮助
|
wizard.help=帮助
|
||||||
wizard.help_mnemonic=帮
|
|
||||||
wizard.close=关闭
|
wizard.close=关闭
|
||||||
wizard.close_mnemonic=关
|
|
||||||
wizard.summary=概要
|
wizard.summary=概要
|
||||||
wizard.failed=失败
|
wizard.failed=失败
|
||||||
wizard.steps=步骤
|
wizard.steps=步骤
|
||||||
|
|||||||
Reference in New Issue
Block a user