关于ccs的按钮

ccs创建的按钮只有normal时候的图片 现在想用程序添加disabled时的图片 如何实现?

只能告诉你这么多了
void loadTextures(const std::string& normal,
const std::string& selected,
const std::string& disabled = “”,
TextureResType texType = TextureResType::LOCAL);

/**
 * Load normal state texture for button.
 *
 * @param normal    normal state texture.
 *
 * @param texType    @see TextureResType
 */
void loadTextureNormal(const std::string& normal, TextureResType texType = TextureResType::LOCAL);

/**
 * Load selected state texture for button.
 *
 * @param selected    selected state texture.
 *
 * @param texType    @see TextureResType
 */
void loadTexturePressed(const std::string& selected, TextureResType texType = TextureResType::LOCAL);

/**
 * Load dark state texture for button.
 *
 * @param disabled    dark state texture.
 *
 * @param texType    @see TextureResType
 */
void loadTextureDisabled(const std::string& disabled, TextureResType texType = TextureResType::LOCAL);

你看的是cocos2d-x吧 quick中是没有loadTextureDisabled这个方法的