2011-06-14 14:31:25 +08:00
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
enum {
|
|
|
|
//* priority used by the menu
|
|
|
|
kCCMenuTouchPriority = -128,
|
|
|
|
};
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
2011-11-29 15:45:20 +08:00
|
|
|
void addChild(CCMenuItem* child, int zOrder = 0, int tag = -1);
|
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
void setOpacity(GLubyte opacity);
|
|
|
|
GLubyte getOpacity(void);
|
|
|
|
void setColor(ccColor3B color);
|
|
|
|
ccColor3B getColor(void);
|
|
|
|
|
|
|
|
static CCMenu* node();
|
|
|
|
};
|