Cleaned up my phasebar code and merged it into the overall item selection code

This commit is contained in:
Xawotihs
2011-08-04 05:57:10 +00:00
parent 46dfe03099
commit eac5a35b43
6 changed files with 61 additions and 49 deletions
+4 -7
View File
@@ -5,25 +5,22 @@
#include "PhaseRing.h"
#include "WEvent.h"
class GuiPhaseBar: public GuiLayer
class GuiPhaseBar: public GuiLayer, public PlayGuiObject
{
protected:
Phase* phase;
float angle;
float zoomTarget;
float zoomFactor;
static GuiPhaseBar*instance;
public:
static GuiPhaseBar* GetInstance();
public:
GuiPhaseBar();
~GuiPhaseBar();
void Update(float dt);
void Zoom(float);
virtual void Render();
virtual int receiveEventMinus(WEvent * e);
virtual ostream& toString(ostream& out) const;
virtual void Entering();
virtual bool Leaving(JButton key);
};
#endif // _GUIPHASEBAR_H_