reader
`loreKit.reader` draws the reader (seven styles: note, memo, terminal, tape, graffiti, datapad, photo), the journal list with unread markers and the unread badge, plays the reader's sounds and the tape's voice with hiss and subtitles (ducking soundstage music when installed), and…
reader
loreKit.reader draws the reader (seven styles: note, memo, terminal, tape, graffiti, datapad, photo), the journal list with unread markers and the unread badge, plays the reader's sounds and the tape's voice with hiss and subtitles (ducking soundstage music when installed), and handles closing with Esc / Backspace / pad B / the big close button / the backdrop. The LoreHost ticks it; report() reads what it is doing for tests.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2loreKit's reader and journal screens: one full-screen reader that draws an entry in one of seven styles (note, memo, terminal, tape, graffiti, datapad, photo), the journal list with unread markers, and the small unread badge. Local to this player's screen; nothing pauses. Closes with Esc / Backspace, the pad's B (east) button, or a tap on the big close button or the dimmed backdrop. The LoreHost calls `tick(dt)` for typing, reels, subtitles and input.
canvas( ) → void
scale( ) → number
L(text: string, style: any) → any
| arg | type | description |
|---|---|---|
| text | string | |
| style | any |
px(n: number) → number return math
| arg | type | description |
|---|---|---|
| n | number |
makeSubs(e: any, dur: number) → void
| arg | type | description |
|---|---|---|
| e | any | |
| dur | number |
subsOn( ) → boolean
Subtitles show unless this open says otherwise (`opts.subtitles`) or the player turned them off (`Lore.setSubtitles(false)`).
subAt(t: number) → string
| arg | type | description |
|---|---|---|
| t | number |
voice(key: string, f: any) → any
| arg | type | description |
|---|---|---|
| key | string | |
| f | any |
audioComp(v: any) → any
| arg | type | description |
|---|---|---|
| v | any |
sfx(name: string, vol: number?) → void
| arg | type | description |
|---|---|---|
| name | string | |
| vol | number? |
stopTape( ) → void
clipRef(clip: any) → any
| arg | type | description |
|---|---|---|
| clip | any |
startTape(e: any) → void
| arg | type | description |
|---|---|---|
| e | any |
closeButton( ) → any
hint(text: string) → any
| arg | type | description |
|---|---|---|
| text | string |
shell(card: any, extra: { any }?) → any
| arg | type | description |
|---|---|---|
| card | any | |
| extra | { any }? |
cardWidth(max: number) → any
| arg | type | description |
|---|---|---|
| max | number |
note(e: any) → any
| arg | type | description |
|---|---|---|
| e | any |
memo(e: any) → any
| arg | type | description |
|---|---|---|
| e | any |
terminal(e: any) → any
| arg | type | description |
|---|---|---|
| e | any |
reel( ) → any
tape(e: any) → any
| arg | type | description |
|---|---|---|
| e | any |
graffiti(e: any) → any
| arg | type | description |
|---|---|---|
| e | any |
datapad(e: any) → any
| arg | type | description |
|---|---|---|
| e | any |
imageSrc(img: any) → string
| arg | type | description |
|---|---|---|
| img | any |
photo(e: any) → any
| arg | type | description |
|---|---|---|
| e | any |
journalTree( ) → any
keyHeld(code: string) → boolean
| arg | type | description |
|---|---|---|
| code | string |
padHeld(b: string) → boolean
| arg | type | description |
|---|---|---|
| b | string |
holdKeys( ) → void
dropKeys( ) → void
settleKeys( ) → void
after a close: let go once Escape, Backspace, Start and B are all up, three frames on
_keysHeld( ) → void
show(tree: any) → void
| arg | type | description |
|---|---|---|
| tree | any |
render( ) → void
open(e: any, opts: any) → void
Open an entry (Lore.open calls this; it also finds and marks it).
| arg | type | description |
|---|---|---|
| e | any | |
| opts | any |
openJournal( ) → void
Open the journal list.
close( ) → void
Close whatever is open.
refresh( ) → void
Redraw what is open now (after a settings change such as `Lore.setSubtitles`).
current( ) → string
isJournalOpen( ) → boolean return R
isOpen( ) → boolean return R
onCallback(id: string) → void
A UI callback from the reader or journal.
| arg | type | description |
|---|---|---|
| id | string |
refreshBadge( ) → void
Redraw the small "journal (n new)" badge, shown only while there are unread entries.
pressed(key: string) → boolean
| arg | type | description |
|---|---|---|
| key | string |
padPressed(b: string) → boolean
| arg | type | description |
|---|---|---|
| b | string |
tick(dt: number, journalKey: string?) → void
Advance the reader: typing, reels, subtitles; Esc / Backspace / pad B close; J and the pad's Select / View toggle the journal.
| arg | type | description |
|---|---|---|
| dt | number | |
| journalKey | string? |
report( ) → any
What the reader is doing (tests and tuning): open id, style, seconds open, typed chars, tape length, current subtitle, and the tape and hiss voices' mixer states.
stop( ) → void
Hide everything and stop the tape (the host calls this on destroy).
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.