mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
Fix aspect pos for UI
This commit is contained in:
1 parent
683c1014b5
commit
a347c20fa5
2 files changed
+6
-2
No files matched your search
@@ -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>();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user