Click or drag to resize

IKSPDevModuleInfo Interface

Documented analogue of IModuleInfo interface.

Namespace:  KSPDev.KSPInterfaces
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
public interface IKSPDevModuleInfo
Request Example View Source

The IKSPDevModuleInfo type exposes the following members.

Methods
  NameDescription
Public methodGetDrawModulePanelCallback
Returns a method delegate to draw a custom panel.
Public methodGetInfo
Returns description for the editor part's browser.
Public methodGetModuleTitle
Returns module title to show in the editor part's details panel.
Public methodGetPrimaryField
Return a string to be displayed in the main information box on the tooltip.
Top
Remarks
Inherit from IModuleInfo to be able customizing module descriptions for the editor. IKSPDevModuleInfo is a full equivalent except it's documented. Inheriting modules from both interfaces gives better code documentation.
Examples
public class MyModule : PartModule, IPartModule, IModuleInfo, IKSPDevModuleInfo {
  /// <inheritdoc/>
  public override string GetInfo() {
    return "<size=20><color=#ff0000ff><b>BLAH!</b></color></size>";
  }
}
See Also