10 PeoplemonSelector::PeoplemonSelector(
bool au)
29 setSelectedOption(allowUnknown ? i + 1 : i);
34 BL_LOG_WARN <<
"Tried to set invalid Peoplemon id: " << id;
39 if (allowUnknown) { addOption(
"Unknown/None"); }
All classes and functionality used for implementing the game editor.
static const std::vector< Id > & validIds()
Returtns the list of all valid ids.
static const std::string & name(Id id)
Returns the name of the given Peoplemon.
Special combobox for Peoplemon ids.
static Ptr create(bool allowUnknown=false)
Creates a new peoplemon selector.
core::pplmn::Id currentPeoplemon() const
Returns the currently selected peoplemon.
std::shared_ptr< PeoplemonSelector > Ptr
void setPeoplemon(core::pplmn::Id id)
Sets the currently selected Peoplemon.
void refresh()
Refreshes the list of peoplemon.