1 #ifndef EDITOR_COMPONENTS_MOVESELECTOR_HPP
2 #define EDITOR_COMPONENTS_MOVESELECTOR_HPP
4 #include <BLIB/Interfaces/GUI.hpp>
21 using Ptr = std::shared_ptr<MoveSelector>;
72 std::vector<core::pplmn::MoveId> validMoves;
73 bl::gui::ComboBox::Ptr selector;
74 bl::gui::RadioButton::Ptr noMoveFilter;
75 bl::gui::RadioButton::Ptr levelMoveFilter;
76 bl::gui::RadioButton::Ptr poolMoveFilter;
All classes and functionality used for implementing the game editor.
Combobox for selecting moves.
void setCurrentMove(core::pplmn::MoveId move)
Set the currently selected move.
void selectRandom()
Selects a random move.
void notifyPeoplemon(core::pplmn::Id ppl, unsigned int level)
Notifies the selector of the peoplemon being selected for.
std::function< void(core::pplmn::MoveId)> ChangeCb
Called when a move is selected.
static Ptr create(bool enableFilter, const ChangeCb &changeCb={})
Create a new MoveSelector.
std::shared_ptr< MoveSelector > Ptr
Pointer to this component.
core::pplmn::MoveId currentMove() const
Returns the currently selected move.
void refresh()
Refreshes the list of moves.