Peoplemon  0.1.0
Peoplemon 3 game source documentation
RenderMapWindow.hpp
Go to the documentation of this file.
1 #ifndef EDITOR_COMPONENTS_RENDERMAPWINDOW_HPP
2 #define EDITOR_COMPONENTS_RENDERMAPWINDOW_HPP
3 
4 #include <BLIB/Interfaces.hpp>
6 #include <functional>
7 
8 namespace editor
9 {
10 namespace component
11 {
19 public:
21  using StartRender = std::function<void()>;
22 
28  RenderMapWindow(const StartRender& onStart);
29 
35  void open(bl::gui::GUI* gui);
36 
41  const std::string& outputPath() const;
42 
47  bool renderCharacters() const;
48 
53  std::uint8_t lightLevel() const;
54 
55 private:
56  const StartRender trigger;
57  bl::gui::Window::Ptr window;
58  std::string output;
59  bl::gui::CheckButton::Ptr charBut;
60  LightSlider::Ptr lightSelect;
61 
62  void close();
63  void start();
64 };
65 
66 } // namespace component
67 } // namespace editor
68 
69 #endif
All classes and functionality used for implementing the game editor.
Definition: Tile.hpp:11
std::shared_ptr< LightSlider > Ptr
Definition: LightSlider.hpp:19
Options window to help trigger map renderings.
std::function< void()> StartRender
Callback for when the render should trigger.
bool renderCharacters() const
Returns whether or not to render the characters in the map.
const std::string & outputPath() const
Returns the filename to output to.
void open(bl::gui::GUI *gui)
Opens the window.
std::uint8_t lightLevel() const
Returns the light level to render the map at.
RenderMapWindow(const StartRender &onStart)
Construct a new Render Map Window.