please copy "DeckEditorMenuBackdrop.png" into your PSP folder. Otherwise you will have a crash when you start up! ChangesLog: minor refactoring of DeckMenu added a new DeckEditorMenu which is derived from DeckMenu. This customizes the deck editor menus with the exception of the confirmation screens (yes/no) Still more work to be done to round out some font issues. TODO: put more information text in bottom row of menu. reorganize statistical data to allow more info to be shown.
59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
/*
|
|
A class for very simple menus structure
|
|
*/
|
|
#ifndef _DeckMenu_H_
|
|
#define _DeckMenu_H_
|
|
|
|
#include <string>
|
|
#include "WFont.h"
|
|
#include "hge/hgeparticle.h"
|
|
#include "DeckMetaData.h"
|
|
#include "TextScroller.h"
|
|
|
|
class DeckMenu:public JGuiController{
|
|
protected:
|
|
|
|
int mHeight, mWidth, mX, mY;
|
|
int titleX, titleY, titleWidth;
|
|
int descX, descY, descHeight, descWidth;
|
|
int statsX, statsY, statsHeight, statsWidth;
|
|
int avatarX, avatarY;
|
|
string backgroundName;
|
|
|
|
int fontId;
|
|
std::string title;
|
|
int displaytitle;
|
|
int maxItems, startId;
|
|
float selectionT, selectionY;
|
|
float timeOpen;
|
|
|
|
WFont* titleFont;
|
|
static hgeParticleSystem* stars;
|
|
// This works only because of no multithreading
|
|
static PIXEL_TYPE jewelGraphics[9];
|
|
|
|
void initMenuItems();
|
|
string getDescription();
|
|
string getMetaInformation();
|
|
|
|
public:
|
|
TextScroller * scroller;
|
|
bool autoTranslate;
|
|
JQuad * getBackground();
|
|
DeckMenu(int id, JGuiListener* listener, int fontId, const string _title = "");
|
|
~DeckMenu();
|
|
|
|
void Render();
|
|
void Update(float dt);
|
|
void Add(int id, const char * Text, string desc = "", bool forceFocus = false, DeckMetaData *deckMetaData = NULL);
|
|
void Close();
|
|
void updateScroller();
|
|
|
|
float selectionTargetY;
|
|
bool closed;
|
|
static void destroy();
|
|
};
|
|
|
|
|
|
#endif
|