12 std::unique_ptr<SimpleFormImpl> impl;
15 using Callback = std::function<void(
Player&,
int, FormCancelReason)>;
16 using ButtonCallback = std::function<void(
Player&)>;
20 LLNDAPI
explicit SimpleForm(std::string
const& title, std::string
const& content = {});
24 LLAPI
SimpleForm& setTitle(std::string
const& title);
26 LLAPI
SimpleForm& setContent(std::string
const& content);
28 LLAPI
SimpleForm& appendHeader(std::string
const& text);
30 LLAPI
SimpleForm& appendLabel(std::string
const& text);
44 std::string
const& text,
45 std::string
const& imageData,
46 std::string
const& imageType,
47 ButtonCallback callback = {}
68 LLAPI
SimpleForm& sendUpdate(
Player& player, Callback callback = Callback());