CCMenuItemSprite accepts CCNode creates a menu item with a normal, selected and disabled image creates a menu item with a normal and selected image with target/selector creates a menu item with a normal,selected and disabled image with target/selector the image used when the item is not selected the image used when the item is not selected the image used when the item is selected the image used when the item is selected the image used when the item is disabled the image used when the item is disabled initializes a menu item with a normal, selected and disabled image with target/selector the image used when the item is not selected the image used when the item is selected the image used when the item is disabledExamples0
Public static methods3
staticcocos2d::CCMenuItemSprite*create(
staticcocos2d::CCMenuItemSprite*create(
staticcocos2d::CCMenuItemSprite*create(
Public member functions10
virtualcocos2d::CCNode*getNormalImage()
virtualvoidsetNormalImage()
virtualcocos2d::CCNode*getSelectedImage()
virtualvoidsetSelectedImage()
virtualcocos2d::CCNode*getDisabledImage()
virtualvoidsetDisabledImage()
boolinitWithNormalSprite(
virtualvoidselected()
virtualvoidunselected()
Fields0
Protected member functions1
virtualvoidupdateImagesVisibility()
Protected fields3
Class CCMenuItemSprite
#include <Geode/cocos/menu_nodes/CCMenuItem.h>
classCCMenuItemSprite:publiccocos2d::CCMenuItem{ ... }
cocos2d::CCNode*normalSprite
,cocos2d::CCNode*selectedSprite
,cocos2d::CCNode*disabledSprite
)cocos2d::CCNode*normalSprite
,cocos2d::CCNode*selectedSprite
,cocos2d::CCObject*target
,cocos2d::SEL_MenuHandlerselector
)cocos2d::CCNode*normalSprite
,cocos2d::CCNode*selectedSprite
,cocos2d::CCNode*disabledSprite
,cocos2d::CCObject*target
,cocos2d::SEL_MenuHandlerselector
)cocos2d::CCNode*normalSprite
,cocos2d::CCNode*selectedSprite
,cocos2d::CCNode*disabledSprite
,cocos2d::CCObject*target
,cocos2d::SEL_MenuHandlerselector
)No description provided
No description provided
No description provided
cocos2d::CCNode*m_pNormalImage
;cocos2d::CCNode*m_pSelectedImage
;cocos2d::CCNode*m_pDisabledImage
;