AskProps struct
#include <GGUI/Public/UIPopups.h>
Properties of ui.Ask: a dialog with a message and one button per choice.
Choosing closes it and calls the handler with the choice's index. Closing it any other way calls nothing.
auto quitting = ui.State(false); ui.Ask(quitting, { .Title = "Quit", .Text = "Save first?", .Choices = { "Save", "Discard", "Cancel" } }, [=](int choice) { if (choice == 0) Save(); if (choice != 2) Quit(); });