Fix aspect pos for UI

This commit is contained in:
D1GQ committed 2025-04-09 17:05:06 -05:00
1 parent 683c1014b5
commit a347c20fa5
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -103,7 +103,11 @@ internal class FindAGameManagerPatch
{
var tmproObject = new GameObject("TrueHostName_TMP").transform;
tmproObject.SetParent(parent, true);
tmproObject.localPosition = new Vector3(7.77f, -2.18f, -1f);
var aspectPos = tmproObject.gameObject.AddComponent<AspectPosition>();
aspectPos.Alignment = AspectPosition.EdgeAlignments.Center;
aspectPos.anchorPoint = new Vector2(0.2f, 0.5f);
aspectPos.DistanceFromEdge = new Vector3(10.9f, -2.17f, -2f);
aspectPos.AdjustPosition();
return tmproObject.gameObject.AddComponent<TextMeshPro>();
}
+1 -1
View File
@@ -223,7 +223,7 @@ static class GameSettingMenuPatch
__instance.RoleSettingsButton.OnMouseOver.RemoveAllListeners();
BetterSettingsButton.transform.position = BetterSettingsButton.transform.position - new Vector3(0f, 1.265f, 0f);
BetterSettingsButton.transform.localPosition = BetterSettingsButton.transform.localPosition - new Vector3(0f, 1.265f, 0f);
if (!GameState.IsHideNSeek && GameState.IsHost)
{
__instance.ChangeTab(1, false);