***Note***
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.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
#include "DeckMenu.h"
|
||||
|
||||
class DeckEditorMenu :
|
||||
public DeckMenu
|
||||
{
|
||||
public:
|
||||
DeckEditorMenu(int id, JGuiListener* listener = NULL, int fontId = 1, const char * _title = "");
|
||||
void Render();
|
||||
~DeckEditorMenu();
|
||||
};
|
||||
@@ -18,6 +18,7 @@ class DeckMenu:public JGuiController{
|
||||
int descX, descY, descHeight, descWidth;
|
||||
int statsX, statsY, statsHeight, statsWidth;
|
||||
int avatarX, avatarY;
|
||||
string backgroundName;
|
||||
|
||||
int fontId;
|
||||
std::string title;
|
||||
@@ -25,18 +26,21 @@ class DeckMenu:public JGuiController{
|
||||
int maxItems, startId;
|
||||
float selectionT, selectionY;
|
||||
float timeOpen;
|
||||
static unsigned int refCount;
|
||||
|
||||
static WFont* titleFont;
|
||||
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;
|
||||
|
||||
DeckMenu(int id, JGuiListener* listener, int fontId, const string _title = "");
|
||||
bool autoTranslate;
|
||||
JQuad * getBackground();
|
||||
DeckMenu(int id, JGuiListener* listener, int fontId, const string _title = "");
|
||||
~DeckMenu();
|
||||
|
||||
void Render();
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include <JGE.h>
|
||||
|
||||
#include "GameState.h"
|
||||
#include "DeckEditorMenu.h"
|
||||
#include "SimpleMenu.h"
|
||||
#include "DeckMenu.h"
|
||||
#include "WResourceManager.h"
|
||||
#include "CardGui.h"
|
||||
#include "GameOptions.h"
|
||||
@@ -146,9 +146,9 @@ private:
|
||||
WGuiFilters * filterMenu;
|
||||
WSrcDeckViewer * source;
|
||||
|
||||
SimpleMenu * welcome_menu;
|
||||
DeckEditorMenu * welcome_menu;
|
||||
SimpleMenu * subMenu;
|
||||
SimpleMenu * menu;
|
||||
DeckEditorMenu * menu;
|
||||
PriceList* pricelist;
|
||||
PlayerData * playerdata;
|
||||
int price;
|
||||
|
||||
Reference in New Issue
Block a user