添加条件格式化支持和优化状态显示,增强用户界面信息展示

This commit is contained in:
waynebian01
2026-08-31 01:49:46 +08:00
parent e2b57fecfe
commit 3e8168b84b
2 changed files with 28 additions and 1 deletions

View File

@@ -1691,7 +1691,8 @@ public sealed class StatusForm : Form
continue;
}
var summary = string.Join(" ", unitData.Select(kv => $"{kv.Key}: {UiTheme.FormatValue(kv.Value)}"));
var summary = string.Join(" ", unitData.Select(kv =>
$"{DisplayPartyFieldName(kv.Key)}: {UiTheme.FormatValue(kv.Value)}"));
items.Add(new ListViewItem(new[] { $"Unit {unitKey}", summary }));
}
}
@@ -1699,6 +1700,16 @@ public sealed class StatusForm : Form
ReplaceItems(_partyList, items);
}
private static string DisplayPartyFieldName(string key)
{
if (!SpellFieldKey.TryParseAuraMember(key, out var spellId, out _))
{
return key;
}
return SpellIconCatalog.ResolveSuggestionName(spellId, null) ?? key;
}
private void UpdateUnitInfoList(RenderSnapshot snapshot)
{
var items = new List<ListViewItem>();