- It is now possible to have avatars associated to each Deck - Added SFX - Added Music files - Possibility to choose your opponent - Opponents' difficulty is measured according to their number of victories against a given deck
27 lines
553 B
C++
27 lines
553 B
C++
/*
|
|
A class for very simple menus structure
|
|
*/
|
|
#ifndef _SIMPLEMENU_H_
|
|
#define _SIMPLEMENU_H_
|
|
|
|
#include <JGui.h>
|
|
#include <JLBFont.h>
|
|
#include <string>
|
|
|
|
class SimpleMenu:public JGuiController{
|
|
private:
|
|
int mHeight, mWidth, mX, mY;
|
|
JLBFont* mFont;
|
|
std::string title;
|
|
int displaytitle;
|
|
int maxItems,startId;
|
|
public:
|
|
SimpleMenu(int id, JGuiListener* listener, JLBFont* font, int x, int y, int width, const char * _title = NULL, int _maxItems = 10);
|
|
void Render();
|
|
void Update(float dt);
|
|
void Add(int id, const char * Text);
|
|
};
|
|
|
|
|
|
#endif
|