MCPcopy Create free account
hub / github.com/TurningWheel/Barony / createGenericNotification

Method createGenericNotification

src/interface/ui_general.cpp:745–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743}
744
745void UIToastNotificationManager_t::createGenericNotification(const char* header, const char* text)
746{
747 UIToastNotification* n = UIToastNotificationManager.addNotification(nullptr);
748 n->actionFlags |= (UIToastNotification::ActionFlags::UI_NOTIFICATION_AUTO_HIDE);
749 n->actionFlags |= (UIToastNotification::ActionFlags::UI_NOTIFICATION_CLOSE);
750 n->actionFlags |= (UIToastNotification::ActionFlags::UI_NOTIFICATION_REMOVABLE);
751 n->cardType = UIToastNotification::CardType::UI_CARD_DEFAULT;
752 n->setHeaderText(header);
753 n->setMainText(text);
754 n->setIdleSeconds(10);
755}
756
757void UIToastNotificationManager_t::createLeaderboardNotification(std::string info)
758{

Callers

nothing calls this directly

Calls 4

setHeaderTextMethod · 0.80
setMainTextMethod · 0.80
setIdleSecondsMethod · 0.80
addNotificationMethod · 0.45

Tested by

no test coverage detected