1 #ifndef EDITOR_COMPONENTS_STATBOX_HPP
2 #define EDITOR_COMPONENTS_STATBOX_HPP
4 #include <BLIB/Interfaces/GUI.hpp>
61 void pack(bl::gui::Box& container);
65 const bool showRandom;
66 bl::gui::TextEntry::Ptr hpEntry;
67 bl::gui::TextEntry::Ptr atkEntry;
68 bl::gui::TextEntry::Ptr defEntry;
69 bl::gui::TextEntry::Ptr spAtkEntry;
70 bl::gui::TextEntry::Ptr spDefEntry;
71 bl::gui::TextEntry::Ptr spdEntry;
72 bl::gui::Label::Ptr sumLabel;
75 void onChange(bl::gui::Element* e);
All classes and functionality used for implementing the game editor.
Stats for Peoplemon. This struct is used for base stats, EVs, IVs, battle increases/decreases,...
Provides an inline GUI entry for stats in either EV mode or IV mode.
void pack(bl::gui::Box &container)
Packs the GUI elements into the given container.
void reset()
Resets all stats to 0.
core::pplmn::Stats currentValue() const
Returns the current Stats value entered.
Mode
Mode the entry is in.
StatBox(Mode mode, bool showRandomBut=true)
Construct a new Stat Box component.
void notifyLevel(unsigned int level)
Make the statbox aware of the level of the peoplemon it is editing. Used for random EV generation.
void update(const core::pplmn::Stats &value)
Updates the GUI elements with the given value.