Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebP lobby images #25184

Merged
merged 3 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Content.Server/GameTicking/GameTicker.LobbyBackground.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
16 changes: 8 additions & 8 deletions Resources/Prototypes/lobbyscreens.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
- type: lobbyBackground
id: Robotics
background: /Textures/LobbyScreens/robotics.png
background: /Textures/LobbyScreens/robotics.webp

- type: lobbyBackground
id: Supermatter
background: /Textures/LobbyScreens/supermatter.png
background: /Textures/LobbyScreens/supermatter.webp

- type: lobbyBackground
id: Warden
background: /Textures/LobbyScreens/warden.png
background: /Textures/LobbyScreens/warden.webp

- type: lobbyBackground
id: Pharmacy
background: /Textures/LobbyScreens/pharmacy.png
background: /Textures/LobbyScreens/pharmacy.webp

- type: lobbyBackground
id: SSXIV
background: /Textures/LobbyScreens/ssxiv.png
background: /Textures/LobbyScreens/ssxiv.webp

- type: lobbyBackground
id: Susstation
background: /Textures/LobbyScreens/susstation.png
background: /Textures/LobbyScreens/susstation.webp

- type: lobbyBackground
id: SkellyVsTheRev
background: /Textures/LobbyScreens/skellyvstherev.png
background: /Textures/LobbyScreens/skellyvstherev.webp

- type: lobbyBackground
id: Doomed
background: /Textures/LobbyScreens/doomed.png
background: /Textures/LobbyScreens/doomed.webp
3 changes: 2 additions & 1 deletion Resources/Textures/LobbyScreens/PutLobbyScreensHere.txt
Original file line number Diff line number Diff line change
@@ -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
12 changes: 6 additions & 6 deletions Resources/Textures/LobbyScreens/attributions.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
- files: ["supermatter.png", "robotics.png"]
- files: ["supermatter.webp", "robotics.webp"]
license: "CC-BY-NC-SA-3.0"
copyright: "Veritius#2351 (257233913951289344) on discord / @Veritius on GitHub"
source: "https://github.com/Veritius"

- files: ["warden.png", "pharmacy.png"]
- files: ["warden.webp", "pharmacy.webp"]
license: "CC-BY-NC-SA-3.0"
copyright: "Solbusaur#4343 (220208697429852160) on discord"
source: "https://github.com/space-wizards/space-station-14"

- files: ["ssxiv.png"]
- files: ["ssxiv.webp"]
license: "CC-BY-NC-SA-3.0"
copyright: "Abyssal#4842 on discord / @aby_doodles on Twitter"
source: "https://twitter.com/aby_doodles"

- files: ["susstation.png"]
- files: ["susstation.webp"]
license: "CC-BY-NC-SA-3.0"
copyright: "Alekshhh github"
source: "https://github.com/space-wizards/space-station-14"

- files: ["skellyvstherev.png"]
- files: ["skellyvstherev.webp"]
license: "CC-BY-SA-4.0"
copyright: "Hannah 'FairlySadPanda' Dawson 2024"
source: "https://github.com/FairlySadPanda"

- files: ["doomed.png"]
- files: ["doomed.webp"]
license: "CC-BY-NC-SA-3.0"
copyright: "brainfood1183 github"
source: "https://github.com/space-wizards/space-station-14"
Binary file removed Resources/Textures/LobbyScreens/doomed.png
Binary file not shown.
Binary file added Resources/Textures/LobbyScreens/doomed.webp
Binary file not shown.
Binary file removed Resources/Textures/LobbyScreens/pharmacy.png
Binary file not shown.
Binary file added Resources/Textures/LobbyScreens/pharmacy.webp
Binary file not shown.
Binary file removed Resources/Textures/LobbyScreens/robotics.png
Binary file not shown.
Binary file added Resources/Textures/LobbyScreens/robotics.webp
Binary file not shown.
Binary file removed Resources/Textures/LobbyScreens/skellyvstherev.png
Binary file not shown.
Binary file not shown.
Binary file removed Resources/Textures/LobbyScreens/ssxiv.png
Binary file not shown.
Binary file added Resources/Textures/LobbyScreens/ssxiv.webp
Binary file not shown.
Binary file removed Resources/Textures/LobbyScreens/supermatter.png
Binary file not shown.
Binary file added Resources/Textures/LobbyScreens/supermatter.webp
Binary file not shown.
Binary file removed Resources/Textures/LobbyScreens/susstation.png
Binary file not shown.
Binary file added Resources/Textures/LobbyScreens/susstation.webp
Binary file not shown.
Binary file removed Resources/Textures/LobbyScreens/warden.png
Binary file not shown.
Binary file added Resources/Textures/LobbyScreens/warden.webp
Binary file not shown.
Loading