UI更改与功能修正

This commit is contained in:
YiHan0621
2025-09-17 16:22:06 +08:00
parent 0fd35d8c21
commit 3f425c9434
191 changed files with 1271 additions and 4307 deletions

View File

@@ -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)