Expand description
Screens: .yui read and compiled to Rust (yui), components, the
grid and resources they use, their view models (vm), a mod’s book
page kinds and recipe areas.
Modules§
- book_
page - A mod’s own kinds of book page:
.yuicomponents withbook_page, compiled intoyog_formats::book::page_type::PageTypes for the books that use them (see that module). - component
- Component
.yuifiles: a<Component>root declaring properties and events, with one body element bound to them through{x:Bind ...}(the same bindings as view-model screens, [crate::ui::vm::compile_bind]). Generates a struct with one typed field per property and itsyog_api::ui::component::Componentimplementation, registered withui_component!. See Yog-IDLE’sdocs/yui.md, “Components”. - grid
<Grid>in.yui— WPF’sGrid: rows and columns, children placed in cells with attachedGrid.Row/Grid.Column/Grid.RowSpan/Grid.ColumnSpan.- recipe_
area <RecipeArea kind="crusher" x="…" y="…"/>in an inventory screen: the kind’s layout (its.yuirecipe_layout, seeyog_formats::book::layout) made real — its places become the container’s slots (numbered after the screen’s own), its result an output slot, its pictures and stations drawn — and a<Machine>that tells the game which slot is which: the block makes recipes of the kind like a crafting table.- yui
.yuiscreen files — the declarative form of ayog-uiwidget tree that Yog-IDLE’s screen designer edits — and their code generation.