![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Editor for NPC files. More...
#include <NPCEditorWindow.hpp>
Public Types | |
using | SelectCb = std::function< void(const std::string &file)> |
Callback for when an NPC file is selected. More... | |
using | CloseCb = std::function< void()> |
Called when the window is closed. More... | |
Public Member Functions | |
NpcEditorWindow (const SelectCb &cb, const CloseCb &closeCb) | |
Construct a new Npc Editor Window. More... | |
void | show (bl::gui::GUI *parent, const std::string &file) |
Opens the NPC editor. More... | |
void | hide () |
Hides the window and all created child windows. More... | |
Editor for NPC files.
Definition at line 20 of file NPCEditorWindow.hpp.
using editor::component::NpcEditorWindow::CloseCb = std::function<void()> |
Called when the window is closed.
Definition at line 26 of file NPCEditorWindow.hpp.
using editor::component::NpcEditorWindow::SelectCb = std::function<void(const std::string& file)> |
Callback for when an NPC file is selected.
Definition at line 23 of file NPCEditorWindow.hpp.
editor::component::NpcEditorWindow::NpcEditorWindow | ( | const SelectCb & | cb, |
const CloseCb & | closeCb | ||
) |
Construct a new Npc Editor Window.
cb | Callback for when an NPC file is selected |
cb | Callback for when the window is closed |
Definition at line 17 of file NPCEditorWindow.cpp.
void editor::component::NpcEditorWindow::hide | ( | ) |
Hides the window and all created child windows.
Definition at line 255 of file NPCEditorWindow.cpp.
void editor::component::NpcEditorWindow::show | ( | bl::gui::GUI * | parent, |
const std::string & | file | ||
) |
Opens the NPC editor.
parent | The parent GUI element |
file | The file to open. Empty for new file |
Definition at line 150 of file NPCEditorWindow.cpp.