Peoplemon  0.1.0
Peoplemon 3 game source documentation
LightPreview.hpp
Go to the documentation of this file.
1 #ifndef EDITOR_COMPONENTS_LIGHTPREVIEW_HPP
2 #define EDITOR_COMPONENTS_LIGHTPREVIEW_HPP
3 
4 #include <BLIB/Interfaces/GUI.hpp>
5 
6 namespace editor
7 {
8 namespace component
9 {
15 class LightPreview : public bl::gui::Image {
16 public:
17  using Ptr = std::shared_ptr<LightPreview>;
18 
25  static Ptr create(const sf::Vector2f& size);
26 
30  void setLightLevel(std::uint8_t level);
31 
32 private:
33  LightPreview(const sf::Vector2f& size);
34 };
35 
36 } // namespace component
37 } // namespace editor
38 
39 #endif
All classes and functionality used for implementing the game editor.
Definition: Tile.hpp:11
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.
Definition: LightPreview.cpp:9