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

Method showCrew

source/frontend/StarAiInterface.cpp:271–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void AiInterface::showCrew() {
272 m_currentPage = AiPages::CrewList;
273 m_currentSpeech = {};
274 m_pageBreadcrumbWidget->setText(m_crewBreadcrumbText);
275
276 populateMissions();
277
278 m_crewListWidget->clearSelected();
279 m_mainStack->showPage(2);
280 if (m_crew.empty()) {
281 m_crewStack->showPage(0);
282 setCurrentSpeech("noCrewText", m_aiDatabase->noCrewSpeech());
283 } else {
284 m_crewStack->showPage(1);
285 }
286
287 updateBreadcrumbs();
288}
289
290void AiInterface::selectRecruit() {
291 CompanionPtr recruit = {};

Callers

nothing calls this directly

Calls 5

clearSelectedMethod · 0.80
showPageMethod · 0.80
noCrewSpeechMethod · 0.80
setTextMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected