New module: Platform - Split window management from Utility module (#128)
* New module: Platform - Split window management from Utility module Final touch * NDK/SDK: Bring back initialization of Utility
This commit is contained in:
committed by
Jérôme Leclercq
parent
41a1b5d493
commit
5aa072cee3
26
tests/Engine/Platform/EventHandler/MenuState.hpp
Normal file
26
tests/Engine/Platform/EventHandler/MenuState.hpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef __MENUSTATE_HPP__
|
||||
#define __MENUSTATE_HPP__
|
||||
|
||||
#include "BaseState.hpp"
|
||||
|
||||
class StateContext;
|
||||
|
||||
class MenuState : public BaseState
|
||||
{
|
||||
public:
|
||||
MenuState(StateContext& stateContext);
|
||||
|
||||
void Enter(Ndk::StateMachine& fsm) override;
|
||||
|
||||
void Leave(Ndk::StateMachine& fsm) override;
|
||||
|
||||
bool Update(Ndk::StateMachine& fsm, float elapsedTime) override;
|
||||
|
||||
private:
|
||||
void DrawMenu();
|
||||
|
||||
NazaraSlot(Nz::EventHandler, OnKeyPressed, m_keyPressedSlot);
|
||||
int m_selectedNextState;
|
||||
};
|
||||
|
||||
#endif // __MENUSTATE_HPP__
|
||||
Reference in New Issue
Block a user