1 #ifndef EDITOR_COMPONENTS_NEWMAPDIALOG_HPP
2 #define EDITOR_COMPONENTS_NEWMAPDIALOG_HPP
4 #include <BLIB/Interfaces/GUI.hpp>
20 std::function<void(
const std::string& file,
const std::string& name,
21 const std::string& tileset,
unsigned int w,
unsigned int h)>;
36 void show(bl::gui::GUI* parent,
const std::string& file);
41 bl::gui::Window::Ptr window;
42 bl::gui::Label::Ptr mapFileLabel;
43 bl::gui::TextEntry::Ptr nameEntry;
44 bl::gui::TextEntry::Ptr widthEntry;
45 bl::gui::TextEntry::Ptr heightEntry;
46 bl::gui::Label::Ptr tilesetLabel;
47 bl::gui::FilePicker tilesetPicker;
48 bl::gui::Button::Ptr pickBut;
All classes and functionality used for implementing the game editor.
Dialog for creating new maps.
void show(bl::gui::GUI *parent, const std::string &file)
Opens the new map dialog.
NewMapDialog(const CreateCb &createCb)
Creates a new new-map dialoig.
std::function< void(const std::string &file, const std::string &name, const std::string &tileset, unsigned int w, unsigned int h)> CreateCb
Callback for when maps are created.