Files
wagic/projects/mtg/include/SimpleMenuItem.h
wagic.the.homebrew 4e0f87a43b Erwan
- fixed the lib to play WAV file (erased too much things in a previous update)
- Updated wav sfx to be playable on the PSP (need to update the lib to accept more formats ?)
- There is still a bug with sfx on the PSP, I suspect I'm erasing files while they are being played !
2008-11-26 11:17:05 +00:00

43 lines
684 B
C++

#ifndef _SIMPLEMENU_ITEM_H
#define _SIMPLEMENU_ITEM_H
#include <string>
#include <JLBFont.h>
#include <JGui.h>
#include <string>
using std::string;
#define SCALE_SELECTED 1.2f
#define SCALE_NORMAL 1.0f
class SimpleMenuItem: public JGuiObject
{
private:
bool mHasFocus;
JLBFont *mFont;
string mText;
int mX;
int mY;
float mScale;
float mTargetScale;
public:
SimpleMenuItem(int id, JLBFont *font, const char* text, int x, int y, bool hasFocus = false);
void RenderWithOffset(float yOffset);
virtual void Render();
virtual void Update(float dt);
virtual void Entering();
virtual bool Leaving(u32 key);
virtual bool ButtonPressed();
};
#endif