KSPTable
The KSPTable
class allows you to connect to a ui_table
in KSP.
import { KSPTable } from kontakt
var table = KSPTable(id: "my_table")
Constructors
constructor(id: String)
Connects to a ui_table
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.
max: Int (get)
The maximum value.
min: Int (get)
The minimum value.
values: [Int] (get)
The values of all columns.
length: Int (get)
Number of columns.
Methods
set_value(_ value: Int, at index: Int) -> ()
Sets a the given value to the column at the given index.
value(at index: Int) -> (Int)
Returns the value for the column at the given index.