HermeticGUIControlText Constructor |
Creates a control, bound to a member.
Namespace:
KSPDev.GUIUtils
Assembly:
KSPDev_Utils.1.0 (in KSPDev_Utils.1.0.dll) Version: 1.0 for KSP v1.6+
Syntaxpublic HermeticGUIControlText(
Object instance,
FieldInfo fieldInfo = null,
PropertyInfo propertyInfo = null,
Action onBeforeUpdate = null,
Action onAfterUpdate = null,
bool useOwnLayout = true,
AbstractOrdinaryValueTypeProto valueTypeProto = null
)
Request Example
View SourceParameters
- instance
- Type: SystemObject
The class instance that owns the member to manage. - fieldInfo (Optional)
- Type: System.ReflectionFieldInfo
The field to manage. - propertyInfo (Optional)
- Type: System.ReflectionPropertyInfo
The property to manage. - 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. - useOwnLayout (Optional)
- Type: SystemBoolean
If false, then the control will start own horizontal section to align the input field
and buttons.
- valueTypeProto (Optional)
- Type: KSPDev.ConfigUtilsAbstractOrdinaryValueTypeProto
The value type conversion proto to use to covert the field value to/from string. By default,
all the game's standard configuration types are supported, except the collections.
See Also