Skip to content

Commit

Permalink
Feature: SubMenus support Mod Options' Search Box
Browse files Browse the repository at this point in the history
note items inside submenus can't be fetched, coz they are not items of the main menu.
  • Loading branch information
LozenChen committed Oct 8, 2024
1 parent dedff15 commit 3a37350
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Source/Module/Menu/OptionSubMenuExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ public float ScrollTargetY {
float max = 150f + Container.Height * Container.Justify.Y;
return Calc.Clamp(Engine.Height / 2 + Container.Height * Container.Justify.Y - GetYOffsetOf(Current), min, max);
}
}

public override string SearchLabel() {
return Label;
}

public float TitleHeight { get; private set; }
Expand Down
3 changes: 2 additions & 1 deletion Source/Module/WhatsNew.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ public static void CreateUpdateLog() {
AddLog("2.0.5", "Bugfix: Cutscene is auto-watched even if Auto Watch is not enabled. (thanks @socksygen)");
AddLog("2.0.6", "Feature: Auto-Watch now supports Triggers, and vanilla / Everest ones are handled well.");
AddLog("2.0.7", "Feature: Auto-Watch now supports CrumbleWallOnRumble.");
AddLog("2.0.8", "Change: Target CelesteTAS v3.41.0", "Feature: Auto-Watch supports more triggers.");
AddLog("2.0.8", "Change: Target CelesteTAS v3.41.0", "Feature: Auto-Watch supports more triggers.");
AddLog("2.0.9", "Feature: SubMenus support Mod Options' Search Box."); // note items inside submenus can't be fetched, coz they are not items of the main menu.
UpdateLogs.Sort((x, y) => new Version(y.Item1).CompareTo(new Version(x.Item1)));
}

Expand Down
2 changes: 1 addition & 1 deletion everest.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- Name: TASHelper
Version: 2.0.8
Version: 2.0.9
DLL: bin/Release/net7.0/TASHelper.dll
Dependencies:
- Name: EverestCore
Expand Down

0 comments on commit 3a37350

Please sign in to comment.