Menu item for peoplemon.
More...
#include <PeoplemonButton.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...
|
|
Menu item for peoplemon.
Definition at line 17 of file PeoplemonButton.hpp.
◆ Ptr
◆ ~PeoplemonButton()
virtual game::menu::PeoplemonButton::~PeoplemonButton |
( |
| ) |
|
|
virtualdefault |
Destroy the Peoplemon Button object.
◆ create()
Creates a new peoplemon button from the peoplemon.
- Parameters
-
ppl | The peoplemon to represent |
- Returns
- Ptr The new item
Definition at line 19 of file PeoplemonButton.cpp.
◆ doCreate()
void game::menu::PeoplemonButton::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 56 of file PeoplemonButton.cpp.
◆ doSceneAdd()
void game::menu::PeoplemonButton::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 141 of file PeoplemonButton.cpp.
◆ doSceneRemove()
void game::menu::PeoplemonButton::doSceneRemove |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ draw()
void game::menu::PeoplemonButton::draw |
( |
bl::rc::scene::CodeScene::RenderContext & |
ctx | ) |
|
|
overrideprotectedvirtual |
◆ getEntity()
bl::ecs::Entity game::menu::PeoplemonButton::getEntity |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ getSize()
glm::vec2 game::menu::PeoplemonButton::getSize |
( |
| ) |
const |
|
overridevirtual |
◆ setHighlightColor()
void game::menu::PeoplemonButton::setHighlightColor |
( |
const sf::Color & |
color | ) |
|
◆ sync()
Syncs the HP bar and ailment texture with the peoplemon.
- Parameters
-
ppl | The peoplemon to sync with |
Definition at line 41 of file PeoplemonButton.cpp.
◆ synced()
bool game::menu::PeoplemonButton::synced |
( |
| ) |
const |
◆ update()
void game::menu::PeoplemonButton::update |
( |
float |
dt | ) |
|
The documentation for this class was generated from the following files: