DialogComponent
A modal dialog with a title, a message and up to three actions.
Java
Inside a PanelComponent constructor. The same call draws in every family and chroma.
Java
add(new ButtonComponent(at(new Box("delete", 10, 10, 90, 20)), words.get("mymod.delete"),
() -> confirm.open(this)));
// Last, so that it is drawn on top and offered every input first.
confirm = add(DialogComponent.confirmDestructive(bounds(),
words.get("mymod.delete.title"), words.get("mymod.delete.body"),
words.get("mymod.delete"), words.get("gui.cancel"), this::delete, null));Confirm
