Loading wallpapers
Embed a PNG/JPEG, then register it during OnInitializeMelon.
Embed the image
Add Assets/nebula.png and this project entry:
xml
<ItemGroup>
<EmbeddedResource Include="Assets/nebula.png" LogicalName="MyFirstMod.nebula.png" />
</ItemGroup>Register during startup
After creating content:
csharp
content.RegisterLoadingWallpaper(new LoadingWallpaperDefinition
{
Id = "nebula",
TextureResource = "MyFirstMod.nebula.png"
});Use a unique local ID and the exact embedded resource name. Wallpapers stay client-local and do not need a category.
Each world load selects one image and crops it to fill the screen. Keep important details away from the edges. Invalid images are logged and skipped; no valid images means a black background.
See LoadingWallpaperDefinition for details.