fix: use configured furni source and catalog assets
This commit is contained in:
1 parent
aed70db81f
commit
c78f8812ad
25 files changed
+368
-129
No files matched your search
@@ -0,0 +1,12 @@
|
||||
export const CATALOGUE_ASSET_BASE_PATH = "/gamedata/c_images/catalogue";
|
||||
|
||||
export function catalogueIconUrl(iconImage: number): string {
|
||||
return `${CATALOGUE_ASSET_BASE_PATH}/icon_${iconImage}.png`;
|
||||
}
|
||||
|
||||
export function catalogueAssetUrl(
|
||||
name: string,
|
||||
extension: "png" | "gif",
|
||||
): string {
|
||||
return `${CATALOGUE_ASSET_BASE_PATH}/${encodeURIComponent(name)}.${extension}`;
|
||||
}
|
||||
Reference in new issue
Block a user