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

Method showMissions

source/frontend/StarAiInterface.cpp:223–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void AiInterface::showMissions() {
224 m_currentPage = AiPages::MissionList;
225 m_currentSpeech = {};
226 m_pageBreadcrumbWidget->setText(m_missionBreadcrumbText);
227
228 populateMissions();
229
230 m_missionListWidget->clearSelected();
231 m_mainStack->showPage(1);
232 m_missionStack->showPage(0);
233 if (m_availableMissions.empty() && m_completedMissions.empty()) {
234 m_missionStack->showPage(0);
235 setCurrentSpeech("noMissionsText", m_aiDatabase->noMissionsSpeech());
236 } else {
237 m_missionStack->showPage(1);
238 }
239
240 updateBreadcrumbs();
241}
242
243void AiInterface::selectMission() {
244 size_t selectedItem = m_missionListWidget->selectedItem();

Callers

nothing calls this directly

Calls 5

clearSelectedMethod · 0.80
showPageMethod · 0.80
noMissionsSpeechMethod · 0.80
setTextMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected