Skip to content

v0.6.0 – conditions and templates for menus

Choose a tag to compare

@flyingfinger1 flyingfinger1 released this 26 Oct 23:45
· 41 commits to main since this release
  • Conditions in YAML menus: show-if on every element and list/grid item, enabled-if and
    disabled-tooltip on buttons, and a require: action that stops the remaining actions when its
    condition does not hold. Conditions compare placeholders and values (== != > >= < <= contains !contains, numbers as numbers); a list means all must hold.
  • Templates for YAML menus: reusable elements or groups in menus/_*.yml (for all menus) or
    under templates: (one menu), used with { use: name, x, y, key: value } and filled in at
    {key} / {key|default}. Settings of the use entry replace those of one-element templates.
  • New example beispiel-warps.yml with _beispiel-vorlagen.yml (put into menus/ on first start; existing servers find them in
    src/main/resources/menus/).
  • API: visible(Function<View, Boolean>) on every element.

Downloads: Glyphwork-0.6.0.jar (plugin), glyphwork-api-0.6.0.jar (compile against it, do not shade), glyphwork-example-0.6.0.jar (example plugin, optional).