-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jump to profile row from build warning.
The implementation of this is a hack, since pages can't really talk to each other, and especially since the row isn't guaranteed to be visible through the filters. The hack forces it to be visible until the filters are changed, which actually requires multiple property change notifications and cycles to work correctly, but doesn't seem to be too noticeable in the UI, performance-wise. Only really noticeable effect is that the row will sometimes appear at the top and sometimes in the middle, but is still always within the visible area. Should be an acceptable tradeoff. Jump is activated by double-click. For now there's no additional link in the info panel, but it could be added easily if there's a need. Introduction of `RecordKey` wasn't strictly necessary here, but it's a first step toward refactoring something that's very repetitive. Fixes #14.
- Loading branch information
1 parent
0e6b108
commit 3423596
Showing
11 changed files
with
147 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
|
||
namespace Focus.Apps.EasyNpc.GameData.Records | ||
{ | ||
public interface IRecordKey | ||
{ | ||
string BasePluginName { get; } | ||
string LocalFormIdHex { get; } | ||
} | ||
|
||
public record RecordKey(string BasePluginName, string LocalFormIdHex) : IRecordKey | ||
{ | ||
public RecordKey(IRecordKey key) : this(key.BasePluginName, key.LocalFormIdHex) { } | ||
|
||
public bool Equals(IRecordKey key) | ||
{ | ||
return key.BasePluginName == BasePluginName && key.LocalFormIdHex == LocalFormIdHex; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.