Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17093

Height of Menu == Height of the screen?

$
0
0

@joonthepark wrote:

I tried to position something in releative to the position of Menu.

Menu* someMenu = Menu::create(item0, item1, NULL);
someMenu->alignItemsHorizontallyWithPadding(5.0);
someMenu->setPosition(Vec2::ZERO);
this->addChild(someMenu);


float height = someMenu->getContentSize().height;

The height is same as the height of the screen.

What would be the most efficient way to place something in relative to the Menu's y position?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>