menu controllable but still needs view

This commit is contained in:
Bluub
2021-06-03 14:47:27 +02:00
parent c68389d1e8
commit 06a7a2d3bf
2 changed files with 46 additions and 13 deletions

View File

@@ -12,8 +12,24 @@ namespace BBM
class MenuControllableSystem : public WAL::System
{
private:
//! @brief index of the current button selected
unsigned _buttonIndex = 0;
//! @brief move vector
Vector2f move;
//! @brief Select action
bool select = false;
//! @brief Cancel action
bool cancel = false;
//! @brief update button index
//! @param length length of the button set
void updateButtonIndex(int length);
public:
//! @inherit
void onSelfUpdate(void) override;
//! @inherit
void onFixedUpdate(WAL::Entity &entity) override;