show model usage info where models are used

This commit is contained in:
ac-stef
2016-10-14 11:58:13 +02:00
parent 985048efda
commit a451a0fd61
+6
View File
@@ -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)))) [