How to set the menuItem is disabled?

Hello, everyone.
I create a menuItem with this method :
CCMenuItemImage::create(const char normalImage, const charselectedImage, const char disabledImage, CCObject target, SEL_MenuHandler selector);
Now, I want to set the menuItem is disabled. How can I achieve it?
Thank you!

CCMenuItemImage is inherited from CCMenuItemSprite, so you can call setEnabled(false) method in that case.

Artur Bulakaev wrote:

CCMenuItemImage is inherited from CCMenuItemSprite, so you can call setEnabled(false) method in that case.

it’s ok. thank you very much!
:slight_smile: