Table of Contents

Class TogglablePreviewNode

Namespace
nadena.dev.ndmf.preview

Declares a previewable aspect of this plugin.

public sealed class TogglablePreviewNode
Inheritance
TogglablePreviewNode
Inherited Members

Properties

DisplayName

The name that will be shown to the user. Will be re-invoked on language change.

public Func<string> DisplayName { get; }

Property Value

Func<string>

IsEnabled

public PublishedValue<bool> IsEnabled { get; }

Property Value

PublishedValue<bool>

Methods

Create(Func<string>, string, bool)

Creates a togglable preview node.

public static TogglablePreviewNode Create(Func<string> displayName, string qualifiedName = null, bool initialState = true)

Parameters

displayName Func<string>

A function which returns the localized display name for this switch

qualifiedName string

If not null, a name which will be used to save this configuration

initialState bool

The initial state for this node; defaults to true

Returns

TogglablePreviewNode