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

Commit

Permalink
Fixed being able to place main menu button on position where ReMod wi…
Browse files Browse the repository at this point in the history
…ll have it's button at all times.
  • Loading branch information
RequiDev committed Aug 15, 2021
1 parent e2fb5fb commit c665239
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ReModCE/Managers/UiManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ public UiManager(string menuName)
private void OnButtonOffsetChanged()
{
var buttonOffset = new Vector3(ButtonSize * ButtonOffsetX, ButtonSize * ButtonOffsetY);
var isDefaultButtonPos = buttonOffset == new Vector3(0, ButtonSize * 2f);
if (IsRemodLoaded && isDefaultButtonPos)
{
buttonOffset.x = ButtonSize;
}
_mainMenuButton.Position = _intialButtonPos + buttonOffset;

}
}
}

0 comments on commit c665239

Please sign in to comment.