1 #ifndef EDITOR_COMPONENTS_ITEMEDITORWINDOW_HPP
2 #define EDITOR_COMPONENTS_ITEMEDITORWINDOW_HPP
4 #include <BLIB/Interfaces/GUI.hpp>
45 bl::gui::Window::Ptr window;
46 bl::gui::TextEntry::Ptr idEntry;
47 bl::gui::TextEntry::Ptr nameEntry;
48 bl::gui::TextEntry::Ptr descEntry;
49 bl::gui::TextEntry::Ptr valueEntry;
53 bl::gui::Button::Ptr applyBut;
Id
Represents an item in its simplist form.
All classes and functionality used for implementing the game editor.
Loads and stores metadata surrounding items in the game.
Window for editing an individual item in the item database.
void open(bl::gui::GUI *parent, core::item::Id item)
Open the editor window.
std::function< void()> OnChange
Callback signature for when an item is modified.
ItemEditorWindow(core::file::ItemDB &db, const OnChange &onChange)
Construct a new Item Editor Window.