code cleanup: removed dead code/ unused variables.
This commit is contained in:
@@ -18,14 +18,11 @@ class SimpleMenu:public JGuiController{
|
|||||||
int maxItems,startId;
|
int maxItems,startId;
|
||||||
float selectionT, selectionY;
|
float selectionT, selectionY;
|
||||||
float timeOpen;
|
float timeOpen;
|
||||||
static unsigned int refCount;
|
|
||||||
|
|
||||||
static JQuad *spadeR, *spadeL, *jewel, *side;
|
static JQuad *spadeR, *spadeL, *jewel, *side;
|
||||||
static JTexture *spadeRTex, *spadeLTex, *jewelTex, *sideTex;
|
static JTexture *spadeRTex, *spadeLTex, *jewelTex, *sideTex;
|
||||||
static WFont* titleFont;
|
static WFont* titleFont;
|
||||||
static hgeParticleSystem* stars;
|
static hgeParticleSystem* stars;
|
||||||
// This works only because of no multithreading
|
|
||||||
static PIXEL_TYPE jewelGraphics[9];
|
|
||||||
|
|
||||||
inline void MogrifyJewel();
|
inline void MogrifyJewel();
|
||||||
void drawHorzPole(float x, float y, float width);
|
void drawHorzPole(float x, float y, float width);
|
||||||
|
|||||||
@@ -24,12 +24,6 @@ JTexture* SimpleMenu::jewelTex = NULL;
|
|||||||
JTexture* SimpleMenu::sideTex = NULL;
|
JTexture* SimpleMenu::sideTex = NULL;
|
||||||
WFont* SimpleMenu::titleFont = NULL;
|
WFont* SimpleMenu::titleFont = NULL;
|
||||||
hgeParticleSystem* SimpleMenu::stars = NULL;
|
hgeParticleSystem* SimpleMenu::stars = NULL;
|
||||||
unsigned int SimpleMenu::refCount = 0;
|
|
||||||
// Here comes the magic of jewel graphics
|
|
||||||
PIXEL_TYPE SimpleMenu::jewelGraphics[9] = {0x3FFFFFFF,0x63645AEA,0x610D0D98,
|
|
||||||
0x63645AEA,0xFF635AD5,0xFF110F67,
|
|
||||||
0x610D0D98,0xFF110F67,0xFD030330};
|
|
||||||
|
|
||||||
|
|
||||||
SimpleMenu::SimpleMenu(int id, JGuiListener* listener, int fontId, float x, float y, const char * _title, int _maxItems): JGuiController(id, listener), fontId(fontId){
|
SimpleMenu::SimpleMenu(int id, JGuiListener* listener, int fontId, float x, float y, const char * _title, int _maxItems): JGuiController(id, listener), fontId(fontId){
|
||||||
autoTranslate = true;
|
autoTranslate = true;
|
||||||
@@ -43,7 +37,6 @@ SimpleMenu::SimpleMenu(int id, JGuiListener* listener, int fontId, float x, floa
|
|||||||
selectionT = 0;
|
selectionT = 0;
|
||||||
timeOpen = 0;
|
timeOpen = 0;
|
||||||
closed = false;
|
closed = false;
|
||||||
++refCount;
|
|
||||||
selectionTargetY = selectionY = y + kVerticalMargin;
|
selectionTargetY = selectionY = y + kVerticalMargin;
|
||||||
|
|
||||||
JRenderer* renderer = JRenderer::GetInstance();
|
JRenderer* renderer = JRenderer::GetInstance();
|
||||||
|
|||||||
Reference in New Issue
Block a user