refined detailed info window for stats display removed PSP button for Touch interfaces (currently only iOS and Android) on deck selection screens to not break the core engine and reduce some more complex code, I created a new vector in the JController object. mButtons. This vector will contain all the valid buttons for a given screen. The appropriate Add/Remove methods have been updated to account for this new vector.
52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
#ifndef _DECKMENU_ITEM_H
|
|
#define _DECKMENU_ITEM_H
|
|
|
|
#include <string>
|
|
#include <JLBFont.h>
|
|
#include <JGui.h>
|
|
#include "DeckMenu.h"
|
|
#include "SimpleMenuItem.h"
|
|
|
|
using std::string;
|
|
|
|
class DeckMenuItem: public SimpleMenuItem
|
|
{
|
|
private:
|
|
bool mScrollEnabled;
|
|
bool mDisplayInitialized;
|
|
|
|
DeckMenu* deckController;
|
|
float mTitleResetWidth;
|
|
|
|
protected:
|
|
virtual void checkUserClick();
|
|
|
|
public:
|
|
DeckMenuItem(DeckMenu* _parent, int id, int fontId, string text, float x, float y, bool hasFocus = false, bool autoTranslate = false, DeckMetaData *meta = NULL);
|
|
~DeckMenuItem();
|
|
|
|
string imageFilename;
|
|
float mScrollerOffset;
|
|
DeckMetaData *meta;
|
|
|
|
virtual void Relocate(float x, float y);
|
|
virtual float GetWidth();
|
|
virtual void Render();
|
|
virtual void Update(float dt);
|
|
|
|
virtual bool getTopLeft(float& top, float& left)
|
|
{
|
|
return SimpleMenuItem::getTopLeft(top, left);
|
|
}
|
|
|
|
virtual void Entering();
|
|
virtual bool Leaving(JButton key);
|
|
virtual bool ButtonPressed();
|
|
virtual ostream& toString(ostream& out) const;
|
|
virtual JGuiController* getParent() const;
|
|
virtual void RenderWithOffset(float yOffset);
|
|
|
|
};
|
|
|
|
#endif
|