feat(inventory-list-display): icon_atlas override + fit-to-bounds rendering
Two consumer-side fixes for ADR-0054 §3 (Item-Visual-Identity). 1) default_icon_resolver tries icon_atlas + icon_uv.* first; falls back to sprite_atlas + sprite_uv.* when the override is absent. Items inherit their world-render sprite as the UI icon for free (TC_Basics-style object sprites work directly as icons); dedicated low-res UI-icons can later land via icon_atlas without API churn. 2) Render path scales the icon uniformly to fit a (row_height - 4) box, centered. The world-sprite-as-icon path (300×300 native) no longer overflows the row; pre-baked small icons stay sharp because the scale is applied around the visual center of the UV rect, not the texture origin. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
{"id":"lib-core.inventory-list-display","version":"0.1.1","api_min":"0.1","deps":[{"id":"lib-core.panel","version":"0.4.0"},{"id":"lib-core.inventory-list","version":"0.1.0"},{"id":"lib-core.composition","version":"0.3.0"}]}
|
||||
{"id":"lib-core.inventory-list-display","version":"0.2.0","api_min":"0.1","deps":[{"id":"lib-core.panel","version":"0.4.0"},{"id":"lib-core.inventory-list","version":"0.1.0"},{"id":"lib-core.composition","version":"0.3.0"}]}
|
||||
|
||||
Reference in New Issue
Block a user