diff --git a/README.md b/README.md index 7135364..1ab7ed3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ right-click context-menu support. **Version:** 0.1.1 **Lib-ID:** lib-core.inventory-list-display -**Requires:** lib-core.panel v0.1.0, lib-core.inventory-list v0.1.0, lib-core.composition v0.2.0 +**Requires:** lib-core.panel v0.4.0, lib-core.inventory-list v0.1.0, lib-core.composition v0.3.0 **Tags:** inventory, ui, panel, widget, list ## Topology diff --git a/init.lua b/init.lua index 7679ca5..95075d5 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,5 @@ -- ===================================================================== --- lib-core.inventory-list-display v0.1.0 — Inventory vertical-list widget +-- lib-core.inventory-list-display v0.1.1 — Inventory vertical-list widget -- -- Sits on top of lib-core.panel and reads lib-core.inventory-list + -- lib-core.composition. Provides a ready-to-register panel widget that @@ -49,16 +49,6 @@ local inventory = require("lib-core.inventory-list") local M = {} --- ----------------------------------------------------------------------- --- entity_id workaround helper --- get_children() returns fresh userdata wrappers per call; engine entities --- have no __eq metamethod. Use composition.reg_id as stable identity. --- Mirrors the same pattern used in inventory-list/init.lua. --- ----------------------------------------------------------------------- -local function entity_id(e) - return e:get_property("composition.reg_id") -end - -- ----------------------------------------------------------------------- -- Default resolvers -- -----------------------------------------------------------------------