From bc4482d2f0500b5612b03f1f93cf38883f190f9b Mon Sep 17 00:00:00 2001 From: Daniel Ploch Date: Tue, 5 May 2026 15:21:17 -0400 Subject: [PATCH] Allow ModMenuIgnore on properties --- Silksong.ModMenu/Directory.Build.props | 2 +- Silksong.ModMenu/Models/Attributes.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Silksong.ModMenu/Directory.Build.props b/Silksong.ModMenu/Directory.Build.props index cd8f36e..aeb5331 100644 --- a/Silksong.ModMenu/Directory.Build.props +++ b/Silksong.ModMenu/Directory.Build.props @@ -11,6 +11,6 @@ It should follow the format major.minor.patch (semantic versioning). If you publish your mod as a library to NuGet, this version will also be used as the package version. --> - 0.7.1 + 0.7.2 diff --git a/Silksong.ModMenu/Models/Attributes.cs b/Silksong.ModMenu/Models/Attributes.cs index a6dab46..62f6656 100644 --- a/Silksong.ModMenu/Models/Attributes.cs +++ b/Silksong.ModMenu/Models/Attributes.cs @@ -22,7 +22,10 @@ public class ModMenuNameAttribute(string customName) : Attribute /// /// Any attribute named "ModMenuIgnoreAttribute" will be treated the same for this functionality, so you can opt-out of ModMenu behaviors without adding ModMenu as a dependency. /// -[AttributeUsage(AttributeTargets.Class | AttributeTargets.Field, AllowMultiple = false)] +[AttributeUsage( + AttributeTargets.Class | AttributeTargets.Field | AttributeTargets.Property, + AllowMultiple = false +)] public class ModMenuIgnoreAttribute : Attribute { } internal static class AttributeExtensions