From a451a0fd614fd955e9169622ea6e5f82ea02a1b0 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Fri, 14 Oct 2016 11:58:13 +0200 Subject: [PATCH] show model usage info where models are used --- config/menus_edit.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/menus_edit.cfg b/config/menus_edit.cfg index 1faeb618..992d6fc5 100644 --- a/config/menus_edit.cfg +++ b/config/menus_edit.cfg @@ -344,6 +344,12 @@ menuinit [ push __distribution (getmapmodelattributes (mapmodelslotname $__mmslot) distribution) if (! (strlen $__distribution)) [ __distribution = "custom/unsorted" ] menuitem (concat "Distribution:" (pop __distribution)) -1 + looplist [defaults "Defaults:" usage "Usage:" license "License:" version "Version:"] [attr hd] [ // also possible: desc "Desc:" author "Author:" + attr = (getmapmodelattributes (mapmodelslotname $__mmslot) $attr) + if (strlen $attr) [ + menuitem (concat $hd $attr) -1 + ] + ] menuitem "" -1 menuitemtextinput "Mapmodel path " (concat result (at $info 4)) [editmapmodelslot $__mmslot "" "" "" "" $arg1] "" 250 if (&& (strlen $__lastwatchedmapmodel) (! (strcmp $__lastwatchedmapmodel (at $info 4)))) [