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

@@ -100,7 +100,7 @@ namespace TcgEngine.UI
//Set power abilities hover text
foreach (IconButton btn in hero_powers)
{
CardData icard = CardData.Get(btn.value);
CardData icard = CardData.Get(btn.GetValue());
HoverTargetUI hover = btn.GetComponent<HoverTargetUI>();
AbilityData iability = icard?.GetAbility(AbilityTrigger.Activate);
if (icard != null && hover != null && iability != null)
@@ -198,6 +198,9 @@ namespace TcgEngine.UI
RefreshStarterDeck();
}
/// <summary>
/// 筛选刷新
/// </summary>
private void RefreshFilters()
{
search.text = "";
@@ -388,7 +391,7 @@ namespace TcgEngine.UI
foreach (IconButton btn in hero_powers)
{
if (deck.hero != null && btn.value == deck.hero.tid)
if (deck.hero != null && btn.GetValue() == deck.hero.tid)
btn.Activate();
}
@@ -615,7 +618,7 @@ namespace TcgEngine.UI
{
foreach (TeamData team in TeamData.GetAll())
{
if (button.value == team.id)
if (button.GetValue() == TeamTitleData.Team(team.id))
filter_team = team;
}
}
@@ -806,7 +809,7 @@ namespace TcgEngine.UI
foreach (IconButton btn in hero_powers)
{
if (btn.IsActive())
return btn.value;
return btn.GetValue();
}
return "";
}