13 LightPreview::LightPreview(
const sf::Vector2f& size)
14 : Image(
ImageManager::load(
"EditorResources/lightpreview.png")) {
19 setColor(sf::Color(a, a, a, 255), sf::Color::Transparent);
bl::resource::ResourceManager< sf::Image > ImageManager
All classes and functionality used for implementing the game editor.
Helper component that displays an image with a light level overlaid on it.
std::shared_ptr< LightPreview > Ptr
void setLightLevel(std::uint8_t level)
Sets the light level to display.
static Ptr create(const sf::Vector2f &size)
Create a new LightPreview component.