* Grab the keyboard and display the grabbed key. * Include a tentative interface for the initial message. It's ugly.
48 lines
891 B
C++
48 lines
891 B
C++
#ifndef _GAME_STATE_OPTIONS_H_
|
|
#define _GAME_STATE_OPTIONS_H_
|
|
|
|
#include <JGE.h>
|
|
#include <JGui.h>
|
|
#include "../include/GameState.h"
|
|
|
|
#define SHOW_OPTIONS 1
|
|
#define SHOW_OPTIONS_MENU 2
|
|
|
|
class GameApp;
|
|
class WGuiTabMenu;
|
|
class SimpleMenu;
|
|
class SimplePad;
|
|
|
|
struct KeybGrabber {
|
|
virtual void KeyPressed(LocalKeySym) = 0;
|
|
};
|
|
|
|
class GameStateOptions: public GameState, public JGuiListener {
|
|
private:
|
|
float timer;
|
|
bool mReload;
|
|
KeybGrabber* grabber;
|
|
|
|
public:
|
|
SimpleMenu * optionsMenu;
|
|
WGuiTabMenu * optionsTabs;
|
|
int mState;
|
|
|
|
GameStateOptions(GameApp* parent);
|
|
virtual ~GameStateOptions();
|
|
|
|
virtual void Start();
|
|
virtual void End();
|
|
virtual void Update(float dt);
|
|
virtual void Render();
|
|
virtual void GrabKeyboard(KeybGrabber*);
|
|
virtual void UngrabKeyboard(const KeybGrabber*);
|
|
void ButtonPressed(int controllerId, int ControlId);
|
|
|
|
string newProfile;
|
|
|
|
};
|
|
|
|
|
|
#endif
|