From f8188df4289899f73cdeecf9809a32631fda3ad3 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Tue, 30 Aug 2016 21:04:41 +0200 Subject: [PATCH] add menu to list mapmodels with unconfigured custom textures --- config/menus_edit.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/menus_edit.cfg b/config/menus_edit.cfg index d1fa3f72..a152be51 100644 --- a/config/menus_edit.cfg +++ b/config/menus_edit.cfg @@ -194,6 +194,8 @@ menuinit [ if $editing [ menuitem "Map area checks..." [ showmenu [Map area checks] ] menuitem "Entity statistics" [ showmenu [Entity statistics] ] + menuitem "Check mapmodels with unconfigured custom textures" [ showmenu [Walk mapmodel entities with unconfigured custom textures] ] + ] [ menuitem "menu only available in edit mode" -1 ] @@ -937,11 +939,13 @@ menuinit [ ] push __a "resetcurmenu ; menuitem [\f4(return to previous position)] (concat gotoposition (gotoposition)) (concat gotoposition (gotoposition)) ;" -push __b "looplist $ents i [ menuitem (concatword # $i) (concat gotoentity $i) (concat gotoentity $i) ] ; pop ents" +push __b "looplist $ents i [ menuitem (concatword # $i [ ] (editentity $i)) (concat gotoentity $i) (concat gotoentity $i) ] ; pop ents" looplist (listoptions ents) e [ newmenu (concat Walk $e entities) menuinit (concat $__a "push ents (enumentities" $e ") ;" $__b) ] +newmenu [Walk mapmodel entities with unconfigured custom textures] +menuinit (concat $__a "looplist (enumentities mapmodel) i [if (! (strlen (edittextureslot (at (editentity $i) 7)))) [menuitem (concatword # $i [ ] (editentity $i)) (concat gotoentity $i) (concat gotoentity $i)]]") pop __a __b newmenu [Entity statistics]