/tg/ Station 13 - Modules - TypesDefine Details

modular_nova/modules/condos/condo_preview.dm

CONDO_PREVIEW_MAX_PXLongest side (px) a preview picture may have; bigger rooms get scaled down to fit the UI.
CONDO_PREVIEW_CACHE_DIRWhere rendered previews are cached between rounds. The map's hash is baked into the filename, so a changed .dmm just misses the cache and re-renders.
/datum/asset/simple/condo_previewsHolds the preview picture of each interior. Filled in at round start by prerender_previews().
/proc/condo_preview_asset_nameAsset name for an interior from its map path (".../alleyway.dmm" -> "condo_alleyway.png").
/proc/condo_skip_turfTRUE for turfs we don't want in the picture: the empty space around the room and the yellow cordon tiles the maps use as a boundary.
/proc/condo_flat_renderFlattens a loaded room to a clean top-down icon: floors then objects, no lighting or parallax planes (those are what turn the picture into garbage).

Define Details

CONDO_PREVIEW_CACHE_DIR

Where rendered previews are cached between rounds. The map's hash is baked into the filename, so a changed .dmm just misses the cache and re-renders.

CONDO_PREVIEW_MAX_PX

Longest side (px) a preview picture may have; bigger rooms get scaled down to fit the UI.