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