1 #ifndef EDITOR_COMPONENTS_CHARACTERSPAWNWINDOW_HPP
2 #define EDITOR_COMPONENTS_CHARACTERSPAWNWINDOW_HPP
4 #include <BLIB/Interfaces/GUI.hpp>
40 void open(bl::gui::GUI* parent,
unsigned int level,
const sf::Vector2i& pos,
47 bl::gui::Window::Ptr window;
48 bl::gui::Label::Ptr fileLabel;
49 bl::gui::TextEntry::Ptr levelInput;
50 bl::gui::TextEntry::Ptr xInput;
51 bl::gui::TextEntry::Ptr yInput;
52 bl::gui::ComboBox::Ptr dirEntry;
56 void onFilechoose(
const std::string& file);
All classes and functionality used for implementing the game editor.
Represents a character to be spawned into a map on load.
Editing window for character spawns. Manages NPCs and trainers.
CharacterSpawnWindow(const OnEdit &onEdit)
Creates a new CharacterSpawnWindow.
void open(bl::gui::GUI *parent, unsigned int level, const sf::Vector2i &pos, const core::map::CharacterSpawn *orig)
Opens the spawn editing window.
std::function< void(const core::map::CharacterSpawn *, const core::map::CharacterSpawn &)> OnEdit
Callback for when spawns are created or edited.