The current code always puts the menu title at top screen, centered in x. You can see this by running the test_menu_xxx in the test directory. In particular test_menu_bottom_right.py looks bad, and test_menu_top_left.py looks not soo good.
This happens because title don't uses any halign nor valign, the positioning code hardcodes align as top + center_x Possible changes: Option 0: Let the thing as it is Option 1: Use the same align s both for title and items. It is simple, It never looks strange. Option 2: Add title_valign, title_halign parameters in the menu __init__, make title placement respect this styles. This new kwargs will default to the menu valign, halign, so, not giving explicit title aligns will decay to option1, but you are free to change by providing explicit ones. This option give more choices without forcing the user to add explicit title aligns if he/she wants a standard layout. More coding to do, but not too complicated. I lean to option 1, but can go for 2 if anyone cares. If multiple voices for 0, well, that will be less work. Comments ? -- claudio -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
