mirror of
https://github.com/waynebian01/Shigure.git
synced 2026-09-03 07:15:24 +08:00
添加条件格式化支持和优化状态显示,增强用户界面信息展示
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user