Skip to main content

Module markup

Module markup 

Source
Expand description

Book texts are Yog text (yog_ui::rich: {b|…}, {#rrggbb|…}, …) with words of the book’s own, turned into Yog text’s when the book is prepared:

WriteShows
{accent|term}a term, in the book’s accent color
{link=entry|text}a link to an entry: underlined, in the link color
{key|sprint}the key a binding is bound to (sprint, a mod’s mymod:xray)

Functions§

resolve
text with the book’s words (accent, link=…, key) as Yog text’s.
set_key_namer
Where {key|…} gets its keys’ names (the game’s; the binding itself without one).

Type Aliases§

KeyNamer
The key a binding is bound to, as the game’s controls show it; none when there’s no such binding (or no game).