refresh CCMenuItem

refresh CCMenuItem
0.0 0



I have a feature in my game which display facebook friends with pictures in a scroll view

As there may be a lot of friends, I first display default profile picture and then downloading real profile pics in a separate thread

Now i need to refresh menu items but I have some issues:

  • is it possible to refresh menuItem (I have pointers to thoses items that need to be refreshed)
  • any suggestion for the refresh part, as the loading is done via a seperate thread



You can use CCMenuItemSprite::setNormalImage().


yes , job done , I use a boolean and a schedule to update the texture in the main thread