From c0066830ea4fa0583bda876c6ea72b347df2f34a Mon Sep 17 00:00:00 2001 From: Calic Date: Tue, 16 Jun 2026 14:32:37 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20CR-4=20=E2=80=94=20deps=20panel->0.4.0/?= =?UTF-8?q?composition->0.3.0,=20init-Header=20v0.1.1,=20dead=20helper=20e?= =?UTF-8?q?ntfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- README.md | 2 +- init.lua | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) 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 -- -----------------------------------------------------------------------