完善抽卡界面以及根据优化意见和功能缺失做出调整

This commit is contained in:
YiHan0621
2025-10-13 01:41:20 +08:00
parent 2e4a318ca3
commit f14b8d6ac6
14 changed files with 702 additions and 304 deletions

View File

@@ -102,7 +102,7 @@ namespace TcgEngine.UI
{
base.Start();
//Set power abilities hover text
// 设置点击能力悬停文本
foreach (IconButton btn in hero_powers)
{
CardData icard = CardData.Get(btn.GetValue());
@@ -117,10 +117,6 @@ namespace TcgEngine.UI
hover.text += " <size=16>Mana: " + iability.mana_cost + "</size>";
}
}
if (!spawned)
{
SpawnCards();
}
}
protected override void Update()
@@ -149,7 +145,7 @@ namespace TcgEngine.UI
}
}
}
private void SpawnCards()
{
spawned = true;
@@ -200,7 +196,7 @@ namespace TcgEngine.UI
//----- Refresh UI --------
private void RefreshAll()
public void RefreshAll()
{
RefreshFilters();
RefreshCards();