* Add the confirmation screen for bindings. - Add support for asking confirmations before exiting the menu. - Add support for cancelling saving of options. - Add support for requesting focus when the parent allows to yield. * Recenter most options' text. * Change the background color of the selected options (else, there is no way of knowing where is the cursor when both option text and option value are icons). * Change symbol names to their equivalent PSP icon use in wagic.
50 lines
903 B
C++
50 lines
903 B
C++
#ifndef _GAME_STATE_OPTIONS_H_
|
|
#define _GAME_STATE_OPTIONS_H_
|
|
|
|
#include <JGE.h>
|
|
#include <JGui.h>
|
|
#include "../include/GameState.h"
|
|
|
|
class GameApp;
|
|
class WGuiTabMenu;
|
|
class SimpleMenu;
|
|
class SimplePad;
|
|
|
|
struct KeybGrabber {
|
|
virtual void KeyPressed(LocalKeySym) = 0;
|
|
};
|
|
|
|
class GameStateOptions: public GameState, public JGuiListener {
|
|
private:
|
|
enum {
|
|
SHOW_OPTIONS,
|
|
SHOW_OPTIONS_MENU,
|
|
SAVE
|
|
};
|
|
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
|