mirror of https://github.com/axmolengine/axmol.git
Fixing a warning in Bug-458.cpp
This commit is contained in:
parent
2d81a66444
commit
1bb73e50df
|
@ -21,13 +21,13 @@ bool Bug458Layer::init()
|
|||
// [question setContentSize:CGSizeMake(50,50)];
|
||||
// [question2 setContentSize:CGSizeMake(50,50)];
|
||||
|
||||
CCMenuItemSprite* sprite = CCMenuItemSprite::create(question2, question, this, menu_selector(Bug458Layer::selectAnswer));
|
||||
CCMenuItemSprite* sprite = CCMenuItemSprite::create(question2, question, (CCObject*)this, menu_selector(Bug458Layer::selectAnswer));
|
||||
CCLayerColor* layer = CCLayerColor::create(ccc4(0,0,255,255), 100, 100);
|
||||
question->release();
|
||||
question2->release();
|
||||
|
||||
CCLayerColor* layer2 = CCLayerColor::create(ccc4(255,0,0,255), 100, 100);
|
||||
CCMenuItemSprite* sprite2 = CCMenuItemSprite::create(layer, layer2, this, menu_selector(Bug458Layer::selectAnswer));
|
||||
CCMenuItemSprite* sprite2 = CCMenuItemSprite::create(layer, layer2, (CCObject*)this, menu_selector(Bug458Layer::selectAnswer));
|
||||
CCMenu* menu = CCMenu::create(sprite, sprite2, NULL);
|
||||
menu->alignItemsVerticallyWithPadding(100);
|
||||
menu->setPosition(ccp(size.width / 2, size.height / 2));
|
||||
|
|
Loading…
Reference in New Issue