Item row for peoplemon in the peopledex.
More...
#include <PeopledexRow.hpp>
|
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 return the transform to use. More...
|
|
virtual void | doSceneAdd (bl::rc::Scene *overlay) override |
| Called when the item should be added to the overlay. More...
|
|
virtual void | doSceneRemove () override |
| Called when the item should be removed from the overlay. More...
|
|
virtual bl::ecs::Entity | getEntity () const override |
| Returns the entity (or top level entity) of the item. More...
|
|
virtual void | draw (bl::rc::scene::CodeScene::RenderContext &ctx) override |
| Renders the item. More...
|
|
Item row for peoplemon in the peopledex.
Definition at line 18 of file PeopledexRow.hpp.
◆ Ptr
◆ ~PeopledexRow()
virtual game::menu::PeopledexRow::~PeopledexRow |
( |
| ) |
|
|
virtualdefault |
Destroy the Peopledex Row object.
◆ create()
Create a new peopledex row.
- Parameters
-
ppl | The peoplemon to put in the peopledex |
dex | The Peopledex |
- Returns
- Ptr The new row
Definition at line 20 of file PeopledexRow.cpp.
◆ doCreate()
void game::menu::PeopledexRow::doCreate |
( |
bl::engine::Engine & |
engine | ) |
|
|
overrideprotectedvirtual |
Called at least once when the item is added to a menu. Should create required graphics primitives and return the transform to use.
- Parameters
-
engine | The game engine instance |
Definition at line 33 of file PeopledexRow.cpp.
◆ doSceneAdd()
void game::menu::PeopledexRow::doSceneAdd |
( |
bl::rc::Scene * |
overlay | ) |
|
|
overrideprotectedvirtual |
Called when the item should be added to the overlay.
- Parameters
-
overlay | The overlay to add to |
Definition at line 75 of file PeopledexRow.cpp.
◆ doSceneRemove()
void game::menu::PeopledexRow::doSceneRemove |
( |
| ) |
|
|
overrideprotectedvirtual |
Called when the item should be removed from the overlay.
Definition at line 84 of file PeopledexRow.cpp.
◆ draw()
void game::menu::PeopledexRow::draw |
( |
bl::rc::scene::CodeScene::RenderContext & |
ctx | ) |
|
|
overrideprotectedvirtual |
◆ getEntity()
bl::ecs::Entity game::menu::PeopledexRow::getEntity |
( |
| ) |
const |
|
overrideprotectedvirtual |
Returns the entity (or top level entity) of the item.
Definition at line 86 of file PeopledexRow.cpp.
◆ getSize()
glm::vec2 game::menu::PeopledexRow::getSize |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: