1 #ifndef EDITOR_COMPONENTS_OWNEDPEOPLEMONWINDOW_HPP
2 #define EDITOR_COMPONENTS_OWNEDPEOPLEMONWINDOW_HPP
4 #include <BLIB/Interfaces/GUI.hpp>
58 bl::gui::Window::Ptr window;
61 bl::gui::TextEntry::Ptr nameEntry;
62 bl::gui::TextEntry::Ptr levelEntry;
66 bl::gui::SelectBox::Ptr moveBox;
67 std::vector<core::pplmn::MoveId> moves;
73 bool validate()
const;
All classes and functionality used for implementing the game editor.
Represents an instance of a peoplemon. Can be a wild peoplemon, trainer, or player peoplemon....
std::shared_ptr< ItemSelector > Ptr
Pointer to this component.
std::shared_ptr< MoveSelector > Ptr
Pointer to this component.
Window for editing owned Peoplemon.
std::function< void()> NotifyCB
Callback for when the window is closed.
OwnedPeoplemonWindow(const NotifyCB &onFinish, const NotifyCB &onCancel)
Construct a new Owned Peoplemon Window.
void show(bl::gui::GUI *parent, const core::pplmn::OwnedPeoplemon &value={})
Shows the window.
core::pplmn::OwnedPeoplemon getValue() const
Returns the value of the Peoplemon entered.
void hide()
Hides the window.
std::shared_ptr< PeoplemonSelector > Ptr
Provides an inline GUI entry for stats in either EV mode or IV mode.