Skip to main content

KSPLevelMeter

The KSPLevelMeter class allows you to connect to a ui_level_meter in KSP.

import { KSPLevelMeter } from kontakt

var meter = KSPLevelMeter(id: "my_level_meter")

Constructors

constructor(id: String)

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

Properties

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: Int (get)

The value of $CONTROL_PAR_CUSTOM_ID set on this control.

value: Int (get)

The level meter's value.