1 #ifndef GAME_MENUS_MOVEINFOROW_HPP
2 #define GAME_MENUS_MOVEINFOROW_HPP
4 #include <BLIB/Interfaces/Menu.hpp>
5 #include <BLIB/Resources.hpp>
35 virtual glm::vec2
getSize()
const override;
44 virtual void doCreate(bl::engine::Engine& engine)
override;
51 virtual void doSceneAdd(bl::rc::Scene* overlay)
override;
61 virtual bl::ecs::Entity
getEntity()
const override;
68 virtual void draw(bl::rc::scene::CodeScene::RenderContext& ctx)
override;
72 bl::rc::res::TextureRef bgndTxtr;
73 bl::rc::res::TextureRef activeBgndTxtr;
74 bl::gfx::Sprite background;
Parent namespace for all functionality unique to the game.
Menu row item for moves on the peoplemon info screen.
virtual void doSceneRemove() override
Called when the item should be removed from the overlay.
virtual void doSceneAdd(bl::rc::Scene *overlay) override
Called when the item should be added to the overlay.
virtual glm::vec2 getSize() const override
Returns the size of the menu item.
static bl::menu::Item::Ptr create(core::pplmn::MoveId move)
Create a new move row.
virtual void draw(bl::rc::scene::CodeScene::RenderContext &ctx) override
Renders the item.
virtual ~MoveInfoRow()=default
Destroy the Move Info Row object.
virtual bl::ecs::Entity getEntity() const override
Returns the entity (or top level entity) of the item.
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...