Skip to content

menu-core v0.3.1

Choose a tag to compare

@github-actions github-actions released this 13 Oct 13:54
· 3 commits to main since this release

For cores of the 0.3 line, from 0.3.1.

👀 Highlights

📄 Pages of text

A menu made only of text lines - rules, a help screen, a top list - pages itself: 8 Next, 9 Back and the page tag, a page ending before the menu's 512 bytes. linesPerPage puts more lines on a page:

const rules = menus.create("LIST_RULES", { title: "Rules", linesPerPage: 11 });
rules.setListSource(({ player }) => lang.translate(player, "RULES").split("|").map(line => menus.textRow(line)));

The page tag [n | m] ends the title's first line, so a title of two lines keeps its second under it.

👉 Changelog

compare changes

🚀 Enhancements

  • menus: A list of text lines alone pages them (d70d3e6)
  • menus: linesPerPage, and the page tag ends a title's first line (478a052)

📖 Documentation

  • menus: linesPerPage hints for Menu and MenuOptions, en and ru (fafe7a2)

❤️ Contributors