Repository navigation
v0.6.0 – conditions and templates for menus
- Conditions in YAML menus:
show-ifon every element and list/grid item,enabled-ifand
disabled-tooltipon buttons, and arequire: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
undertemplates:(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.ymlwith_beispiel-vorlagen.yml(put intomenus/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).