Skip to content

Commit

Permalink
ModSettingHotkeys and mods menu fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Jan 28, 2023
1 parent 564db68 commit daad0bf
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
8 changes: 3 additions & 5 deletions BloonsTD6 Mod Helper/LATEST.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
- Fixed Exporting Game Data button for modders
- Added `application/x-msdos-program` as an allowed download content type for the Mod Browser
- Increased the default mod browser download limit from 50 MB to 75 MB
- Added a more descriptive error message for mods that are too big
- Fixed some upgrade screen UI glitches
- Fixed ModSettingHotkeys to allow easier overlap with vanilla hotkeys
- Fixed filtering mods menu empty page
- Fixes for ModSettingEnums (thanks Baydock!)
1 change: 1 addition & 0 deletions BloonsTD6 Mod Helper/MelonMain.Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using BTD_Mod_Helper.Api.Enums;
using BTD_Mod_Helper.Api.Helpers;
using BTD_Mod_Helper.Api.ModOptions;
using BTD_Mod_Helper.Api.Towers;
using UnityEngine;
using static BTD_Mod_Helper.Api.Enums.VanillaSprites;

Expand Down
14 changes: 14 additions & 0 deletions BloonsTD6 Mod Helper/Patches/UI/HotkeysScreenField_UpdateUI.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Il2CppAssets.Scripts.Unity.UI_New.Settings;
namespace BTD_Mod_Helper.Patches.UI;

/// <summary>
/// Ignore any exceptions coming from this method
/// </summary>
[HarmonyPatch(typeof(HotkeysScreenField), nameof(HotkeysScreenField.UpdateUi))]
internal static class HotkeysScreenField_UpdateUI
{
[HarmonyPostfix]
private static void Postfix()
{
}
}
1 change: 1 addition & 0 deletions BloonsTD6 Mod Helper/UI/Menus/ModBrowserMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public void AddNewElements()
new Action<int>(i =>
{
currentTopic = topics[i];
SetPage(0);
RecalculateCurrentMods();
}), VanillaSprites.BlueInsertPanelRound, 80f);
}
Expand Down
1 change: 1 addition & 0 deletions BloonsTD6 Mod Helper/UI/Menus/ModSettingsMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public override bool OnMenuOpened(Object data)
{
var gameObject = GameMenu.gameObject;
gameObject.DestroyAllChildren();
GameMenu.saved = true;

CommonForegroundHeader.SetText(BloonsMod.Info.Name);

Expand Down

0 comments on commit daad0bf

Please sign in to comment.