Skip to content

Commit 17107a2

Browse files
committed
enable cascade color and opacity for BasedButtonSprite
1 parent 08d2ee4 commit 17107a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

loader/src/ui/nodes/BasedButtonSprite.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ bool BasedButtonSprite::init(CCNode* ontop, BaseType type, int size, int color)
201201
this->addChild(m_onTop);
202202
}
203203

204+
this->setCascadeColorEnabled(true);
205+
this->setCascadeOpacityEnabled(true);
206+
204207
return true;
205208
}
206209

0 commit comments

Comments
 (0)