Skip to content

Commit

Permalink
Update for new Sociable status
Browse files Browse the repository at this point in the history
  • Loading branch information
Banane9 committed May 31, 2024
1 parent 496361b commit 1af475d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
9 changes: 5 additions & 4 deletions FlexibleContactsSort/FlexibleContactSorting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ private static int GetOnlineStatusOrder(ContactData contactData)
{
return (contactData?.CurrentStatus.OnlineStatus).GetValueOrDefault() switch
{
OnlineStatus.Online => 1,
OnlineStatus.Away => 2,
OnlineStatus.Busy => 3,
_ => 4,
OnlineStatus.Sociable => 1,
OnlineStatus.Online => 2,
OnlineStatus.Away => 3,
OnlineStatus.Busy => 4,
_ => 5,
};
}

Expand Down
12 changes: 6 additions & 6 deletions FlexibleContactsSort/FlexibleContactsSort.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<PackageId>FlexibleContactSorting</PackageId>
<Title>Flexible Contact Sorting</Title>
<Authors>Banane9</Authors>
<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>
<Version>0.5.0-beta</Version>
<Description>This MonkeyLoader mod for Resonite allows sorting contacts flexibly and to your liking, including pinning your favorites to the top. It also adds other Quality of Life features to the Contacts Page, such as a clear button for the search, an extra color for your outgoing conctact requests, capacity display to contacts' sessions, and contacts loading without lag.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>LGPL-3.0-or-later</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/ResoniteModdingGroup/FlexibleContactsSort</PackageProjectUrl>
Expand Down Expand Up @@ -42,16 +42,16 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="MonkeyLoader" Version="0.16.3-beta" />
<PackageReference Include="MonkeyLoader.GamePacks.Resonite" Version="0.15.1-beta" />
<PackageReference Include="MonkeyLoader" Version="0.16.4-beta" />
<PackageReference Include="MonkeyLoader.GamePacks.Resonite" Version="0.15.2-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.32.495" />
<PackageReference Include="Resonite.SkyFrost.Base" Version="1.0.2" />
<PackageReference Include="Resonite.FrooxEngine" Version="2024.5.31.202" />
<PackageReference Include="Resonite.SkyFrost.Base" Version="1.0.3" />
<PackageReference Include="System.Text.Json" Version="8.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@ Flexible Contacts Sort
======================

A [MonkeyLoader](https://github.com/MonkeyModdingTroop/MonkeyLoader) mod for [Resonite](https://resonite.com/) that sorts contacts Better™ and to your liking, including pinning your favorites to the top.
It also adds other Quality of Life features to the Contacts Page, such as a clear button for the search, an extra color for your outgoing conctact requests, capacity display to contacts' sessions, and contacts loading without lag.

Semi-relevant Resonite issue: [#41](https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/41).

## Sorting Order
I've made a few noteworthy changes to the sorting order:
- No longer sorts by most recent message timestamp
- Incoming friend requests are now the first category, preceding Online friends
- Neos Bot is now forced to the top of the list
- 'Resonite' and personal account are now forced to the top of the list
- You can pin contacts to always appear at the top of the list, regardless of status
- Sent Requests are separated from Offline friends, and have a yellow background color

### Vanilla Sort
1. Friends with unread messages
2. Ties broken by online status
1. Online Friends
2. Incoming Friend Requests
3. Away Friends
4. Busy Friends
5. Offline Friends and Sent Requests
1. Sociable Friends
2. Online Friends
3. Incoming Friend Requests
4. Away Friends
5. Busy Friends
6. Offline Friends and Sent Requests
3. Further ties broken by most recent message
4. Even further ties broken by username alphabetical order

Expand Down

0 comments on commit 1af475d

Please sign in to comment.