16class ModalForm :
public Form {
19 std::unique_ptr<ModalFormImpl> impl;
22 using Callback = std::function<void(
Player&, ModalFormResult, FormCancelReason)>;
26 LLNDAPI ModalForm(std::string title, std::string content, std::string upperButton, std::string lowerButton);
28 LLAPI ~ModalForm()
override;
30 LLAPI ModalForm& setTitle(std::string
const& title);
32 LLAPI ModalForm& setContent(std::string
const& content);
34 LLAPI ModalForm& setUpperButton(std::string
const& upperButton);
36 LLAPI ModalForm& setLowerButton(std::string
const& lowerButton);
38 LLAPI
bool sendTo(
Player& player, Callback callback = {});
40 LLAPI
bool sendUpdate(
Player& player, Callback callback = {});