![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Special combobox for Peoplemon ids. More...
#include <PeoplemonSelector.hpp>
Public Types | |
using | Ptr = std::shared_ptr< PeoplemonSelector > |
Public Member Functions | |
core::pplmn::Id | currentPeoplemon () const |
Returns the currently selected peoplemon. More... | |
void | setPeoplemon (core::pplmn::Id id) |
Sets the currently selected Peoplemon. More... | |
void | refresh () |
Refreshes the list of peoplemon. More... | |
Static Public Member Functions | |
static Ptr | create (bool allowUnknown=false) |
Creates a new peoplemon selector. More... | |
Special combobox for Peoplemon ids.
Definition at line 17 of file PeoplemonSelector.hpp.
using editor::component::PeoplemonSelector::Ptr = std::shared_ptr<PeoplemonSelector> |
Definition at line 19 of file PeoplemonSelector.hpp.
|
static |
Creates a new peoplemon selector.
allowUnknown | Allows Unknown/None option to be selected |
Definition at line 8 of file PeoplemonSelector.cpp.
core::pplmn::Id editor::component::PeoplemonSelector::currentPeoplemon | ( | ) | const |
Returns the currently selected peoplemon.
Definition at line 16 of file PeoplemonSelector.cpp.
void editor::component::PeoplemonSelector::refresh | ( | ) |
Refreshes the list of peoplemon.
Definition at line 37 of file PeoplemonSelector.cpp.
void editor::component::PeoplemonSelector::setPeoplemon | ( | core::pplmn::Id | id | ) |
Sets the currently selected Peoplemon.
Definition at line 21 of file PeoplemonSelector.cpp.