add menu to list mapmodels with unconfigured custom textures

This commit is contained in:
ac-stef
2016-08-30 21:04:41 +02:00
parent 1310516c14
commit f8188df428
+5 -1
View File
@@ -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]