assign Button
Chaining utility that assigns the indexed layerItem on the indexed layer to correspond with a desired button to use when prompted.
These button mappings are exposed through assignedButtons.
This allows you to set a button you want UserSelection to use for a particular selection.
.assignButton(0, 0, Controls.A) // Assigns the first selection of the first layer to use Controls.A
.assignButton(1, 0, Controls.B) // Assigns the first selection of the second layer to use Controls.B
.assignButton(1, 2, Controls.X) // Assigns the third selection of the second layer to use Controls.X
Content copied to clipboard
If you're only using 1 layer, use layer to be 0, and index to your selections in order as you normally would.
Duplicating buttons on the same layer or using Controls.NONE will throw an exception at runtime.
Since
7.1.0