1 #ifndef GAME_MENUS_PEOPLEDEXROW_HPP
2 #define GAME_MENUS_PEOPLEDEXROW_HPP
4 #include <BLIB/Interfaces/Menu.hpp>
5 #include <BLIB/Resources.hpp>
21 using Ptr = std::shared_ptr<PeopledexRow>;
42 virtual glm::vec2
getSize()
const override;
51 virtual void doCreate(bl::engine::Engine& engine)
override;
58 virtual void doSceneAdd(bl::rc::Scene* overlay)
override;
68 virtual bl::ecs::Entity
getEntity()
const override;
75 virtual void draw(bl::rc::scene::CodeScene::RenderContext& ctx)
override;
81 bl::rc::res::TextureRef bgndTxtr;
82 bl::rc::res::TextureRef activeBgndTxtr;
83 bl::gfx::Sprite background;
85 bl::rc::res::TextureRef ballTxtr;
Parent namespace for all functionality unique to the game.
Maintains the information required to populate the peopledex.
Item row for peoplemon in the peopledex.
virtual void doSceneRemove() override
Called when the item should be removed from the overlay.
virtual void doCreate(bl::engine::Engine &engine) override
Called at least once when the item is added to a menu. Should create required graphics primitives and...
virtual glm::vec2 getSize() const override
Returns the size that the row takes up.
virtual bl::ecs::Entity getEntity() const override
Returns the entity (or top level entity) of the item.
static Ptr create(core::pplmn::Id ppl, const core::player::Peopledex &dex)
Create a new peopledex row.
virtual void doSceneAdd(bl::rc::Scene *overlay) override
Called when the item should be added to the overlay.
std::shared_ptr< PeopledexRow > Ptr
Pointer to the row item.
virtual ~PeopledexRow()=default
Destroy the Peopledex Row object.
virtual void draw(bl::rc::scene::CodeScene::RenderContext &ctx) override
Renders the item.