Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2595759b3e |
BIN
assets/launcher/background.png
Normal file
BIN
assets/launcher/background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
BIN
assets/launcher/default_teaser.png
Normal file
BIN
assets/launcher/default_teaser.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
12
init.lua
12
init.lua
@@ -203,14 +203,22 @@ function init(ctx)
|
|||||||
list_tint = nil, -- nil | "warn" | "error" — set in L.4
|
list_tint = nil, -- nil | "warn" | "error" — set in L.4
|
||||||
list_panel_rect = nil, -- set below from window size
|
list_panel_rect = nil, -- set below from window size
|
||||||
detail_panel_rect = nil,
|
detail_panel_rect = nil,
|
||||||
bg_texture = nil, -- L.10 loads it
|
bg_texture = nil, -- assigned below from engine.asset.load_texture
|
||||||
default_teaser_texture = nil, -- L.10 loads it
|
default_teaser_texture = nil, -- assigned below from engine.asset.load_texture
|
||||||
t = nil, -- L.8: real implementation installed below
|
t = nil, -- L.8: real implementation installed below
|
||||||
carousel_state = {}, -- per-module-id state, L.5 populates
|
carousel_state = {}, -- per-module-id state, L.5 populates
|
||||||
manifest_cache = {}, -- L.3 populates
|
manifest_cache = {}, -- L.3 populates
|
||||||
launcher_dir = MODULE_DIR, -- L.4: detail.lua dofiles markdown.lua via this
|
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
|
-- L.8: real string indirection. Looks up `key` in strings.lua, falls
|
||||||
-- back to "[key]" for missing entries, and string.formats with any
|
-- back to "[key]" for missing entries, and string.formats with any
|
||||||
-- varargs so callers can pass format-args inline (e.g. counts).
|
-- varargs so callers can pass format-args inline (e.g. counts).
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"id": "lib-management.launcher",
|
"id": "lib-management.launcher",
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"kind": "module",
|
"kind": "module",
|
||||||
"api": "^0.1",
|
"api": "^0.1",
|
||||||
"ci_frames": 10,
|
"ci_frames": 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user