mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-15 14:34:50 -04:00
Merge 1e8500c5db
into dcd3244944
This commit is contained in:
commit
440c9af6b7
3 changed files with 6 additions and 0 deletions
loader
BIN
loader/resources/tag-api.png
Normal file
BIN
loader/resources/tag-api.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 10 KiB |
|
@ -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()];
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue