PaintingMode
Source: container.ts:302
Constructors
new PaintingMode(
totalSlots: number,
currentButton: Button,
sendClick: (slot: number, button: number, mode: number) => void,
): PaintingMode
Parameters
totalSlots(number)currentButton(Button)sendClick((slot: number, button: number, mode: number) => void)
Returns
PaintingMode
Methods
done(): void
Mark as complete the paint mode
You have to call this function to do other action.
Returns
void
select(slot: number): void
Add new slot or, in other word, move the cursor to new slot.
It is unclear (un-documented) that the new slot has to be next to the old slot.
Parameters
slot(number)
Returns
void
Throws
- If the slot is exceeding the total slot