mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
17 lines
589 B
C#
17 lines
589 B
C#
using HarmonyLib;
|
|
|
|
namespace BetterAmongUs.Patches;
|
|
|
|
[HarmonyPatch(typeof(VersionShower))]
|
|
public class VersionShowerPatch
|
|
{
|
|
[HarmonyPatch(nameof(VersionShower.Start))]
|
|
[HarmonyPostfix]
|
|
public static void Postfix(VersionShower __instance)
|
|
{
|
|
string mark = Translator.GetString("BAUMark");
|
|
string bau = Translator.GetString("BAU");
|
|
__instance.text.text = $"<color=#0dff00>{mark}{bau}{mark} {Main.GetVersionText()}</color> <color=#ababab>~</color> {Utils.GetPlatformName(Main.PlatformData.Platform)} v{Main.AmongUsVersion}";
|
|
}
|
|
}
|