1 #ifndef EDITOR_COMPONENTS_LIGHTSLIDER_HPP
2 #define EDITOR_COMPONENTS_LIGHTSLIDER_HPP
4 #include <BLIB/Interfaces/GUI.hpp>
19 using Ptr = std::shared_ptr<LightSlider>;
47 void setPrompt(
const std::string& prompt);
50 bl::gui::Label::Ptr prompt;
51 bl::gui::Slider::Ptr slider;
All classes and functionality used for implementing the game editor.
std::shared_ptr< LightPreview > Ptr
void setLightLevel(std::uint8_t level)
Sets the selected light level.
std::shared_ptr< LightSlider > Ptr
static Ptr create(const std::string &prompt, const ChangeCb &onChange)
Create a new light level slider.
std::function< void()> ChangeCb
void setPrompt(const std::string &prompt)
Sets the text prompt that is displayed.
std::uint8_t getLightLevel() const
Returns the currently selected light level.