minuit

DropdownComponent

Opens a list of choices.

Java

Inside a PanelComponent constructor. The same call draws in every family and chroma.

Java
DropdownComponent difficulty = add(new DropdownComponent(at(new Box("difficulty", 10, 10, 160, 14)),
        "Normal", left + 10, 160, this::showOverlay));
difficulty.lines = List.of(new DropdownComponent.Header("Difficulty"),
        new DropdownComponent.Entry("Peaceful", "", "", "",
                DropdownComponent.State.SELECTABLE, -1F, List.of(), () -> pick(0)));

Open

DropdownComponent, open