|
|
using | Callback = std::function<void(Player&, CustomFormResult const&, FormCancelReason)> |
| |
|
using | RawFormCallback = std::function<void(Player&, std::optional<std::string>, FormCancelReason)> |
| |
|
|
LLNDAPI | CustomForm (std::string const &title) |
| |
|
LLAPI CustomForm & | setTitle (std::string const &title) |
| |
|
LLAPI CustomForm & | setSubmitButton (std::string const &text) |
| |
|
LLAPI CustomForm & | appendHeader (std::string const &text) |
| |
|
LLAPI CustomForm & | appendLabel (std::string const &text) |
| |
|
LLAPI CustomForm & | appendDivider () |
| |
|
LLAPI CustomForm & | appendInput (std::string const &name, std::string const &text, std::string const &placeholder={}, std::string const &defaultVal={}, std::string const &tooltip={}) |
| |
|
LLAPI CustomForm & | appendToggle (std::string const &name, std::string const &text, bool defaultVal=false, std::string const &tooltip={}) |
| |
|
LLAPI CustomForm & | appendDropdown (std::string const &name, std::string const &text, std::vector< std::string > const &options, size_t defaultVal=0, std::string const &tooltip={}) |
| |
|
LLAPI CustomForm & | appendSlider (std::string const &name, std::string const &text, double min, double max, double step=0.0, double defaultVal=0.0, std::string const &tooltip={}) |
| |
|
LLAPI CustomForm & | appendStepSlider (std::string const &name, std::string const &text, std::vector< std::string > const &steps, size_t defaultVal=0, std::string const &tooltip={}) |
| |
|
LLAPI CustomForm & | sendTo (Player &player, Callback callback={}) |
| |
|
LLAPI CustomForm & | sendUpdate (Player &player, Callback callback={}) |
| |
|
LLAPI std::string | getFormData () const |
| |
|
|
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: