Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Types | Public Member Functions | List of all members
editor::component::NewMapDialog Class Reference

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...
 

Detailed Description

Dialog for creating new maps.

Definition at line 16 of file NewMapDialog.hpp.

Member Typedef Documentation

◆ CreateCb

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.

Constructor & Destructor Documentation

◆ NewMapDialog()

editor::component::NewMapDialog::NewMapDialog ( const CreateCb createCb)

Creates a new new-map dialoig.

Parameters
createCbThe callback to trigger when a new map should be created

Definition at line 21 of file NewMapDialog.cpp.

Member Function Documentation

◆ show()

void editor::component::NewMapDialog::show ( bl::gui::GUI *  parent,
const std::string &  file 
)

Opens the new map dialog.

Parameters
parentThe parent GUI element
fileThe map file to save to

Definition at line 112 of file NewMapDialog.cpp.


The documentation for this class was generated from the following files: