上传UI信息和替换,修正战斗页面的UI处理
This commit is contained in:
@@ -50,6 +50,7 @@ namespace TcgEngine.UI
|
||||
public InputField user_password_new;
|
||||
public InputField user_password_confirm;
|
||||
public Button edit_change_email;
|
||||
public Button edit_email_text;
|
||||
public Button edit_change_password;
|
||||
public Button resend_button;
|
||||
public Button confirm_button;
|
||||
@@ -72,6 +73,14 @@ namespace TcgEngine.UI
|
||||
foreach (CardbackUI icon in cardbacks)
|
||||
icon.onClick += OnClickCardback;
|
||||
}
|
||||
|
||||
protected override void Start()
|
||||
{
|
||||
base.Start();
|
||||
renameButton.onClick.AddListener(OnPlayerRename);
|
||||
|
||||
edit_change_email.onClick.AddListener(OnClickChangeEmail);
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
@@ -79,11 +88,7 @@ namespace TcgEngine.UI
|
||||
}
|
||||
|
||||
|
||||
protected override void Start()
|
||||
{
|
||||
base.Start();
|
||||
renameButton.onClick.AddListener(OnPlayerRename);
|
||||
}
|
||||
|
||||
|
||||
private async void LoadData()
|
||||
{
|
||||
@@ -268,6 +273,7 @@ namespace TcgEngine.UI
|
||||
user_password_confirm.readOnly = true;
|
||||
user_password_new.gameObject.SetActive(false);
|
||||
user_password_confirm.gameObject.SetActive(false);
|
||||
edit_email_text.gameObject.SetActive(false);
|
||||
|
||||
UserData udata = Authenticator.Get().UserData;
|
||||
user_email.text = udata.email;
|
||||
@@ -282,6 +288,9 @@ namespace TcgEngine.UI
|
||||
edit_panel.Show();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 点击更改密码
|
||||
/// </summary>
|
||||
public void OnClickChangePass()
|
||||
{
|
||||
OnClickEdit();
|
||||
@@ -300,6 +309,9 @@ namespace TcgEngine.UI
|
||||
user_password_prev.Select();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 点击更改邮箱
|
||||
/// </summary>
|
||||
public void OnClickChangeEmail()
|
||||
{
|
||||
OnClickEdit();
|
||||
@@ -308,9 +320,13 @@ namespace TcgEngine.UI
|
||||
edit_change_password.gameObject.SetActive(false);
|
||||
resend_button.gameObject.SetActive(false);
|
||||
confirm_button.gameObject.SetActive(true);
|
||||
edit_email_text.gameObject.SetActive(true);
|
||||
user_email.Select();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重新发送确认请求
|
||||
/// </summary>
|
||||
public async void OnClickResendConfirm()
|
||||
{
|
||||
edit_error.text = "";
|
||||
|
||||
Reference in New Issue
Block a user