Skip to content

Commit

Permalink
Version update (config key components)
Browse files Browse the repository at this point in the history
  • Loading branch information
Banane9 committed May 10, 2024
1 parent 0d80fa4 commit 496361b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion FlexibleContactsSort/ContactsSortingConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ internal sealed class ContactsSortingConfig : ConfigSection
private readonly DefiningConfigKey<int> _onlineStatusPriorityKey = new("OnlineStatusPriority", "Priority of the contact's online status. Set 0 to ignore; negative to invert.", () => 1_000);
private readonly DefiningConfigKey<int> _outgoingContactRequestPriorityKey = new("OutgoingContactRequestPriority", "Priority of the contact being an outgoing request. Set 0 to ignore; negative to invert.", () => 1_000_000);
private readonly DefiningConfigKey<HashSet<string>> _pinnedContactsKey = new("PinnedContacts", "List of Contacts to always keep at the top.", () => new(), internalAccessOnly: true);
private readonly QuantifiedDefiningConfigKey<int, Time> _readMessageCooldownKey = new("ReadMessageCooldown", new UnitConfiguration("s", "F0", " ", new[] { "m", "s" }), null, "Delay before a contact with freshly-read messages is counted as such. Set 0 to disable.", () => 120, 0, int.MaxValue);

private readonly DefiningConfigKey<int> _readMessageCooldownKey = new("ReadMessageCooldown", "Delay before a contact with freshly-read messages is counted as such. Set 0 to disable.", () => 120)
{
new ConfigKeyQuantity<int, Time>(new UnitConfiguration("s", "0", " ", new[] { "m", "s" }), null, 0, int.MaxValue )
};

public int AlphabeticPriority => _alphabeticPriorityKey.GetValue();
public override string Description => "Contains options for how to sort the Contacts list.";
Expand Down
8 changes: 4 additions & 4 deletions FlexibleContactsSort/FlexibleContactsSort.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageId>FlexibleContactSorting</PackageId>
<Title>Flexible Contact Sorting</Title>
<Authors>Banane9</Authors>
<Version>0.4.1-beta</Version>
<Version>0.4.2-beta</Version>
<Description>This MonkeyLoader mod for Resonite allows sorting contacts flexibly and to your liking, including pinning your favorites to the top.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>LGPL-3.0-or-later</PackageLicenseExpression>
Expand Down Expand Up @@ -42,15 +42,15 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="MonkeyLoader" Version="0.15.3-beta" />
<PackageReference Include="MonkeyLoader.GamePacks.Resonite" Version="0.14.1-beta" />
<PackageReference Include="MonkeyLoader" Version="0.16.3-beta" />
<PackageReference Include="MonkeyLoader.GamePacks.Resonite" Version="0.15.1-beta" />
<PackageReference Include="PolySharp" Version="1.14.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Resonite.Elements.Core" Version="1.0.2" />
<PackageReference Include="Resonite.Elements.Quantity" Version="1.0.2" />
<PackageReference Include="Resonite.FrooxEngine" Version="2024.4.26.1426" />
<PackageReference Include="Resonite.FrooxEngine" Version="2024.4.32.495" />
<PackageReference Include="Resonite.SkyFrost.Base" Version="1.0.2" />
<PackageReference Include="System.Text.Json" Version="8.0.2">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit 496361b

Please sign in to comment.