diff --git a/changelog.md b/changelog.md index d32bdc2..123f079 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # Changelog ## v1.3.8 (2024-08-06) * Added GDUtils GFX and GD Awards badges. +* Added setting to show buttons for previewing icons colors when they are not unlocked. * Changed badges for GDUtils Developer and GDUtils collaborator badges. * Fixed crash with Notifications Server conflicting with Mega Hack. diff --git a/mod.json b/mod.json index 930d515..ec39fd7 100644 --- a/mod.json +++ b/mod.json @@ -253,6 +253,12 @@ "type": "bool", "default": true }, + "previewIcons": { + "name": "Preview Icons", + "description": "Show some buttons to preview icons in the Icon Kit for those who haven't been unlocked yet.", + "type": "bool", + "default": true + }, "background-section": { "name": "Backgrounds", "description": "This category is for changing the background colors.", diff --git a/src/Styles/IconLockColors.cpp b/src/Styles/IconLockColors.cpp index 53c1c96..465b68b 100644 --- a/src/Styles/IconLockColors.cpp +++ b/src/Styles/IconLockColors.cpp @@ -127,6 +127,8 @@ class $modify(GJGarageLayer) { void onSelect(cocos2d::CCObject* sender) { GJGarageLayer::onSelect(sender); + if (!Mod::get()->getSettingValue("previewIcons")) return; + IconLockColors::createIconColor(); } };