Class EventProperty.Toggle
EventProperty class for the Toggle property.
Implements
Inherited Members
Namespace: Modding
Assembly: Assembly-CSharp.dll
Syntax
public class Toggle : EventProperty, IValidatable
Constructors
Toggle()
Declaration
public Toggle()
Fields
Default
Corresponds to the default XML attribute.
Declaration
public bool Default
Field Value
Type | Description |
---|---|
Boolean |
DefaultSpecified
Whether a default attribute was specified.
Declaration
public bool DefaultSpecified
Field Value
Type | Description |
---|---|
Boolean |
Icon
The Icon resource used.
Declaration
public ModTexture Icon
Field Value
Type | Description |
---|---|
ModTexture |
IconReference
A reference to the Icon specified for the toggle.
Declaration
[RequireToValidate]
public ResourceReference IconReference
Field Value
Type | Description |
---|---|
ResourceReference |
Properties
Value
Current value of the toggle.
Declaration
public bool Value { get; set; }
Property Value
Type | Description |
---|---|
Boolean |