Added left mouse click support for menu, submenu and battle
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user