2012-04-09 00:10:12 +08:00
|
|
|
/*
|
2012-02-02 14:26:38 +08:00
|
|
|
enum {
|
|
|
|
//* priority used by the menu
|
|
|
|
kCCMenuTouchPriority = -128,
|
|
|
|
};
|
2012-04-09 00:10:12 +08:00
|
|
|
*/
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCMenu : public CCLayer
|
|
|
|
{
|
|
|
|
void alignItemsVertically();
|
|
|
|
void alignItemsVerticallyWithPadding(float padding);
|
|
|
|
void alignItemsHorizontally();
|
|
|
|
void alignItemsHorizontallyWithPadding(float padding);
|
|
|
|
void alignItemsInColumns(unsigned int columns, va_list args);
|
|
|
|
void alignItemsInRows(unsigned int rows, va_list args);
|
|
|
|
|
|
|
|
void addChild(CCMenuItem* child, int zOrder = 0, int tag = -1);
|
|
|
|
|
|
|
|
void setOpacity(GLubyte opacity);
|
|
|
|
GLubyte getOpacity(void);
|
|
|
|
void setColor(ccColor3B color);
|
|
|
|
ccColor3B getColor(void);
|
|
|
|
|
|
|
|
static CCMenu* node();
|
2012-02-02 22:15:34 +08:00
|
|
|
static CCMenu* menuWithItem(CCMenuItem* item);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|