Skip to content

Commit

Permalink
Added setting for Preview Icons (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed Aug 9, 2024
1 parent da1a0d8 commit c285193
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog
## <cj>v1.3.8</c> <cb>(2024-08-06)</c>
* <cg>Added</c> GDUtils GFX and GD Awards badges.
* <cg>Added</c> setting to show buttons for previewing icons colors when they are not unlocked.
* <cy>Changed</c> badges for GDUtils Developer and GDUtils collaborator badges.
* <cy>Fixed</c> crash with Notifications Server conflicting with Mega Hack.

Expand Down
6 changes: 6 additions & 0 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@
"type": "bool",
"default": true
},
"previewIcons": {
"name": "Preview Icons",
"description": "Show some buttons to preview icons in the <cg>Icon Kit</c> for those who haven't been unlocked yet.",
"type": "bool",
"default": true
},
"background-section": {
"name": "Backgrounds",
"description": "This category is for changing the <cy>background colors</c>.",
Expand Down
2 changes: 2 additions & 0 deletions src/Styles/IconLockColors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ class $modify(GJGarageLayer) {
void onSelect(cocos2d::CCObject* sender) {
GJGarageLayer::onSelect(sender);

if (!Mod::get()->getSettingValue<bool>("previewIcons")) return;

IconLockColors::createIconColor();
}
};
Expand Down

0 comments on commit c285193

Please sign in to comment.