This commit is contained in:
2026-06-21 14:42:04 +02:00
parent 22cfb1f0a9
commit a3b4cc530d
15 changed files with 2437 additions and 403 deletions

View File

@@ -93,7 +93,7 @@ namespace AnotherReplayReader
var instantApms = ApmPlotter.CalculateInstantApm(data, begin, end);
string PartialApmToString(double v, int i)
{
if (plotter.Players[i].IsComputer)
if (plotter.PlayersArray[i].IsComputer)
{
return "这是 AI";
}
@@ -168,7 +168,7 @@ namespace AnotherReplayReader
{
var series = new LineSeries
{
Title = _replay.Players[i].PlayerName,
Title = _plotter.Result.PlayersArray[i].PlayerName,
};
series.Points.AddRange(points);
model.Series.Add(series);
@@ -237,6 +237,15 @@ namespace AnotherReplayReader
await FilterDataAsync(TimeSpan.MinValue, TimeSpan.MaxValue, true);
}
}
private async void OnOpenEventDumpClicked(object sender, RoutedEventArgs e)
{
var plotter = await _plotter;
var dump = new EventDump();
dump.LoadStringHashes();
dump.SetDumpData(_replay.Mod, plotter);
await dump.ShowPlainText();
}
}
internal class ApmWindowPlotViewModel : INotifyPropertyChanged