MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / QuestCompleteInterface

Method QuestCompleteInterface

source/frontend/StarQuestInterface.cpp:423–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423QuestCompleteInterface::QuestCompleteInterface(QuestPtr const& quest, PlayerPtr player, CinematicPtr cinematic)
424 : QuestPane(quest, player) {
425 auto assets = Root::singleton().assets();
426 String configFile = m_quest->getTemplate()->questCompleteGuiConfig.value(assets->json("/quests/quests.config:defaultGuiConfigs.questComplete").toString());
427 Json config = assets->json(configFile);
428
429 m_player = player;
430 m_cinematic = cinematic;
431
432 commonSetup(config, m_quest->completionText(), "QuestComplete");
433
434 if (auto moneyLabel = fetchChild<LabelWidget>("lblMoneyAmount"))
435 moneyLabel->setText(toString(m_quest->money()));
436 disableScissoring();
437}
438
439void QuestCompleteInterface::close() {
440 auto assets = Root::singleton().assets();

Callers

nothing calls this directly

Calls 10

singletonClass · 0.85
toStringFunction · 0.85
assetsMethod · 0.80
getTemplateMethod · 0.80
jsonMethod · 0.80
completionTextMethod · 0.80
moneyMethod · 0.80
valueMethod · 0.45
toStringMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected