UCHTML
UCHTML renders HTML and Jinja2 templates into native client UI elements. It is a framework many clients load; the in-game wiki is a client built on it, not part of it. For why it exists and how it works, read UCHTML in Foundations.
Pages
| Page | What it covers |
|---|---|
| Grid system | Block, flex and relative layout, and sizing |
| Jinja2 templating | Template syntax and a worked page |
| Template context | fun, bonus, and how a host adds names |
| Reactive zones | Rebuilding part of a page when a variable changes |
| Compiled templates | Debug and production rendering |
| Common attributes | Attributes every tag takes, and display flex |
| Layout tags | div, main, table, accordion, boards |
| Filter groups | Buttons, lists and tabs that set a variable |
| Text and links | Headings, text, colors, hyperlinks |
| Widget tags | Images, buttons, slots, progress, model |
Glossary
| Term | Meaning |
|---|---|
| Metin2 mainline engine | The Metin2 client and server Universal Core started from. |
| Host | The window or module that creates an HTMLLayoutLoader, gives it a template and supplies the variables. |
| Pack | An archive the client reads files from before it looks in the client folder. |
| Client folder | The client's directory on disk. |
| Locale | A language folder under locale/; templates live in one. |
UIElement | The loader's own tree node for one tag; leaves become real native widgets. |
| Reactive zone | A div that rebuilds its children when a watched variable changes. |
ENABLE_WIKI_DEV | The client flag that turns on template source validation. |