Closed GoogleCodeExporter closed 9 years ago
imagine this:
create_menu(menuitems, menuitems_selected, on_enter_action, on_leave_action,
on_selected_action)
menuitem: a list of cocos nodes for the menuitems (or text)
menuitem_selected: a list of cocos nodes for when the menuitem in selected
*_action: the action to apply to the node when the event * ocurrs.
Original comment by lucio.to...@gmail.com
on 24 Apr 2008 at 7:45
ok.
I'm doing something like this:
create_menu( menu_items, on_selected_action, on_unselected_action )
v0.3 won't support images as menuitems, so no need for menuitems_selected (they
are
generated automatically by the menu)
what's the difference between on_enter_action y on_selected en un menuitem ?
Original comment by ricardoq...@gmail.com
on 26 Apr 2008 at 10:48
why not images?
one is for when you move over the item, the other if for when you click it.
Original comment by lucio.to...@gmail.com
on 26 Apr 2008 at 11:01
> why not images?
because I was thinking of this:
. image in the title: -> easy
. images in MenuEntry: -> ok, I have to rewrite a lot of parts of the menu, but it
is not that complicated
. images in other MenuEntries like: MultipleMenuItem. The user must provide the
images for all the multiple options. If he is going to use text, then it won't
look
good, and if it is going to use text, then the horizontal alignment will be more
complicated (images + text )
. images in EntryMenuItem: the user must provide a full set of characters... mmm...
same problem as above.
and since we are near the release I don't want to do a big feature now... If I
reduce
the size of this feature (lets say: images in title en menuentry), it will work
as
expected only some cases, but it won't work as expected in other cases, and
this will
frustrate some developers.
So my conclusion was: Lets deliver menus that work as expected in 100% of the
cases
for v0.3 and think of including images for the next version.
what do you think ?
> one is for when you move over the item, the other if for when you click it.
ah... ok.
Original comment by ricardoq...@gmail.com
on 26 Apr 2008 at 11:56
+1
Original comment by lucio.to...@gmail.com
on 27 Apr 2008 at 2:22
fixed. rev 504
Original comment by ricardoq...@gmail.com
on 27 Apr 2008 at 6:44
Original comment by ricardoq...@gmail.com
on 27 Apr 2008 at 6:44
Original issue reported on code.google.com by
ricardoq...@gmail.com
on 24 Apr 2008 at 11:10