sword Garu Button is pressed the image does not change
Posts 7
Added by sword Garu 12 months ago

var newGameNormal = cc.Sprite.spriteWithFile("Resources/f1.png");
var newGameSelected = cc.Sprite.spriteWithFile("Resources/f2.png");
var newGameDisabled = cc.Sprite.spriteWithFile("Resources/f2.png");

var newGame = cc.MenuItemSprite.itemFromNormalSprite(newGameNormal, newGameSelected, newGameDisabled, this, function(){
})

What's the problem?

Shun Lin RE: Button is pressed the image does not change
Posts 160
Added by Shun Lin 12 months ago

What you are showing is correct, it should work.

Could you please post the code here?

Maybe you can test your code in HelloWorld, and show us more details.


(1-1/1)