fix: use configured furni source and catalog assets

This commit is contained in:
Simo committed 2026-08-02 14:22:05 +02:00
1 parent aed70db81f
commit c78f8812ad
25 files changed
+368 -129

No files matched your search

@@ -11,6 +11,7 @@ import {
DialogTitle,
} from "@/components/ui/dialog";
import { Input } from "@/components/ui/input";
import { catalogueAssetUrl } from "@/lib/catalog-assets";
import { cn } from "@/lib/utils";
interface CatalogImagePickerProps {
@@ -248,10 +249,7 @@ function CatalogImageThumb({
}
// Try .png first, fallback to .gif
const src =
error === 0
? `/swf/c_images/catalogue/${name}.png`
: `/swf/c_images/catalogue/${name}.gif`;
const src = catalogueAssetUrl(name, error === 0 ? "png" : "gif");
return (
<img
+2 -1
View File
@@ -11,6 +11,7 @@ import {
DialogTitle,
} from "@/components/ui/dialog";
import { Input } from "@/components/ui/input";
import { catalogueIconUrl } from "@/lib/catalog-assets";
import { cn } from "@/lib/utils";
interface IconPickerProps {
@@ -228,7 +229,7 @@ function IconPreview({
return (
<img
src={`/swf/c_images/catalogue/icon_${iconImage}.png`}
src={catalogueIconUrl(iconImage)}
alt=""
width={size}
height={size}