COI Docs
Attributes

Kb

Syntax

[Kb(KbCategory.Tools, "id", "label", "tooltip", true, false)]

Attributes

typenamerequireddefault value
KbCategorycategoryyes
stringidyes
stringlabelyes
stringtooltipnonull
boolignoreConflictsnofalse
boolisPrimaryReadonlynofalse

Example

[Kb(KbCategory.Tools, "open_train_management_window", "Open train management", "Open train management", true, false)]
public KeyBindings OpenTrainsWindow { get; set; } = KeyBindings.FromKey(KbCategory.Tools, ShortcutMode.Game, KeyCode.F8);
Edit on GitHub

On this page