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

Method createNewSeedNotification

src/interface/ui_general.cpp:929–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

927}
928
929void UIToastNotificationManager_t::createNewSeedNotification()
930{
931 UIToastNotification* n = UIToastNotificationManager.addNotification("*#images/ui/Main Menus/Challenges/seed_attempted64px.png");
932 n->actionFlags |= (UIToastNotification::ActionFlags::UI_NOTIFICATION_AUTO_HIDE);
933 n->actionFlags |= (UIToastNotification::ActionFlags::UI_NOTIFICATION_CLOSE);
934 n->actionFlags |= (UIToastNotification::ActionFlags::UI_NOTIFICATION_REMOVABLE);
935 n->cardType = UIToastNotification::CardType::UI_CARD_DEFAULT;
936 n->setHeaderText(Language::get(6169));
937 n->setMainText(Language::get(6170));
938 n->setIdleSeconds(10);
939}
940
941void UIToastNotificationManager_t::createStatisticUpdateNotification(const char* name, int currentValue, int maxValue)
942{

Callers 1

ui_general.cppFile · 0.80

Calls 4

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

Tested by

no test coverage detected