32 lines
699 B
C++
32 lines
699 B
C++
#ifndef _SIMPLEMENU_ITEM_H
|
|
#define _SIMPLEMENU_ITEM_H
|
|
|
|
#include <string>
|
|
#include <JLBFont.h>
|
|
#include <JGui.h>
|
|
#include "SimpleButton.h"
|
|
#include "SimpleMenu.h"
|
|
|
|
using std::string;
|
|
|
|
#define SCALE_SELECTED 1.2f
|
|
#define SCALE_NORMAL 1.0f
|
|
|
|
class SimpleMenuItem: public SimpleButton
|
|
{
|
|
private:
|
|
string mDescription;
|
|
|
|
public:
|
|
SimpleMenuItem(int id);
|
|
SimpleMenuItem(SimpleMenu* _parent, int id, int fontId, string text, float x, float y, bool hasFocus = false, bool autoTranslate = false);
|
|
|
|
virtual void Entering();
|
|
virtual void setDescription( const string& desc );
|
|
virtual string getDescription() const;
|
|
virtual ostream& toString(ostream& out) const;
|
|
|
|
};
|
|
|
|
#endif
|