Skip to content

Commit 88ac6ad

Browse files
committed
Added transparent child backgrounds
1 parent 1a44b56 commit 88ac6ad

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

about.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ A Geometry Dash Mod for adding more tools such as Notifications, auto-song mute,
2424
* You can view a description of either the Moderator, Elder Moderator, or other badges users have by clicking on the badge itself on the profile!
2525
## View Demon List Placement
2626
* Instead of having to go to Pointercrate to view the demon placement of a level, you can now **view the position** of an extreme demon!
27+
## Custom backgrounds
28+
* Custom your **backgrounds colors** or you can even make it **transparent**!
2729

2830
# Credits
2931
* [Jouca](https://twitter.com/JoucaJouca)
@@ -32,6 +34,6 @@ A Geometry Dash Mod for adding more tools such as Notifications, auto-song mute,
3234
* [nekitdev](https://twitter.com/nekitdev)
3335

3436
# Contributors
35-
* [sofabeddd](user:sofabeddd)
37+
* [sofabeddd](user:7976112)
3638

3739
**Thank you to RobTopGames for his trust on the mod.**

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# v1.2.17
2-
- Fixed bug that duplicates the button badges upon profile reload
2+
- Added custom backgrounds
33
- Gave the button badges Node IDs
4+
- Fixed bug that duplicates the button badges upon profile reload
45
# v1.2.15
56
- Added settings for level sharing protocol & receiving all notifications from the server
67
# v1.2.14

mod.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,22 @@
224224
},
225225
"syncBGcolor": {
226226
"name": "Sync BG Color",
227-
"description": "Allows you to <cg>synchronise the GD backgrounds</c> with the child backgrounds.",
227+
"description": "Allows you to <cg>synchronise the GD backgrounds</c> with child backgrounds.",
228228
"type": "bool",
229229
"default": true
230230
},
231231
"addChildBDGradient": {
232232
"name": "Add child BG Gradient",
233-
"description": "Adds a gradient to the child background (only for level browsing).",
233+
"description": "Adds a gradient to child backgrounds (only for level browsing).",
234234
"type": "bool",
235235
"default": true
236236
},
237+
"bgchild-transparency": {
238+
"name": "BG Child Transparency",
239+
"description": "Change the transparency of child backgrounds.",
240+
"type": "bool",
241+
"default": false
242+
},
237243
"credits-section": {
238244
"name": "Credits",
239245
"description": "Below are the credits for those that developed the mod, and beta-tested the mod!",

src/main.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)