Skip to content

Commit

Permalink
remove dono link
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxfaby committed May 18, 2024
1 parent 458a37f commit e5c9c88
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion BetterUIWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ static void BaseMainMenuScreen_Awake(Action<BaseMainMenuScreen> orig, BaseMainMe
{
var DescriptionController = DescriptionGameObject.GetComponent<LanguageTextMeshController>();
var modPanel = GameObject.Instantiate(modPanelPrefab, transform);

float bigifier = 0.1f;
modPanel.transform.position += new Vector3(Mathf.SmoothStep(0,250, bigifier),0,0);
foreach (var hgButton in modPanel.GetComponentsInChildren<HGButton>())
{

hgButton.transform.localScale *= 1 + bigifier;
var destroyer = self.gameObject.AddComponent<BetterUIDestroyer>();
destroyer.monitoredGameObject = hgButton.gameObject;

Expand All @@ -87,6 +90,12 @@ public void createWindow(GameObject prefab)
if (!exists || instance == null)
{
spawnedGameObjects[prefab] = GameObject.Instantiate(prefab, BetterUIWindow.menuParent);
var button = spawnedGameObjects[prefab].transform.Find("Window/UpperLeftButtonPanel/DonateButton");
if (button)
{
Destroy(button.gameObject);
}

}
}
}
Expand Down

0 comments on commit e5c9c88

Please sign in to comment.