diff --git a/Content.Client/MainMenu/UI/MainMenuControl.xaml b/Content.Client/MainMenu/UI/MainMenuControl.xaml index 5aa5901783..a6ef910793 100644 --- a/Content.Client/MainMenu/UI/MainMenuControl.xaml +++ b/Content.Client/MainMenu/UI/MainMenuControl.xaml @@ -2,7 +2,7 @@ xmlns:pllax="clr-namespace:Content.Client.Parallax" xmlns:clog="clr-namespace:Content.Client.Changelog"> [] Parallaxes = + [ + "Wizard", + "TrainStation", + "PlasmaStation", + "AmberStation", + "FastSpace", + "AspidParallax", + "OriginStation", + "Default", + "Sky", + "KettleStation", + "BagelStation", + "ExoStation", + ]; + public MainMenuControl(IResourceCache resCache, IConfigurationManager configMan) { + IoCManager.InjectDependencies(this); RobustXamlLoader.Load(this); LayoutContainer.SetAnchorPreset(this, LayoutContainer.LayoutPreset.Wide); @@ -25,6 +47,10 @@ public sealed partial class MainMenuControl : Control LayoutContainer.SetMarginTop(VBox, 30); LayoutContainer.SetGrowHorizontal(VBox, LayoutContainer.GrowDirection.Begin); + // I don't just enumerate them all as there's some hideous parallaxes, and it's easier + // to update an allowlist than to randomly get an ugly one to fix a blocklist. + BackgroundParallax.ParallaxPrototype = _random.Pick(Parallaxes).Id; + var logoTexture = resCache.GetResource("/Textures/Logo/logo.png"); Logo.Texture = logoTexture;