Skip to content

Commit

Permalink
feat: add node id for ModItem badge container (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
SorkoPiko authored Dec 4, 2024
1 parent 6a62813 commit d7177c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions loader/src/ui/mods/list/ModItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ bool ModItem::init(ModSource&& source) {
},
[this](server::ServerModMetadata const& metadata) {
m_badgeContainer = CCNode::create();
m_badgeContainer->setID("badge-container");
m_badgeContainer->setLayoutOptions(AxisLayoutOptions::create()->setScaleLimits(.1f, .8f));
if (metadata.featured) {
m_badgeContainer->addChild(CCSprite::createWithSpriteFrameName("tag-featured.png"_spr));
Expand Down

0 comments on commit d7177c1

Please sign in to comment.