Skip to content

Commit

Permalink
fix: update mod for sots
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcocokrisp committed Sep 8, 2024
1 parent 5b6bbfe commit a9ae254
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
18 changes: 9 additions & 9 deletions GupRankings/GupRankings.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>preview</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
Expand All @@ -17,19 +17,19 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="BepInEx.Core" Version="5.4.21" />
<PackageReference Include="R2API.ContentManagement" Version="1.0.1" />
<PackageReference Include="R2API.Core" Version="5.0.8" />
<PackageReference Include="BepInEx.Core" Version="5.*" />
<PackageReference Include="R2API.ContentManagement" Version="1.0.6" />
<PackageReference Include="R2API.Core" Version="5.1.1" />
<PackageReference Include="R2API.Items" Version="1.0.*" />
<PackageReference Include="R2API.Language" Version="1.0.*" />
<PackageReference Include="R2API.Networking" Version="1.0.*" />
<PackageReference Include="R2API.Prefab" Version="1.0.3" />
<PackageReference Include="RiskOfRain2.GameLibs" Version="1.2.4.4-r.1" />
<PackageReference Include="Rune580.Mods.RiskOfRain2.RiskOfOptions" Version="2.8.0" />
<PackageReference Include="UnityEngine.Modules" Version="2019.4.37" />
<PackageReference Include="MMHOOK.RoR2" Version="2024.5.24">
<PackageReference Include="R2API.Prefab" Version="1.0.4" />
<PackageReference Include="RiskOfRain2.GameLibs" Version="1.3.2-r.1" />
<PackageReference Include="Rune580.Mods.RiskOfRain2.RiskOfOptions" Version="2.8.2" />
<PackageReference Include="MMHOOK.RoR2" Version="2024.9.5">
<NoWarn>NU1701</NoWarn>
</PackageReference>
<PackageReference Include="UnityEngine.Modules" Version="2021.3.33"></PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion GupRankings/RankingDisplayHooks/RankingDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void Update(Action<ObjectivePanelController> orig, ObjectivePanelController self

public void rankDisplay()
{
foreach (var item in RoR2.Run.instance.uiInstance.GetComponentsInChildren<VerticalLayoutGroup>())
foreach (var item in RoR2.Run.instance.uiInstances[0].GetComponentsInChildren<VerticalLayoutGroup>())
{
if (item.gameObject.name == "RightInfoBar" && textObj == null)
{
Expand Down
Binary file added GupRankings/libs/netstandard.dll
Binary file not shown.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
A Risk of Rain 2 mod that adds a leaderboard component to the game to add a little bit of a competitive spirit to multiplayer runs so you can know who's carrying the run on their back!

<p align="center">
<img src="https://media.discordapp.net/attachments/1261191637346947113/1274044462477213767/icon.png?ex=66c0d1de&is=66bf805e&hm=22c28fa5a93e344219e054c32065443ac072f0d04c6a43cfecdc2d44dd6eaed5&=&format=webp&quality=lossless&width=230&height=230"/>

<img src="Thunderstore/icons/icon.png"/>
</p>

## Features
Expand All @@ -22,7 +21,7 @@ Adds an in-game leaderboard to the objective panel based on different statistics

To change the stat that is being used for the leaderboard, use the mod options. Whichever stat the host has set will be the stat used in the leaderboard. You also can change stats in the middle of a run. Other options for this feature include font size, player name display length, and the colors used for the leaderboard.

![GupRankings In-Game Leaderboard Preview](https://media.discordapp.net/attachments/1261191637346947113/1274032934869012541/image.png?ex=66c0c722&is=66bf75a2&hm=c9e8b757cb053433aa812f027d7775e125e35ecd9ff7eae91e1eed2aab52e77e&=&format=webp&quality=lossless&width=993&height=558)
![GupRankings In-Game Leaderboard Preview](Thunderstore/preview.png)

## Planned Features

Expand Down
Binary file added Thunderstore/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a9ae254

Please sign in to comment.