Skip to content

Commit

Permalink
Merge pull request #234 from Linkaaaaa/account-column
Browse files Browse the repository at this point in the history
  • Loading branch information
Sejsel authored Jun 4, 2024
2 parents 1f3c372 + 4ca4816 commit d657dc9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ArcdpsLogManager/ArcdpsLogManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Each new log data update causes a revision increase.
See LogDataUpdater for the updates.
-->
<Version>1.11.1.1</Version>
<Version>1.11.1.2</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DebounceThrottle" Version="2.0.0" />
Expand Down
1 change: 1 addition & 0 deletions ArcdpsLogManager/Configuration/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public static class Settings
private static readonly List<ISettingsMigration> Migrations =
[
new NullVersionSettingsMigration(settings => settings.HiddenLogListColumns.Add("Instabilities")),
new MaxVersionSettingsMigration(new Version(1, 11, 1, 2), settings => settings.HiddenLogListColumns.Add("Account"))
];

private static StoredSettings Values => Stored.Value;
Expand Down
1 change: 1 addition & 0 deletions ArcdpsLogManager/Configuration/StoredSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class StoredSettings
public List<string> HiddenLogListColumns { get; set; } =
[
"Character",
"Account",
"Map ID",
"Game Version",
"arcdps Version",
Expand Down
9 changes: 9 additions & 0 deletions ArcdpsLogManager/Sections/LogList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,15 @@ private GridView<LogData> ConstructLogGridView(LogDetailPanel detailPanel, Multi
}
});

gridView.Columns.Add(new GridColumn
{
HeaderText = "Account",
DataCell = new TextBoxCell
{
Binding = new DelegateBinding<LogData, string>(x => x.PointOfView?.AccountName.TrimStart(':') ?? "Unknown")
}
});

var compositionCell = new DrawableCell();
compositionCell.Paint += (sender, args) =>
{
Expand Down

0 comments on commit d657dc9

Please sign in to comment.