UI更改与功能修正
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using TcgEngine.Client;
|
||||
@@ -55,6 +56,7 @@ namespace TcgEngine.UI
|
||||
public Text edit_error;
|
||||
|
||||
private string username;
|
||||
private string _userPlayerID;
|
||||
private UserData user_data;
|
||||
|
||||
private static PlayerPanel instance;
|
||||
@@ -89,7 +91,6 @@ namespace TcgEngine.UI
|
||||
user_data = Authenticator.Get().UserData;
|
||||
else
|
||||
user_data = await ApiClient.Get().LoadUserData(username);
|
||||
|
||||
RefreshPanel();
|
||||
}
|
||||
|
||||
@@ -131,7 +132,7 @@ namespace TcgEngine.UI
|
||||
defeats.text = user.defeats.ToString();
|
||||
cards_all.text = user.CountUniqueCards() + " / " + CardData.GetAllDeckbuilding().Count;
|
||||
|
||||
buttons_area?.SetActive(IsYou()); //Buttons like logout only active if your account
|
||||
// buttons_area?.SetActive(IsYou()); //Buttons like logout only active if your account
|
||||
account_button?.SetActive(Authenticator.Get().IsApi());
|
||||
sell_button?.SetActive(Authenticator.Get().IsApi());
|
||||
}
|
||||
@@ -419,7 +420,7 @@ namespace TcgEngine.UI
|
||||
public override void Show(bool instant = false)
|
||||
{
|
||||
base.Show(instant);
|
||||
ShowPlayer();
|
||||
ShowPlayer(); // 每次显示
|
||||
}
|
||||
|
||||
public override void Hide(bool instant = false)
|
||||
|
||||
Reference in New Issue
Block a user