feat: default_label_resolver reads name property; item-template convention

The default label_resolver now reads the optional player-facing `name`
property from the item-template; modules with named templates get pretty
row labels without registering an override. Falls back to "Item" when
`name` is absent or empty.

README documents the player-facing item-template convention: name,
description, weight, volume, composition.<material> — all optional,
all with documented defaults. Skill-gated description reveals stay on
the separate hints lib (designed, not yet implemented).
This commit is contained in:
Calic
2026-06-14 00:26:29 +02:00
parent 0921a03ede
commit 051f472442
3 changed files with 33 additions and 5 deletions

View File

@@ -1 +1 @@
{"id":"lib-core.inventory-list-display","version":"0.1.0","api_min":"0.1","deps":[{"id":"lib-core.panel","version":"0.1.0"},{"id":"lib-core.inventory-list","version":"0.1.0"},{"id":"lib-core.composition","version":"0.2.0"}]}
{"id":"lib-core.inventory-list-display","version":"0.1.1","api_min":"0.1","deps":[{"id":"lib-core.panel","version":"0.1.0"},{"id":"lib-core.inventory-list","version":"0.1.0"},{"id":"lib-core.composition","version":"0.2.0"}]}