Hi,
is it possible to change the MenuItemImage on the fly?
I'd like to change the icon when one tapped on it.
Lenny
A fast, easy to use, free, and community supported 2D game engine
Hi,
is it possible to change the MenuItemImage on the fly?
I'd like to change the icon when one tapped on it.
Lenny
Im guessing:
myMenuItemImage.normalImage.texture=
[[TextureMgr sharedTextureMgr] addImage: @"icon2.png"];
Also you may want to change corresponding selectedImage and/or disabledImage if you use those. And the images should probably be the same dimensions as the image they are replacing.
hth, Codemattic
great, thanks
I've been using this method for a while with excellent results. But for my new project I'm using ver 0.8.1 and there MenuItemImage seems to work completely different.
I've been looking at the source code, but I haven't been able to figure out the big picture.
Can someone shed some light on this?
You must log in to post.