Skip to content
This repository was archived by the owner on Jan 24, 2023. It is now read-only.

Commit c665239

Browse files
committed
Fixed being able to place main menu button on position where ReMod will have it's button at all times.
1 parent e2fb5fb commit c665239

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ReModCE/Managers/UiManager.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ public UiManager(string menuName)
7070
private void OnButtonOffsetChanged()
7171
{
7272
var buttonOffset = new Vector3(ButtonSize * ButtonOffsetX, ButtonSize * ButtonOffsetY);
73+
var isDefaultButtonPos = buttonOffset == new Vector3(0, ButtonSize * 2f);
74+
if (IsRemodLoaded && isDefaultButtonPos)
75+
{
76+
buttonOffset.x = ButtonSize;
77+
}
7378
_mainMenuButton.Position = _intialButtonPos + buttonOffset;
79+
7480
}
7581
}
7682
}

0 commit comments

Comments
 (0)