Click or drag to resize

HermeticGUIControlBoolean Constructor

Creates the control.

Namespace:  KSPDev.GUIUtils
Assembly:  KSPDev_Utils.1.0 (in KSPDev_Utils.1.0.dll) Version: 1.0 for KSP v1.6+
Syntax
C#
public HermeticGUIControlBoolean(
	string caption,
	Object instance,
	FieldInfo fieldInfo = null,
	PropertyInfo propertyInfo = null,
	Action onBeforeUpdate = null,
	Action onAfterUpdate = null
)
Request Example View Source

Parameters

caption
Type: SystemString
The boolean control caption.
instance
Type: SystemObject
The class instance that owns the member to control.
fieldInfo (Optional)
Type: System.ReflectionFieldInfo
The field to control.
propertyInfo (Optional)
Type: System.ReflectionPropertyInfo
The property to control.
onBeforeUpdate (Optional)
Type: SystemAction
The callback to call before changing the value. InvalidOperationException can be throws form this action to prevent the change.
onAfterUpdate (Optional)
Type: SystemAction
The callback to call when the value is changed.
See Also