This commit is contained in:
XtraCube committed 2024-08-27 13:26:32 -04:00
1 parent 201826dc62
commit f39580e858
2 files changed
+5 -4

No files matched your search

@@ -342,7 +342,10 @@ public static class LobbyViewPanePatches
return 0;
}
var customRole = role as ICustomRole;
if (role is not ICustomRole customRole)
{
return 0;
}
viewPanel.header.SetHeader(role.StringName, maskLayer, role.TeamType == RoleTeamTypes.Crewmate, customRole.Icon.LoadAsset());
viewPanel.divider.material.SetInt(PlayerMaterial.MaskLayer, maskLayer);
+1 -3
View File
@@ -1,5 +1,4 @@
using BepInEx;
using BepInEx.Unity.IL2CPP;
using BepInEx.Unity.IL2CPP;
using Il2CppInterop.Runtime.Injection;
using MiraAPI.GameOptions;
using MiraAPI.GameOptions.Attributes;
@@ -12,7 +11,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using MiraAPI.Utilities;
using MiraAPI.Hud;
using Reactor.Networking;
namespace MiraAPI.PluginLoading;