1 #ifndef EDITOR_COMPONENTS_HELPERS_BEHAVIOREDITOR_HPP
2 #define EDITOR_COMPONENTS_HELPERS_BEHAVIOREDITOR_HPP
4 #include <BLIB/Interfaces/GUI.hpp>
42 void pack(bl::gui::Box::Ptr parent);
62 void pack(bl::gui::Box::Ptr box);
68 bl::gui::ScrollArea::Ptr container;
69 bl::gui::CheckButton::Ptr toggle;
80 bl::gui::Window::Ptr window;
81 bl::gui::Notebook::Ptr notebook;
82 bl::gui::Label::Ptr typeLabel;
83 bl::gui::ComboBox::Ptr dirBox;
84 bl::gui::ComboBox::Ptr spinBox;
85 bl::gui::TextEntry::Ptr radiusEntry;
86 PathEditor pathEditor;
All classes and functionality used for implementing the game editor.
Set of behaviors for NPCs and trainers.
Contains data for when the behavior type is following a path.
Inline GUI elements with openable window for editing behaviors.
void pack(bl::gui::Box::Ptr parent)
Packs the GUI elements for the editor into the given container.
const core::file::Behavior & getValue() const
Returns the behavior value.
std::function< void()> OnSetCb
BehaviorEditor(const OnSetCb &cb, const NotifyWindowCb &onOpen, const NotifyWindowCb &onClose)
Construct a new Behavior Editor.
void hide()
Hides the editor window if opened.
std::function< void()> NotifyWindowCb
void configure(bl::gui::GUI *parent, const core::file::Behavior &behavior)
Sets the parent GUI object and current value. Call before using.