![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Dialog for creating new maps. More...
#include <NewMapDialog.hpp>
Public Types | |
using | CreateCb = std::function< void(const std::string &file, const std::string &name, const std::string &tileset, unsigned int w, unsigned int h)> |
Callback for when maps are created. More... | |
Public Member Functions | |
NewMapDialog (const CreateCb &createCb) | |
Creates a new new-map dialoig. More... | |
void | show (bl::gui::GUI *parent, const std::string &file) |
Opens the new map dialog. More... | |
Dialog for creating new maps.
Definition at line 16 of file NewMapDialog.hpp.
using editor::component::NewMapDialog::CreateCb = std::function<void(const std::string& file, const std::string& name, const std::string& tileset, unsigned int w, unsigned int h)> |
Callback for when maps are created.
Definition at line 19 of file NewMapDialog.hpp.
editor::component::NewMapDialog::NewMapDialog | ( | const CreateCb & | createCb | ) |
Creates a new new-map dialoig.
createCb | The callback to trigger when a new map should be created |
Definition at line 21 of file NewMapDialog.cpp.
void editor::component::NewMapDialog::show | ( | bl::gui::GUI * | parent, |
const std::string & | file | ||
) |
Opens the new map dialog.
parent | The parent GUI element |
file | The map file to save to |
Definition at line 112 of file NewMapDialog.cpp.