Cleaned up the SimpleMenu drawing routines. I was seeing intermittently weird edge lines on the spades of the menu system, as well as gaps. The code was doing a lot of hacky +/- of arbitrary pixel values for the positioning, so I fixed it up to do everything relative to the widths of the pole & the actual spade graphic's size. Also cleaned up the pngs themselves, as they had no need for a transparent pixel rim.
Also moved some static value definitions used in the drawing code from the class header to a private namespace in the cpp file, as they don't need to be seen by any clients of the class.
This commit is contained in:
@@ -10,13 +10,6 @@
|
||||
#include "hge/hgeparticle.h"
|
||||
|
||||
class SimpleMenu:public JGuiController{
|
||||
private:
|
||||
// See SimpleMenu.cpp for values
|
||||
static const unsigned SIDE_SIZE;
|
||||
static const unsigned VMARGIN;
|
||||
static const unsigned HMARGIN;
|
||||
static const signed LINE_HEIGHT;
|
||||
|
||||
private:
|
||||
int mHeight, mWidth, mX, mY;
|
||||
int fontId;
|
||||
|
||||
Reference in New Issue
Block a user