PropGallery.component
This package holds more than this page lists. See all of its files in its world.
README.md
PropGallery
Lays every alpineProps kind out side by side on its entity, in labelled rows, so the whole kit can be looked over (and compared between looks, seasons and levels of detail) in one place. Rows run along the entity's +X and follow each other toward -Z; each row has a Text3D title at its left end and every item a label in front of it. Everything it builds is a temporary child (never saved), rebuilt from the synced fields a few items per frame. Needs no other component; it adds alpineProps.AlpineProp, alpineProps.Cabin, alpineProps.Signpost and Text3D to the children it spawns.
entity.spawn("gallery").component.add("alpineProps.PropGallery", {})
entity.spawn("trees").component.add("alpineProps.PropGallery", { sections = "conifers,deadTrees", look = "painted" })
Row (sections id) | What it shows |
|---|---|
conifers | one row per species (spruce, scotsPine, fir, larch, stonePine, mugoPine): sapling, young, mature, veteran without snow, then the same four in winter with snow |
deadTrees | deadSpruce, krummholz, windbentPine, fallenSpruce, without and with snow |
shrubs | alpenrose, juniper, dwarfWillow, greenAlder, without and with snow |
flora | cottonGrass, alpineTussock and the seven flowers, each as a patch of five seeded plants |
rocks | graniteBoulder, rockOutcrop, screeStone, screePatch, flatSlab, cairn |
cliffs | cliffFace, cliffSpire |
huts | the Cabin component as logHut, stoneHut, aFrame |
trail | a lettered Signpost, then signpost, signArm, waymarkPost, footbridge, summitCross, lookout, trailSteps, fenceRail, infoBoard, bench, woodpile, waterTrough |
hutParts | every wall, corner, window, door, gable, roof, chimney, porch and foundation part |
other | any kind AlpineProps.kinds() lists that no row above names |
| Field | Default | Meaning |
|---|---|---|
sections | all | all, or a comma list of the row ids above |
look | real | real, painted, toon |
summerSeason | summer | season of the snow-free items (autumn turns larch gold) |
detail | auto | handed to every AlpineProp: auto, or near / mid / far to pin one LOD |
labels | true | draw row titles and item labels |
gap | 2 | metres between props and between rows |
perFrame | 6 | props spawned per frame while building |
component:isBuilt(), component:itemCount() and component:extent() ({ minX, maxX, minZ, maxZ } in the entity's frame) report progress and footprint. The full gallery is about 125 items over roughly 160 x 260 m; PropGallery.scene frames it with a sun, sky and camera.