From 2595759b3e62664e38c3434017c14cb51da09eae Mon Sep 17 00:00:00 2001 From: Calic Date: Thu, 11 Jun 2026 08:10:01 +0200 Subject: [PATCH] feat(launcher): ship default brand assets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Solid-fill placeholders for the empty-state background (1920×1080) and the zero-teaser hero fallback (800×450). Brand-refresh slice can drop both files in without touching code. Loaded once on init via engine.asset.load_texture (launcher's own sandbox). --- assets/launcher/background.png | Bin 0 -> 9971 bytes assets/launcher/default_teaser.png | Bin 0 -> 2224 bytes init.lua | 12 ++++++++++-- manifest.module | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 assets/launcher/background.png create mode 100644 assets/launcher/default_teaser.png diff --git a/assets/launcher/background.png b/assets/launcher/background.png new file mode 100644 index 0000000000000000000000000000000000000000..e01fd01bc2468c847fb7807807132f87a8c9428a GIT binary patch literal 9971 zcmeI0Jxc>Y6h+^%@goUaStvoo#*`Al!cJUQ;-ZESEG<$BHbNp;nL)JBMmsGmw6hWm z3$Zcz2ZEr5g#n9Lh?Qt3ndRN_A86y9W*^Hk3x_-N4sWkqDh8QcMnr;mKB|cH8Ijaf zf3JP>df%EA$=}4$%<`u9*75>V5dU&w?8r1~r!Nanos+Mu{VrLLYxHKu{tS1SJB2phN%!B|FSN>?!r^B9WH#}N*!=v`k z@MzZ!kFsufH0Xv$<8FAg;)X}u2q7jT1;HF45IiCZ!tfeV5WH$}GT22FM3bFXK~N%a zGAI!Wf)as1P$CorB?5t5C}>HK>UG3Jd6w<+P{s;{`bLq@m$!Zl>L8g XQ$tHv>1V&PahqU>=StB`Rp literal 0 HcmV?d00001 diff --git a/assets/launcher/default_teaser.png b/assets/launcher/default_teaser.png new file mode 100644 index 0000000000000000000000000000000000000000..7e84533d45355847cba04c7b376bced7fd107a27 GIT binary patch literal 2224 zcmeAS@N?(olHy`uVBq!ia0y~yU{+vYU_8XZ1{4ubUVDOpfur2h#WAFU@$ErF#sdZn z%nNi*X(j$UyG5^v@xJAMUIvB(4$KS;2A6;udQ5Wa~)utg2B_(&t;ucLK6UWOKAH5 literal 0 HcmV?d00001 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,