WebP lobby images (#25184)

This commit is contained in:
Debug 2024-02-18 23:32:45 +01:00
parent 97b113c580
commit 93503d9fd1
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ public sealed partial class GameTicker
[ViewVariables]
private List<ResPath>? _lobbyBackgrounds;
private static readonly string[] WhitelistedBackgroundExtensions = new string[] {"png", "jpg", "jpeg"};
private static readonly string[] WhitelistedBackgroundExtensions = new string[] {"png", "jpg", "jpeg", "webp"};
private void InitializeLobbyBackground()
{

View File

@ -1,2 +1,3 @@
Note:
Only png and jpgs files are supported, and you need a prototype in Resources/Prototypes/lobbyscreens.yml
PNG, JPEG and WebP is supported. Please prefer a lossy WebP compression since lobby art is big.
You also need to put a prototype in Resources/Prototypes/lobbyscreens.yml