完善抽卡界面以及根据优化意见和功能缺失做出调整
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user