UI更改与功能修正
This commit is contained in:
@@ -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 "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user