![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Map event editor dialog. More...
#include <EventEditor.hpp>
Public Types | |
using | OnEdit = std::function< void(const core::map::Event *, const core::map::Event &)> |
Callback called when an event is created or modified. More... | |
Public Member Functions | |
EventEditor (const OnEdit &onEdit) | |
Construct a new Event Editor dialog. More... | |
void | open (bl::gui::GUI *parent, const core::map::Event *source, const sf::Vector2i &pos) |
Opens the dialog window and optionally populates with event info. More... | |
Map event editor dialog.
Definition at line 18 of file EventEditor.hpp.
using editor::component::EventEditor::OnEdit = std::function<void(const core::map::Event*, const core::map::Event&)> |
Callback called when an event is created or modified.
Definition at line 21 of file EventEditor.hpp.
editor::component::EventEditor::EventEditor | ( | const OnEdit & | onEdit | ) |
Construct a new Event Editor dialog.
onEdit | Callback to call when an event is created or modified |
Definition at line 9 of file EventEditor.cpp.
void editor::component::EventEditor::open | ( | bl::gui::GUI * | parent, |
const core::map::Event * | source, | ||
const sf::Vector2i & | pos | ||
) |
Opens the dialog window and optionally populates with event info.
parent | The parent GUI object |
source | Optional event to populate from |
pos | The position to populate if not editing an existing event |
Definition at line 84 of file EventEditor.cpp.