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

Method initModsMenu

source/frontend/StarTitleScreen.cpp:467–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void TitleScreen::initModsMenu() {
468 auto modsMenu = make_shared<ModsMenu>();
469 modsMenu->setAnchor(PaneAnchor::Center);
470 modsMenu->lockPosition();
471
472 m_paneManager.registerPane("modsMenu", PaneLayer::Hud, modsMenu, [this](PanePtr const&) {
473 back();
474 });
475}
476
477void TitleScreen::switchState(TitleState titleState) {
478 if (m_titleState == titleState)

Callers

nothing calls this directly

Calls 3

lockPositionMethod · 0.80
registerPaneMethod · 0.80
setAnchorMethod · 0.45

Tested by

no test coverage detected