Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タグによって CCMenuItemSprite を有効または無効にすることは可能ですか?
例:
itemSprite(tag)->setEnabled(false);
menuがアイテム (おそらく CCMenu クラスのオブジェクト) の親であり、tagがタグであると仮定すると、次のようなことができます:
CCNode *itemSprite = menu->getChildByTag(tag); itemSprite->setEnabled(false);