diff options
| author | Osmium Sorcerer <os@sof.beauty> | 2026-04-06 22:06:09 +0000 |
|---|---|---|
| committer | Osmium Sorcerer <os@sof.beauty> | 2026-04-18 16:52:23 +0000 |
| commit | 6a7a4f68711432d73fbf1355f15402fa6d31aafa (patch) | |
| tree | 7b573fd8ec3797ca75c893ab95c2f20464386130 /webAO | |
| parent | 1c458e5841ae30bed8b6f3107d3f65353d9b731c (diff) | |
Change extension of positions to WebP
These should obey the extension data, but instead they're hardcoded
to predefined PNG and GIF files.
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/viewport/constants/positions.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/webAO/viewport/constants/positions.ts b/webAO/viewport/constants/positions.ts index 3627db7..a913909 100644 --- a/webAO/viewport/constants/positions.ts +++ b/webAO/viewport/constants/positions.ts @@ -1,15 +1,16 @@ import { Positions } from "../interfaces/Positions"; import { Desk } from "../interfaces/Desk"; +// We need to ensure the desks are only loaded if they actually exist export const positions: Positions = { def: { bg: "defenseempty", - desk: { ao2: "defensedesk.png", ao1: "bancodefensa.png" } as Desk, + desk: { ao2: "defensedesk.webp", ao1: "bancodefensa.png" } as Desk, speedLines: "defense_speedlines.gif", }, pro: { bg: "prosecutorempty", - desk: { ao2: "prosecutiondesk.png", ao1: "bancoacusacion.png" } as Desk, + desk: { ao2: "prosecutiondesk.webp", ao1: "bancoacusacion.png" } as Desk, speedLines: "prosecution_speedlines.gif", }, hld: { @@ -24,22 +25,22 @@ export const positions: Positions = { }, wit: { bg: "witnessempty", - desk: { ao2: "stand.png", ao1: "estrado.png" } as Desk, + desk: { ao2: "stand.webp", ao1: "estrado.png" } as Desk, speedLines: "prosecution_speedlines.gif", }, jud: { bg: "judgestand", - desk: { ao2: "judgedesk.png", ao1: "judgedesk.gif" } as Desk, + desk: { ao2: "judgedesk.webp", ao1: "judgedesk.gif" } as Desk, speedLines: "prosecution_speedlines.gif", }, jur: { bg: "jurystand", - desk: { ao2: "jurydesk.png", ao1: "estrado.png" } as Desk, + desk: { ao2: "jurydesk.webp", ao1: "estrado.png" } as Desk, speedLines: "defense_speedlines.gif", }, sea: { bg: "seancestand", - desk: { ao2: "seancedesk.png", ao1: "estrado.png" } as Desk, + desk: { ao2: "seancedesk.webp", ao1: "estrado.png" } as Desk, speedLines: "prosecution_speedlines.gif", }, }; |
