From e0badf8cb62bfa88369cf3b4faaa5ff5b8c7d1ff Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Sat, 20 Jul 2024 02:03:30 +0300 Subject: [PATCH] fix tab opacity when not selected --- changelog.md | 1 + src/hooks/EditorUI.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.md b/changelog.md index 2519335..45c93ea 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## v0.3.4-alpha * MacOS support! (thank SpaghettDev on Github) + * Fix tab opacity on the icon when not selected ## v0.3.3-alpha * Properly fix lines to origin in curve drawing for Android diff --git a/src/hooks/EditorUI.cpp b/src/hooks/EditorUI.cpp index 0db2355..697245b 100644 --- a/src/hooks/EditorUI.cpp +++ b/src/hooks/EditorUI.cpp @@ -66,6 +66,7 @@ struct EditorUIHook : Modify { auto spriteOff = CCSprite::createWithSpriteFrameName("EditorIcon.png"_spr); spriteOff->setScale(0.2f); + spriteOff->setOpacity(150); auto offBg = CCSprite::createWithSpriteFrameName("GJ_tabOff_001.png"); offBg->addChildAtPosition(spriteOff, Anchor::Center, ccp(0, 0)); offBg->setOpacity(150);