Skip to content

Commit 25a0d17

Browse files
committed
update for 2025.9.9
1 parent 2dc9889 commit 25a0d17

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

LaunchpadReloaded/LaunchpadReloaded.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<PackageReference Include="AllOfUs.MiraAPI" Version="0.2.1" />
2323
<PackageReference Include="Reactor" Version="2.3.1" />
2424
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.735" Private="false" ExcludeAssets="runtime;native" />
25-
<PackageReference Condition="$(Platform)=='Android'" Include="AmongUs.GameLibs.Android" Version="2025.6.10" PrivateAssets="all" />
25+
<PackageReference Condition="$(Platform)=='Android'" Include="AmongUs.GameLibs.Android" Version="2025.9.9" PrivateAssets="all" />
2626
<PackageReference Condition="$(Platform)=='AnyCPU'" Include="AmongUs.GameLibs.Steam" Version="2025.4.15" PrivateAssets="all" />
2727
<PackageReference Include="BepInEx.AutoPlugin" Version="1.1.0" PrivateAssets="all" />
2828
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.1.0-rc.1" PrivateAssets="all" ExcludeAssets="runtime">

LaunchpadReloaded/Patches/Colors/Gradients/PlayerTabPatches.cs

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using AmongUs.Data;
22
using HarmonyLib;
3+
using LaunchpadReloaded.Components;
34
using LaunchpadReloaded.Features;
45
using LaunchpadReloaded.Features.Managers;
56
using LaunchpadReloaded.Networking.Color;
@@ -28,6 +29,20 @@ private static void SwitchSelector(PlayerTab instance)
2829
instance.currentColor = SelectGradient ? GradientManager.LocalGradientId : DataManager.Player.Customization.Color;
2930
}
3031

32+
[HarmonyPatch(typeof(InventoryTab), nameof(InventoryTab.GetDisplayColor))]
33+
public static class InventoryTabPatch
34+
{
35+
public static bool Prefix(InventoryTab __instance, ref int __result)
36+
{
37+
if (SelectGradient)
38+
{
39+
__result = GradientManager.LocalGradientId;
40+
return false;
41+
}
42+
43+
return true;
44+
}
45+
}
3146

3247
[HarmonyPostfix]
3348
[HarmonyPatch(nameof(PlayerTab.OnEnable))]
@@ -102,19 +117,12 @@ public static bool SelectPrefix(PlayerTab __instance, [HarmonyArgument(0)] int c
102117
var colorName = Palette.GetColorName(colorId);
103118
PlayerCustomizationMenu.Instance.SetItemName(colorName);
104119
__instance.PlayerPreview.UpdateFromDataManager(PlayerMaterial.MaskType.None);
105-
return false;
106-
}
107120

108-
return true;
109-
}
110-
111-
[HarmonyPrefix]
112-
[HarmonyPatch(nameof(PlayerTab.GetCurrentColorId))]
113-
public static bool GetCurrentColorPrefix(PlayerTab __instance, ref int __result)
114-
{
115-
if (SelectGradient)
116-
{
117-
__result = GradientManager.LocalGradientId;
121+
var playerGradientData = __instance.PlayerPreview.GetComponent<PlayerGradientData>();
122+
if (playerGradientData)
123+
{
124+
playerGradientData.Destroy();
125+
}
118126
return false;
119127
}
120128

-30 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)