![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Window for editing an individual item in the item database. More...
#include <ItemEditorWindow.hpp>
Public Types | |
using | OnChange = std::function< void()> |
Callback signature for when an item is modified. More... | |
Public Member Functions | |
ItemEditorWindow (core::file::ItemDB &db, const OnChange &onChange) | |
Construct a new Item Editor Window. More... | |
void | open (bl::gui::GUI *parent, core::item::Id item) |
Open the editor window. More... | |
Window for editing an individual item in the item database.
Definition at line 19 of file ItemEditorWindow.hpp.
using editor::component::ItemEditorWindow::OnChange = std::function<void()> |
Callback signature for when an item is modified.
Definition at line 22 of file ItemEditorWindow.hpp.
editor::component::ItemEditorWindow::ItemEditorWindow | ( | core::file::ItemDB & | db, |
const OnChange & | onChange | ||
) |
Construct a new Item Editor Window.
db | The item database |
onChange | Callback for when an item is changed |
Definition at line 17 of file ItemEditorWindow.cpp.
void editor::component::ItemEditorWindow::open | ( | bl::gui::GUI * | parent, |
core::item::Id | item | ||
) |
Open the editor window.
parent | The parent GUI object |
item | The item to populate for, or Unknown for a new item |
Definition at line 70 of file ItemEditorWindow.cpp.