Skip to content

Commit

Permalink
Move BetterUI button in-line with other title screen buttons (#185)
Browse files Browse the repository at this point in the history
* Move BetterUI button in-line with other title screen buttons

* Write title screen button changes to changelow

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: XoXFaby <[email protected]>
  • Loading branch information
Goorakh and xoxfaby authored Apr 30, 2024
1 parent b95a042 commit 9ca34a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion BetterUIWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal static void Init()
static void BaseMainMenuScreen_Awake(Action<BaseMainMenuScreen> orig, BaseMainMenuScreen self)
{
menuParent = self.transform;
var transform = self.transform.Find("SafeZone/GenericMenuButtonPanel");
var transform = self.transform.Find("SafeZone/GenericMenuButtonPanel/JuicePanel");
var DescriptionGameObject = self.transform.Find("SafeZone/GenericMenuButtonPanel/JuicePanel/DescriptionPanel, Naked/ContentSizeFitter/DescriptionText");
if (transform != null || DescriptionGameObject != null)
{
Expand All @@ -71,6 +71,11 @@ static void BaseMainMenuScreen_Awake(Action<BaseMainMenuScreen> orig, BaseMainMe

hgButton.hoverLanguageTextMeshController = DescriptionController;
}

RectTransform rectTransform = modPanel.GetComponent<RectTransform>();
rectTransform.sizeDelta = new Vector2(rectTransform.sizeDelta.x, 48f);

rectTransform.SetSiblingIndex(7);
}
orig(self);
}
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### v2.8.9
- Moved BetterUI title screen button inline with existing buttons.

### v2.8.7 & 2.8.8
- Stopped BetterUI from loading if BepInEx is broken.

Expand Down

0 comments on commit 9ca34a5

Please sign in to comment.