J :
* Add the rolling phasebar. * This is a preview version. It shares most of the code with the definitive version, but when the real code is checked in, this will be deleted.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef _GUI_LAYERS_H_
|
||||
#define _GUI_LAYERS_H_
|
||||
|
||||
#define MAX_GUI_LAYERS 6
|
||||
#define MAX_GUI_LAYERS 7
|
||||
|
||||
#define DIR_DOWN 1
|
||||
#define DIR_UP 2
|
||||
|
||||
27
projects/mtg/include/GuiPhaseBar.h
Normal file
27
projects/mtg/include/GuiPhaseBar.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef _GUIPHASEBAR_H_
|
||||
#define _GUIPHASEBAR_H_
|
||||
|
||||
#include "GuiLayers.h"
|
||||
#include "PhaseRing.h"
|
||||
#include "WEvent.h"
|
||||
|
||||
class GuiPhaseBar : public GuiLayer
|
||||
{
|
||||
static const unsigned Width = 28;
|
||||
static const unsigned Height = Width;
|
||||
static const unsigned Phases = 12;
|
||||
|
||||
protected:
|
||||
JQuad* quad;
|
||||
Phase* phase;
|
||||
float angle;
|
||||
|
||||
public:
|
||||
GuiPhaseBar(GameObserver* game);
|
||||
~GuiPhaseBar();
|
||||
void Update(float dt);
|
||||
virtual void Render();
|
||||
virtual int receiveEvent(WEvent * e);
|
||||
};
|
||||
|
||||
#endif // _GUIPHASEBAR_H_
|
||||
Reference in New Issue
Block a user