Files
BetterAmongUs/Patches/MatchMakerGameButtonPatch.cs
T
D1GQ 9466cc0d2d Reworked API data loader
Command overhaul:
Removed command /whisper
Removed command /name
Removed command /ban. now is part of /kick
2024-11-20 15:10:23 -06:00

17 lines
654 B
C#

using BetterAmongUs.Helpers;
using HarmonyLib;
using InnerNet;
namespace BetterAmongUs;
[HarmonyPatch(typeof(MatchMakerGameButton))]
class MatchMakerGameButtonPatch
{
[HarmonyPatch(nameof(MatchMakerGameButton.SetGame))]
[HarmonyPostfix]
private static void SetGame_Postfix(MatchMakerGameButton __instance)
{
__instance.NameText.text = $"<b><color=#f4f400>{__instance.myListing.HostName}</color></b>\n";
__instance.NameText.text += $"<size=65%><voffset=0.4m><color=#9c9c9c>{Utils.GetPlatformName(__instance.myListing.Platform)} - {GameCode.IntToGameName(__instance.myListing.GameId)}</color></voffset></size>";
}
}