Skip to content

Commit

Permalink
enable cascade color and opacity for BasedButtonSprite
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Jan 5, 2025
1 parent 08d2ee4 commit 17107a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions loader/src/ui/nodes/BasedButtonSprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 17107a2

Please sign in to comment.