thegooglecodearchive / los-cocos

Automatically exported from code.google.com/p/los-cocos
0 stars 0 forks source link

have menus work with cocosnode for text #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
we have wrapped Label in a cocosnode, so maybe you could just make menu
take cocosnodes for its items, or if its a string, render the text.

this way, you do best practice and get free features.

Original issue reported on code.google.com by lucio.to...@gmail.com on 24 Apr 2008 at 7:13

GoogleCodeExporter commented 9 years ago

Original comment by lucio.to...@gmail.com on 24 Apr 2008 at 7:21

GoogleCodeExporter commented 9 years ago
sort of fixed. menuitem is a cocosnode and is following the 'best practices' of 
cocos.
it is calling glpush() ; transform() ; draw() ; glpop().
draw() has a condition: draw A if XXX else draw B
So, I don't need for this particular purpose cocos.text.Label. I tried to use 
by I
needed to change a lot of things.

sort_of_fixed: rev 504

Original comment by ricardoq...@gmail.com on 27 Apr 2008 at 6:49