@@ -321,6 +321,9 @@ class $modify(CCScale9Sprite) {
321321 if (Mod::get ()->getSettingValue <bool >(" addChildBDGradient" )) {
322322 new_color = cocos2d::ccColor3B (new_color.r * 0.79 , new_color.g * 0.79 , new_color.b * 0.79 );
323323 }
324+ if (Mod::get ()->getSettingValue <bool >(" bgchild-transparency" )) {
325+ CCScale9Sprite::setOpacity (0 );
326+ }
324327 CCScale9Sprite::setColor (new_color);
325328 } else if (m_fields->isGradient && (CCScale9Sprite::getColor ().r == 0 && CCScale9Sprite::getColor ().g == 39 && CCScale9Sprite::getColor ().b == 98 )) {
326329 ccColor3B new_color = Mod::get ()->getSettingValue <ccColor3B>(" child-background" );
@@ -330,6 +333,9 @@ class $modify(CCScale9Sprite) {
330333 if (Mod::get ()->getSettingValue <bool >(" addChildBDGradient" )) {
331334 new_color = cocos2d::ccColor3B (new_color.r * 0.71 , new_color.g * 0.71 , new_color.b * 0.71 );
332335 }
336+ if (Mod::get ()->getSettingValue <bool >(" bgchild-transparency" )) {
337+ CCScale9Sprite::setOpacity (0 );
338+ }
333339 CCScale9Sprite::setColor (new_color);
334340 } else if (m_fields->isGradient && (CCScale9Sprite::getColor ().r == 0 && CCScale9Sprite::getColor ().g == 46 && CCScale9Sprite::getColor ().b == 117 )) {
335341 ccColor3B new_color = Mod::get ()->getSettingValue <ccColor3B>(" child-background" );
@@ -339,6 +345,9 @@ class $modify(CCScale9Sprite) {
339345 if (Mod::get ()->getSettingValue <bool >(" addChildBDGradient" )) {
340346 new_color = cocos2d::ccColor3B (new_color.r * 0.74 , new_color.g * 0.74 , new_color.b * 0.74 );
341347 }
348+ if (Mod::get ()->getSettingValue <bool >(" bgchild-transparency" )) {
349+ CCScale9Sprite::setOpacity (0 );
350+ }
342351 CCScale9Sprite::setColor (new_color);
343352 } else if (m_fields->isGradient && (CCScale9Sprite::getColor ().r == 0 && CCScale9Sprite::getColor ().g == 36 && CCScale9Sprite::getColor ().b == 91 )) {
344353 ccColor3B new_color = Mod::get ()->getSettingValue <ccColor3B>(" child-background" );
@@ -348,6 +357,9 @@ class $modify(CCScale9Sprite) {
348357 if (Mod::get ()->getSettingValue <bool >(" addChildBDGradient" )) {
349358 new_color = cocos2d::ccColor3B (new_color.r * 0.70 , new_color.g * 0.70 , new_color.b * 0.70 );
350359 }
360+ if (Mod::get ()->getSettingValue <bool >(" bgchild-transparency" )) {
361+ CCScale9Sprite::setOpacity (0 );
362+ }
351363 CCScale9Sprite::setColor (new_color);
352364 } else if (m_fields->isGradient && (CCScale9Sprite::getColor ().r == 0 && CCScale9Sprite::getColor ().g == 31 && CCScale9Sprite::getColor ().b == 79 )) {
353365 ccColor3B new_color = Mod::get ()->getSettingValue <ccColor3B>(" child-background" );
@@ -357,6 +369,9 @@ class $modify(CCScale9Sprite) {
357369 if (Mod::get ()->getSettingValue <bool >(" addChildBDGradient" )) {
358370 new_color = cocos2d::ccColor3B (new_color.r * 0.67 , new_color.g * 0.67 , new_color.b * 0.67 );
359371 }
372+ if (Mod::get ()->getSettingValue <bool >(" bgchild-transparency" )) {
373+ CCScale9Sprite::setOpacity (0 );
374+ }
360375 CCScale9Sprite::setColor (new_color);
361376 }
362377 }
0 commit comments