Trophies icon usable by click/touch

This commit is contained in:
Xawotihs
2011-08-12 23:00:31 +00:00
parent 30f8304918
commit f1b44d5330
3 changed files with 77 additions and 46 deletions

View File

@@ -14,7 +14,7 @@ class hgeParticleSystem;
class MenuItem: public JGuiObject
{
private:
protected:
bool mHasFocus;
WFont *mFont;
string mText;
@@ -49,5 +49,17 @@ public:
virtual ostream& toString(ostream& out) const;
};
class OtherMenuItem: public MenuItem
{
private:
JButton mKey;
int mTimeIndex;
public:
OtherMenuItem(int id, WFont *font, string text, float x, float y, JQuad * _off, JQuad * _on, JButton _key, bool hasFocus = false);
~OtherMenuItem();
virtual void Render();
virtual void Update(float dt);
};
#endif