attilaoroszdev/lazyadmin

Simplify menuentries

Closed this issue · 1 comments

Currently menu entries and descriptors are written on separate blocks.
It should read

_menu01
Entry name 1 :: Entry description 1
Entry name 2 :: Entry description 2
_endmenu01

_submenu011
Entry sub name 1 :: Entry sub description 1
Entry sub name 2 :: Entry sub description 2
_subendmenu011

then parsed accordingly.

  • Leaving a space or spaces around the :: divider is optional, but in case there are any, these should be stripped away when writing out menus
  • the old style should also be kept for compatibility reasons. The appropriate parser to use can be tracked by a single variable placed at the very beginning of the menu file 8if there is none, that also means old style)