Implement ShowInMatchInfoGuide

This commit is contained in:
neilmjain committed 2026-10-14 20:44:45 -04:00
1 parent a01ff6168c
commit 754161d439
3 files changed
+7

No files matched your search

@@ -10,6 +10,7 @@ public class ExampleOptions : AbstractOptionGroup
{ {
public override string GroupName => "options.exampleOptions1"; public override string GroupName => "options.exampleOptions1";
public override Color GroupColor => Color.green; public override Color GroupColor => Color.green;
public override bool ShowInMatchInfoGuide => true;
[ModdedToggleOption("options.exampleOptions1.toggleOpt1")] [ModdedToggleOption("options.exampleOptions1.toggleOpt1")]
public bool ToggleOpt { get; set; } = false; public bool ToggleOpt { get; set; } = false;
@@ -11,6 +11,7 @@ public class ExampleOptions2 : AbstractOptionGroup
public override uint GroupPriority => 0; // This group will be displayed first. The default value is uint.MaxValue. public override uint GroupPriority => 0; // This group will be displayed first. The default value is uint.MaxValue.
public override MenuCategory ParentMenu => MenuCategory.CustomTwo; public override MenuCategory ParentMenu => MenuCategory.CustomTwo;
public override bool ShowInMatchInfoGuide => true;
public ModdedPlayerOption PlayerOption2 { get; } = new("options.exampleOptions2.youMustChoseAPlayer", false); public ModdedPlayerOption PlayerOption2 { get; } = new("options.exampleOptions2.youMustChoseAPlayer", false);
public ModdedPlayerOption PlayerOption { get; } = new("options.exampleOptions2.ehWhatever"); public ModdedPlayerOption PlayerOption { get; } = new("options.exampleOptions2.ehWhatever");
@@ -49,6 +49,11 @@ public abstract class AbstractOptionGroup
/// </summary> /// </summary>
public virtual Func<bool> GroupVisible => () => true; public virtual Func<bool> GroupVisible => () => true;
/// <summary>
/// Gets a value indicating whether this group's options are shown in the Match Info Guide.
/// </summary>
public virtual bool ShowInMatchInfoGuide => true;
/// <summary> /// <summary>
/// Gets the group <see cref="Color"/>. This is used to color the group in the options menu. /// Gets the group <see cref="Color"/>. This is used to color the group in the options menu.
/// </summary> /// </summary>