diff --git a/assets/launcher/background.png b/assets/launcher/background.png new file mode 100644 index 0000000..e01fd01 Binary files /dev/null and b/assets/launcher/background.png differ diff --git a/assets/launcher/default_teaser.png b/assets/launcher/default_teaser.png new file mode 100644 index 0000000..7e84533 Binary files /dev/null and b/assets/launcher/default_teaser.png differ diff --git a/init.lua b/init.lua index b891bd4..0d0746f 100644 --- a/init.lua +++ b/init.lua @@ -203,14 +203,22 @@ function init(ctx) list_tint = nil, -- nil | "warn" | "error" — set in L.4 list_panel_rect = nil, -- set below from window size detail_panel_rect = nil, - bg_texture = nil, -- L.10 loads it - default_teaser_texture = nil, -- L.10 loads it + bg_texture = nil, -- assigned below from engine.asset.load_texture + default_teaser_texture = nil, -- assigned below from engine.asset.load_texture t = nil, -- L.8: real implementation installed below carousel_state = {}, -- per-module-id state, L.5 populates manifest_cache = {}, -- L.3 populates launcher_dir = MODULE_DIR, -- L.4: detail.lua dofiles markdown.lua via this } + -- L.10: launcher-owned brand assets. Solid-fill placeholders today; + -- a brand-refresh slice can drop new PNGs in without touching code. + -- Loaded via engine.asset (the launcher's own sandbox-rooted loader), + -- not engine.module.load_texture — assets/launcher/ lives inside the + -- launcher's module dir. + ctx_panels.bg_texture = engine.asset.load_texture("assets/launcher/background.png") + ctx_panels.default_teaser_texture = engine.asset.load_texture("assets/launcher/default_teaser.png") + -- L.8: real string indirection. Looks up `key` in strings.lua, falls -- back to "[key]" for missing entries, and string.formats with any -- varargs so callers can pass format-args inline (e.g. counts). diff --git a/manifest.module b/manifest.module index 06d1491..432331f 100644 --- a/manifest.module +++ b/manifest.module @@ -1,6 +1,6 @@ { "id": "lib-management.launcher", - "version": "0.3.1", + "version": "0.3.2", "kind": "module", "api": "^0.1", "ci_frames": 10,