网页版本都能正常显示碎图和整合成大图的
手机版本不正常
var btnKick = cc.MenuItemImage.create( "#btn_kick.png", "#btn_kick1.png", this.onKickKeyDown);
手机版本用cc.MenuItemSprite就正常
var kickUp = cc.Sprite.create("#btn_kick.png"); var kickDown = cc.Sprite.create("#btn_kick1.png"); var kickDisable = cc.Sprite.create("#btn_kick1.png"); var btnKick = cc.MenuItemSprite.create(kickUp, kickDown, kickDisable, this.onKickKeyDown, this); btnKick.x = 380; btnKick.y = 20; btnKick.scale = 0.65; this.addChild(btnKick, 9999);
// 暂停 var btnPause = cc.MenuItemImage.create( "res/pause.png", "res/pause2.png", function () { this.onStop(); }, this); btnPause.x = winSize.width - 30; btnPause.y = winSize.height - 70; var menu = cc.Menu.create(this._btnPower, btnPause); menu.x = 0; menu.y = 20; this.addChild(menu, 120); this._btnPower.visible = false;