Skip to main content

KSPLabel

The KSPLabel class allows you to connect to a ui_label in KSP.

class KSPLabel

Example​

import { KSPLabel } from kontakt

var label = KSPLabel(id: "my_label")

Constructor​

constructor(id: String)

Connects to a ui_label 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.


id​

id: String { get }

The KSP control ID this label is connected to.


text​

text: String { get }

The label's text value.