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

Method initOptionsMenu

source/frontend/StarTitleScreen.cpp:457–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457void TitleScreen::initOptionsMenu(UniverseClientPtr client) {
458 auto optionsMenu = make_shared<OptionsMenu>(&m_paneManager,client);
459 optionsMenu->setAnchor(PaneAnchor::Center);
460 optionsMenu->lockPosition();
461
462 m_paneManager.registerPane("optionsMenu", PaneLayer::Hud, optionsMenu, [this](PanePtr const&) {
463 back();
464 });
465}
466
467void TitleScreen::initModsMenu() {
468 auto modsMenu = make_shared<ModsMenu>();

Callers

nothing calls this directly

Calls 3

lockPositionMethod · 0.80
registerPaneMethod · 0.80
setAnchorMethod · 0.45

Tested by

no test coverage detected