Attributes
Kb
Syntax
[Kb(KbCategory.Tools, "id", "label", "tooltip", true, false)]Attributes
| type | name | required | default value |
|---|---|---|---|
KbCategory | category | yes | — |
string | id | yes | — |
string | label | yes | — |
string | tooltip | no | null |
bool | ignoreConflicts | no | false |
bool | isPrimaryReadonly | no | false |
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);