From 93503d9fd1cf9923917550b6f41b499efd2b5bbb Mon Sep 17 00:00:00 2001 From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Sun, 18 Feb 2024 23:32:45 +0100 Subject: [PATCH] WebP lobby images (#25184) --- Content.Server/GameTicking/GameTicker.LobbyBackground.cs | 2 +- Resources/Textures/LobbyScreens/PutLobbyScreensHere.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Server/GameTicking/GameTicker.LobbyBackground.cs b/Content.Server/GameTicking/GameTicker.LobbyBackground.cs index 7f2ccfe235..2090e3e31f 100644 --- a/Content.Server/GameTicking/GameTicker.LobbyBackground.cs +++ b/Content.Server/GameTicking/GameTicker.LobbyBackground.cs @@ -13,7 +13,7 @@ public sealed partial class GameTicker [ViewVariables] private List? _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() { diff --git a/Resources/Textures/LobbyScreens/PutLobbyScreensHere.txt b/Resources/Textures/LobbyScreens/PutLobbyScreensHere.txt index 52cb3f1dc9..7d7777fa10 100644 --- a/Resources/Textures/LobbyScreens/PutLobbyScreensHere.txt +++ b/Resources/Textures/LobbyScreens/PutLobbyScreensHere.txt @@ -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