This commit is contained in:
OmgRod 2025-04-02 22:01:35 -04:00 committed by GitHub
commit 440c9af6b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions
loader
resources
src/ui/mods

Binary file not shown.

After

(image error) Size: 10 KiB

View file

@ -209,6 +209,9 @@ std::pair<ccColor3B, ccColor3B> geodeTagColors(server::ServerTag const& tag) {
};
if (tag.name == "modtober24") {
return std::make_pair(ccc3(225, 236, 245), ccc3(82, 139, 201));
}
if (tag.name == "api") {
return std::make_pair(ccc3(173, 190, 217), ccc3(128, 132, 140));
}
return TAG_COLORS[hash(tag.name) % 5932 % TAG_COLORS.size()];
}

View file

@ -243,6 +243,9 @@ bool ModItem::init(ModSource&& source) {
if (metadata.tags.contains("joke")) {
m_badgeContainer->addChild(CCSprite::createWithSpriteFrameName("tag-joke.png"_spr));
}
if (metadata.tags.contains("api")) {
m_badgeContainer->addChild(CCSprite::createWithSpriteFrameName("tag-api.png"_spr));
}
// todo: modtober winner tag
if (metadata.tags.contains("modtober24winner") || m_source.getID() == "rainixgd.geome3dash") {
auto shortVer = CCSprite::createWithSpriteFrameName("tag-modtober-winner.png"_spr);