Click or drag to resize

DebugGuiMakePartDebugDialog Method

Creates a debug dialog for the parts.

Namespace:  KSPDev.DebugUtils
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
public static PartDebugAdjustmentDialog MakePartDebugDialog(
	string title,
	Nullable<float> dialogWidth = null,
	Nullable<float> valueColumnWidth = null,
	string group = "",
	Part bindToPart = null
)
Request Example View Source

Parameters

title
Type: SystemString
The titile of the dialog.
dialogWidth (Optional)
Type: SystemNullableSingle
The width of the dialog. If omitted, then the code will decide.
valueColumnWidth (Optional)
Type: SystemNullableSingle
The width of the value changing controls. If omitted, then the code will decide.
group (Optional)
Type: SystemString
The group of the controls to present. If empty, then all the controls are shown.
bindToPart (Optional)
Type: (Default Namespace)Part
The part to attach the dialog to. If set, then the dialog won't allow changing the part via GUI. Otherwise, there will be controls in the dialog that allow selection a part from the scene.

Return Value

Type: PartDebugAdjustmentDialog
The created dialog.
Remarks
Implement a code that would react on user interactions and invoke this method to show a debug dialog. The dialog can be bound to a specific part, in which case it only showns for that part, or the dialog may allow interactively selecting a part from the scene.
See Also