Skip to main content

KSPValueEdit

The KSPValueEdit class allows you to connect to a ui_value_edit in KSP.

class KSPValueEdit

Example​

import { KSPValueEdit } from kontakt

var value_edit = KSPValueEdit(id: "my_value_edit")

Constructor​

constructor(id: String)

Connects to a ui_value_edit in KSP with the given control ID.

Properties​

connected​

connected: Bool { get }

Whether the control is connected. A control might not be connected if no corresponding control was found for the given id.


custom_id​

custom_id: Int { get }

The value of $CONTROL_PAR_CUSTOM_ID set on this control.


display_ratio​

display_ratio: Int { get }

The display ratio.


display_value​

display_value: Float { get }

The value scaled by the display-ratio.


id​

id: String { get }

The KSP control ID this valueedit is connected to.


max​

max: Int { get }

The maximum value.


min​

min: Int { get }

The minimum value.


normalized_value​

normalized_value: Float { get set }

The value normalized using min & max.


text (8.4)​

text: String { get }

The value of $CONTROL_PAR_TEXT set on this control.


value​

value: Int { get set }

The valueedit's value.