Skip to content

Commit

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

This reverts commit 9ca34a5.
  • Loading branch information
xoxfaby committed May 18, 2024
1 parent 8b211f0 commit 458a37f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 1 addition & 6 deletions 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/JuicePanel");
var transform = self.transform.Find("SafeZone/GenericMenuButtonPanel");
var DescriptionGameObject = self.transform.Find("SafeZone/GenericMenuButtonPanel/JuicePanel/DescriptionPanel, Naked/ContentSizeFitter/DescriptionText");
if (transform != null || DescriptionGameObject != null)
{
Expand All @@ -71,11 +71,6 @@ 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: 0 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# 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 458a37f

Please sign in to comment.