1 #ifndef EDITOR_COMPONENTS_EVENTEDITOR_HPP
2 #define EDITOR_COMPONENTS_EVENTEDITOR_HPP
4 #include <BLIB/Interfaces/GUI.hpp>
38 const sf::Vector2i& pos);
44 bl::gui::Window::Ptr window;
45 bl::gui::Label::Ptr scriptLabel;
46 bl::gui::TextEntry::Ptr xInput;
47 bl::gui::TextEntry::Ptr yInput;
48 bl::gui::TextEntry::Ptr wInput;
49 bl::gui::TextEntry::Ptr hInput;
50 bl::gui::ComboBox::Ptr triggerSelect;
53 void onScriptChosen(
const std::string& s);
All classes and functionality used for implementing the game editor.
Represents an event in a Map. A script that is run on a trigger within a given region.
std::function< void(const core::map::Event *, const core::map::Event &)> OnEdit
Callback called when an event is created or modified.
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.
EventEditor(const OnEdit &onEdit)
Construct a new Event Editor dialog.
GUI component for selecting or writing scripts. Performs syntax validation as well.