MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getPages

Function getPages

launcher/InstancePageProvider.h:31–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30 virtual ~InstancePageProvider() {};
31 virtual QList<BasePage *> getPages() override
32 {
33 QList<BasePage *> values;
34 values.append(new LogPage(inst));
35 std::shared_ptr<MinecraftInstance> onesix = std::dynamic_pointer_cast<MinecraftInstance>(inst);
36 values.append(new VersionPage(onesix.get()));
37 auto modsPage = new ModFolderPage(onesix.get(), onesix->loaderModList());
38 modsPage->setFilter("%1 (*.zip *.jar *.litemod)");
39 values.append(modsPage);
40 values.append(new CoreModFolderPage(onesix.get(), onesix->coreModList()));
41 values.append(new ResourcePackPage(onesix.get(), onesix->resourcePackList()));
42 values.append(new TexturePackPage(onesix.get(), onesix->texturePackList()));
43 values.append(new ShaderPackPage(onesix.get(), onesix->shaderPackList()));
44 values.append(new NotesPage(onesix.get()));
45 values.append(new WorldListPage(onesix.get(), onesix->worldList()));
46 values.append(new ServersPage(onesix));
47 // values.append(new GameOptionsPage(onesix.get()));
48 values.append(new ScreenshotsPage(FS::PathCombine(onesix->gameRoot(), "screenshots")));
49 values.append(new InstanceSettingsPage(onesix.get()));
50 values.append(new StoragePage(onesix.get()));
51 auto logMatcher = inst->getLogFileMatcher();
52 if(logMatcher)
53 {
54 values.append(new OtherLogsPage(inst->getLogFileRoot(), logMatcher));
55 }
56 return values;
57 }
58
59 virtual QString dialogTitle() override
60 {

Callers

nothing calls this directly

Calls 13

PathCombineFunction · 0.85
appendMethod · 0.80
loaderModListMethod · 0.80
coreModListMethod · 0.80
resourcePackListMethod · 0.80
texturePackListMethod · 0.80
shaderPackListMethod · 0.80
worldListMethod · 0.80
getMethod · 0.45
setFilterMethod · 0.45
gameRootMethod · 0.45
getLogFileMatcherMethod · 0.45

Tested by

no test coverage detected