mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
clean up and fix aspect positions issues
This commit is contained in:
1 parent
516b7e2d5c
commit
468c5fb02b
4 files changed
+24
-3
No files matched your search
@@ -1,10 +1,11 @@
|
||||
using BetterAmongUs.Helpers;
|
||||
using BetterAmongUs.Modules;
|
||||
using System.Text;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using static BetterAmongUs.Patches.Gameplay.LobbyPatch;
|
||||
|
||||
namespace BetterAmongUs.Modules;
|
||||
namespace BetterAmongUs.Mono;
|
||||
|
||||
internal class BetterPingTracker : MonoBehaviour
|
||||
{
|
||||
@@ -50,7 +51,6 @@ internal class BetterPingTracker : MonoBehaviour
|
||||
}
|
||||
|
||||
sb.Append($"<color=#00dbdb><size=75%>BetterAmongUs {BAUPlugin.GetVersionText(true)}</size></color>\n");
|
||||
// sb.Append("<size=68%><color=#8040bf>By</color> <color=#bc4345>The Enhanced Network</color></size>\n");
|
||||
sb.Append($"<color=#8A8A8A>{ModInfo.Github}</color>\n".Size(52f));
|
||||
|
||||
if (BAUPlugin.ShowFPS.Value)
|
||||
@@ -65,6 +65,9 @@ internal static class LobbyPatch
|
||||
__instance.EditButton?.gameObject?.SetUIColors("Icon");
|
||||
__instance.ClientViewButton?.gameObject?.SetUIColors("Icon");
|
||||
__instance.HostViewButton?.gameObject?.SetUIColors("Icon");
|
||||
|
||||
__instance.StartButton.transform.SetParent(__instance.HostInfoPanel.transform);
|
||||
__instance.StartButtonClient.transform.SetParent(__instance.HostInfoPanel.transform);
|
||||
}
|
||||
|
||||
[HarmonyPatch(nameof(GameStartManager.Update))]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using BetterAmongUs.Modules;
|
||||
using BetterAmongUs.Mono;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace BetterAmongUs.Patches.Gameplay.UI;
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BetterAmongUs.Patches.Gameplay.UI;
|
||||
|
||||
[HarmonyPatch(typeof(RoomTracker))]
|
||||
internal static class RoomTrackerPatch
|
||||
{
|
||||
[HarmonyPatch(nameof(RoomTracker.Awake))]
|
||||
[HarmonyPostfix]
|
||||
private static void Awake_Postfix(RoomTracker __instance)
|
||||
{
|
||||
var aspectPosition = __instance.gameObject.AddComponent<AspectPosition>();
|
||||
aspectPosition.Alignment = AspectPosition.EdgeAlignments.Bottom;
|
||||
aspectPosition.DistanceFromEdge = new Vector3(0f, 0.3f, 0f);
|
||||
aspectPosition.updateAlways = true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user