From 17107a24ab1586e3e5d7b16bf051ba0867245b61 Mon Sep 17 00:00:00 2001 From: dankmeme01 <42031238+dankmeme01@users.noreply.github.com> Date: Sun, 5 Jan 2025 14:36:45 +0100 Subject: [PATCH] enable cascade color and opacity for BasedButtonSprite --- loader/src/ui/nodes/BasedButtonSprite.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loader/src/ui/nodes/BasedButtonSprite.cpp b/loader/src/ui/nodes/BasedButtonSprite.cpp index 94472bf17..98fd772d7 100644 --- a/loader/src/ui/nodes/BasedButtonSprite.cpp +++ b/loader/src/ui/nodes/BasedButtonSprite.cpp @@ -201,6 +201,9 @@ bool BasedButtonSprite::init(CCNode* ontop, BaseType type, int size, int color) this->addChild(m_onTop); } + this->setCascadeColorEnabled(true); + this->setCascadeOpacityEnabled(true); + return true; }