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

Public Types

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

Public Member Functions

LLNDAPI CustomForm (std::string const &title)
 
LLAPI CustomFormsetTitle (std::string const &title)
 
LLAPI CustomFormsetSubmitButton (std::string const &text)
 
LLAPI CustomFormappendHeader (std::string const &text)
 
LLAPI CustomFormappendLabel (std::string const &text)
 
LLAPI CustomFormappendDivider ()
 
LLAPI CustomFormappendInput (std::string const &name, std::string const &text, std::string const &placeholder={}, std::string const &defaultVal={}, std::string const &tooltip={})
 
LLAPI CustomFormappendToggle (std::string const &name, std::string const &text, bool defaultVal=false, std::string const &tooltip={})
 
LLAPI CustomFormappendDropdown (std::string const &name, std::string const &text, std::vector< std::string > const &options, size_t defaultVal=0, std::string const &tooltip={})
 
LLAPI CustomFormappendSlider (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 CustomFormappendStepSlider (std::string const &name, std::string const &text, std::vector< std::string > const &steps, size_t defaultVal=0, std::string const &tooltip={})
 
LLAPI CustomFormsendTo (Player &player, Callback callback={})
 
LLAPI CustomFormsendUpdate (Player &player, Callback callback={})
 
LLAPI std::string getFormData () const
 

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: