Class LangSettingFieldAttribute
This attribute will cause a field, property, or function to show up in the Weaver Settings Screen, but also uses GetString(string, string, string) to translate it
Implements
Inherited Members
Namespace: WeaverCore.Settings
Assembly: WeaverCore.dll
Syntax
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class LangSettingFieldAttribute : SettingFieldAttribute_BASE, _Attribute
Constructors
| Edit this page View SourceLangSettingFieldAttribute(string, string, EnabledType)
Applied to a field, property, or function to determine whether it should be shown in the settings menu
Declaration
public LangSettingFieldAttribute(string sheetTitle, string key, EnabledType enabled = EnabledType.AlwaysVisible)
Parameters
Type | Name | Description |
---|---|---|
string | sheetTitle | |
string | key | |
EnabledType | enabled | Determines in what scenario should the field be visible in |
LangSettingFieldAttribute(string, EnabledType)
Applied to a field, property, or function to determine whether it should be shown in the settings menu
Declaration
public LangSettingFieldAttribute(string key, EnabledType enabled = EnabledType.AlwaysVisible)
Parameters
Type | Name | Description |
---|---|---|
string | key | |
EnabledType | enabled | Determines in what scenario should the field be visible in |