Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarTitleScreen.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-12-19 19:08:59 +1100
committerGitHub <noreply@github.com>2024-12-19 19:08:59 +1100
commit63903276e5e1c3f96629d87cdaab9e868368b343 (patch)
treee335b36c27fba80e56605b95e6fd3f4993bd6f58 /source/frontend/StarTitleScreen.cpp
parent2bf5be1af36fa53fc686bb893dc97e5ed10ddaa4 (diff)
parent300b8f2dbae631fdddeafaee683f450418e5cc57 (diff)
Merge pull request #157 from Bottinator22/main
Allow post process shaders to be grouped up and enabled/disabled via Lua or a shaders menu
Diffstat (limited to 'source/frontend/StarTitleScreen.cpp')
-rw-r--r--source/frontend/StarTitleScreen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/frontend/StarTitleScreen.cpp b/source/frontend/StarTitleScreen.cpp
index 895e88a..b48ac13 100644
--- a/source/frontend/StarTitleScreen.cpp
+++ b/source/frontend/StarTitleScreen.cpp
@@ -18,7 +18,7 @@
namespace Star {
-TitleScreen::TitleScreen(PlayerStoragePtr playerStorage, MixerPtr mixer)
+TitleScreen::TitleScreen(PlayerStoragePtr playerStorage, MixerPtr mixer, UniverseClientPtr client)
: m_playerStorage(playerStorage), m_skipMultiPlayerConnection(false), m_mixer(mixer) {
m_titleState = TitleState::Quit;
@@ -43,7 +43,7 @@ TitleScreen::TitleScreen(PlayerStoragePtr playerStorage, MixerPtr mixer)
initCharSelectionMenu();
initCharCreationMenu();
initMultiPlayerMenu();
- initOptionsMenu();
+ initOptionsMenu(client);
initModsMenu();
resetState();
@@ -345,8 +345,8 @@ void TitleScreen::initMultiPlayerMenu() {
m_paneManager.registerPane("multiplayerMenu", PaneLayer::Hud, m_multiPlayerMenu);
}
-void TitleScreen::initOptionsMenu() {
- auto optionsMenu = make_shared<OptionsMenu>(&m_paneManager);
+void TitleScreen::initOptionsMenu(UniverseClientPtr client) {
+ auto optionsMenu = make_shared<OptionsMenu>(&m_paneManager,client);
optionsMenu->setAnchor(PaneAnchor::Center);
optionsMenu->lockPosition();