LeviLamina
Loading...
Searching...
No Matches
ll::form::ModalForm Class Reference
Inheritance diagram for ll::form::ModalForm:

Public Types

using Callback = std::function<void(Player&, ModalFormResult, FormCancelReason)>
using RawFormCallback = std::function<void(Player&, std::optional<std::string>, FormCancelReason)>

Public Member Functions

LLNDAPI ModalForm (std::string title, std::string content, std::string upperButton, std::string lowerButton)
LLAPI ModalForm & setTitle (std::string const &title)
LLAPI ModalForm & setContent (std::string const &content)
LLAPI ModalForm & setUpperButton (std::string const &upperButton)
LLAPI ModalForm & setLowerButton (std::string const &lowerButton)
LLAPI bool sendTo (Player &player, Callback callback={})
LLAPI bool sendUpdate (Player &player, Callback callback={})

Static Public Member Functions

static LLAPI bool sendRawTo (Player &player, std::string const &formData, RawFormCallback callback={})
static LLAPI bool sendRawUpdate (Player &player, std::string const &formData, RawFormCallback callback={})

The documentation for this class was generated from the following file: