天梯UI补充

This commit is contained in:
YiHan0621
2025-09-08 11:35:13 +08:00
parent bcb4f6fd3c
commit 409883801b
17 changed files with 745 additions and 51 deletions

View File

@@ -48,7 +48,7 @@ namespace TcgEngine.UI
RankMedalShow(ranking);
this.playerName.text = username;
this.rankScore.text = rankScore.ToString();
this.stars.text = "×" + stars;
this.stars.text = "×" + stars;
this.avatar.sprite = avatar;
PlayerRank pr = PlayerRank.Bronze; // 默认
@@ -74,6 +74,7 @@ namespace TcgEngine.UI
{
this.rankId.sprite = null; // 或者默认图
}
this.rankId.SetNativeSize();
if (rankScore != 0)
{

View File

@@ -49,6 +49,7 @@ namespace TcgEngine.UI
public GameObject[] hideGameObject;
private bool isHideObject = false;
public List<string> Usersid = new List<string>();
protected override void Awake()
{
base.Awake();
@@ -248,6 +249,8 @@ namespace TcgEngine.UI
rankData.rankScore, rankData.stars, false);
previous_rank = rankData.position;
previous_index = rank_order;
Usersid.Add(rankData.playerId);
//68a6ca87c1f7ac52b66ef8dc
}
index++;