You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto description = "This badge has <cr>no available information</c>. This is likely unintentional, please report it as an issue in the mod's repository.";
330
330
auto button = "Learn More";
@@ -333,27 +333,27 @@ namespace avalanche {
333
333
switch (badge) {
334
334
case Profile::Badge::CUBIC:
335
335
title = "Cubic Studios";
336
-
description = fmt::format("<cg>{}</c> is a <cy>staff member</c> of <cj>Cubic Studios</c>. They partake in the activities of a department of Cubic, and may supervise or join projects such as <cl>Avalanche</c>.", name->getCString()).c_str();
336
+
description = fmt::format("<cg>{}</c> is a <cy>staff member</c> of <cj>Cubic Studios</c>. They partake in the activities of a department of Cubic, and may supervise or join projects such as <cl>Avalanche</c>.", name).c_str();
337
337
break;
338
338
339
339
case Profile::Badge::DIRECTOR:
340
340
title = "Avalanche Director";
341
-
description = fmt::format("<cg>{}</c> is the <co>director</c> of <cl>Avalanche</c>. They run the whole team.", name->getCString()).c_str();
341
+
description = fmt::format("<cg>{}</c> is the <co>director</c> of <cl>Avalanche</c>. They run the whole team.", name).c_str();
342
342
break;
343
343
344
344
case Profile::Badge::MANAGER:
345
345
title = "Avalanche Manager";
346
-
description = fmt::format("<cg>{}</c> is a <cy>manager</c> of <cl>Avalanche</c>. They manage team projects and collaborations.", name->getCString()).c_str();
346
+
description = fmt::format("<cg>{}</c> is a <cy>manager</c> of <cl>Avalanche</c>. They manage team projects and collaborations.", name).c_str();
347
347
break;
348
348
349
349
case Profile::Badge::MEMBER:
350
350
title = "Avalanche Team Member";
351
-
description = fmt::format("<cg>{}</c> is a <cg>member</c> of <cl>Avalanche</c>. They partake in team projects and collaborations.", name->getCString()).c_str();
351
+
description = fmt::format("<cg>{}</c> is a <cg>member</c> of <cl>Avalanche</c>. They partake in team projects and collaborations.", name).c_str();
352
352
break;
353
353
354
354
case Profile::Badge::COLLABORATOR:
355
355
title = "Team Collaborator";
356
-
description = fmt::format("<cg>{}</c> is a <cg>collaborator</c> of <cl>Avalanche</c>. They've directly worked on the crew's or team's projects as an outsider.", name->getCString()).c_str();
356
+
description = fmt::format("<cg>{}</c> is a <cg>collaborator</c> of <cl>Avalanche</c>. They've directly worked on the crew's or team's projects as an outsider.", name).c_str();
357
357
break;
358
358
359
359
default:
@@ -370,15 +370,4 @@ namespace avalanche {
370
370
if (btn2) web::openLinkInBrowser(url);
371
371
}, true);
372
372
};
373
-
374
-
// badge button event
375
-
voidHandler::onInfoBadge(CCObject* sender) {
376
-
// gets the node that triggered the function
377
-
auto ptr = static_cast<CCMenuItemSpriteExtra*>(sender);
378
-
379
-
auto badge = Handler::Badges::fromBadgeID(ptr->getID());
380
-
auto name = static_cast<CCString*>(ptr->getUserObject("profile"_spr));
0 commit comments