Added left mouse click support for menu, submenu and battle

This commit is contained in:
Xawotihs
2010-10-10 21:59:18 +00:00
parent e342103204
commit 93b1656f13
5 changed files with 57 additions and 7 deletions
+1
View File
@@ -59,6 +59,7 @@ class ObjectSelector : public GuiLayer
void Add(T*);
void Remove(T*);
bool CheckUserInput(JButton key);
bool CheckUserInput(int x, int y);
void Update(float dt);
void Render();
void Push();
+1
View File
@@ -39,6 +39,7 @@ class MenuItem: public JGuiObject
virtual void Entering();
virtual bool Leaving(JButton key);
virtual bool ButtonPressed();
virtual bool getTopLeft(int& top, int& left) {top = mY; left = mX; return true;};
virtual ostream& toString(ostream& out) const;
};
+1
View File
@@ -42,6 +42,7 @@ class SimpleMenuItem: public JGuiObject
virtual bool Leaving(JButton key);
virtual bool ButtonPressed();
virtual ostream& toString(ostream& out) const;
virtual bool getTopLeft(int& top, int& left) {top = mY; left = mX; return true;};
};
#endif