// // CocosConfig.h // CandyCpp // // Created by 杜家兑macbook on 17/11/27. // // #ifndef CocosConfig_h #define CocosConfig_h #include #include #include "cocos2d.h" USING_NS_CC; class CocosConfig { public: static bool getCCBAudioEnable(); static void setCCBAudioEnable(bool enable); static bool getIgnoreCCBPath(); static void setIgnoreCCBPath(bool enable); static bool getOpacityCCBEnable(); static void setOpacityCCBEnable(bool enable); static bool getColorCCBEnable(); static void setColorCCBEnable(bool enable); static bool getParticleVisibleReset(); static void setParticleVisibleReset(bool enable); static bool getParticleOpacity(); static void setParticleOpacity(bool enable); static std::string getDefaultEmptyPic(); static void setDefaultEmptyPic(std::string picName); static bool isCCBParticleUseEmitrate(); static void setCCBParticleUseEmitrate(bool use); static bool getAutoAddSingleImage2Cache(); static void setAutoAddSingleImage2Cache(bool enable); static bool isAndroidMp3ReplaceOgg(); static void setAndroidMp3ReplaceOgg(bool replace); static bool isPictureReplaceWebp(); static void setPictureReplaceWebp(bool replace); static bool isParticleUpdateOptimize(); static void setParticleUpdateOptimize(bool enable); // zhuge AudioCache最低安卓版本支持到15,默认是到17,但是15也没有发现什么问题 static int minAudioCacheSupportAndroidSystemVersion(); static void setMinAudioCacheSupportAndroidSystemVersion(int version); // zhuge 修改CocosBuilder 粒子可以选择大图 static bool isCCBParticleUseTexturePlist(); static void setCCBParticleUseTexturePlist(bool b); // zhuge 播放ccb中的音效时,发送消息 static bool pushNotificationWhenCCBSoundPlayed(); static void setPushNotificationWhenCCBSoundPlayed(bool b); static std::string getCcbEfxPrefix(); static void setCcbEfxPrefix(std::string prefix); // zhuge CCB中是否可以配置粒子的PositionType static bool isCCBParticlePositionTypeSettable(); static void setCCBParticlePositionTypeSettable(bool b); //ios admob banner 上移12像素 点消收到警告 需求加入 static bool isAdmobBannerMoveToUpByNumPixels(); static void setAdmobBannerMoveToUpByNumPixels(bool b); // 决定例子图源时是否配置粒子的PositionType为group static bool isParticlePositionTypeGroupWhenSetTexture(); static void setParticlePositionTypeGroupWhenSetTexture(bool b); // djd 决定label是否忽略CC_CONTENT_SCALE_FACTOR(家装的label小图模式下label不压缩) static bool isIgnoreScaleFactor4Label(); static void setIgnoreScaleFactor4Label(bool b); // 杜家兑 异步加载图片是否为双线程(默认为单线程异步加载图片) static bool isAddImageAsyncWith2Threads(); static void setAddImageAsyncWith2Threads(bool b); //sc 合批缩放值 static float getMergeScale(); static void setMergeScale(float mergeScale); //sc rb加载是否缓存rb (默认为高端机 为true) 如果是低端机 需要传值false static bool isCharacterRbCache(); static void setCharacterRbCache(bool b); CocosConfig(); ~CocosConfig(); }; #endif /* CocosConfig_h */