local button = ccui.Button:create()
button:setTitleText("lalalal")
button:loadTextureNormal("Star.png",0)
button:loadTexturePressed("Star.png",0)
button:loadTextureDisabled("Star.png",0)
button:setPosition(cc.p(display.cx, display.cy - 200))
button:addTo(self)
--button:setTouchEnabled(false)
button:setTouchEnabled(false)
button:getVirtualRenderer():getSprite():setGLProgram(self:getGrayGLProgram())
这是我代码建的button,能够正常的变灰
而我从ccs里面取出来的button,不能够变灰,取其他的imageview,用了好几个,只有一个成功变灰了,这让我很好奇,这是用一个button类新建的控件么?



,真的可以,连shader真不用了,我真的比了dog了,谢谢谢谢谢