enable automapconfig whenever config slots are added
This commit is contained in:
@@ -88,7 +88,7 @@ tempalias __rebuildmapmodelmenus [
|
||||
menuitem $desc (concat newent mapmodel $idxs) (__mm_showmodel $$keyword $path) $usage // usual case: one slot per model
|
||||
]
|
||||
][
|
||||
menuitem (concatword "\f4" $desc) (concat newent mapmodel "(mapmodel" $dflts $path ")") (__mm_showmodel $$keyword $path) $usage // mapmodel has no slot assigned: assign one
|
||||
menuitem (concatword "\f4" $desc) (concat newent mapmodel "(mapmodel" $dflts $path ") ; __enableautomapconfig") (__mm_showmodel $$keyword $path) $usage // mapmodel has no slot assigned: assign one
|
||||
]
|
||||
]
|
||||
// add menus sorted by author and distribution
|
||||
@@ -381,10 +381,10 @@ menuinit [
|
||||
usedslots = "once more"
|
||||
]
|
||||
if (! (strlen (edittextureslot 255))) [
|
||||
menuitem (concat "Add to map config" $usedslots) (concat texture 0 $__lastwatchedtexture)
|
||||
menuitem "Add to map config and use as next wall texture" (concat "edittexturestack wall (texture 0" $__lastwatchedtexture ")")
|
||||
menuitem "Add to map config and use as next floor texture" (concat "edittexturestack floor (texture 0" $__lastwatchedtexture ")")
|
||||
menuitem "Add to map config and use as next ceiling texture" (concat "edittexturestack ceiling (texture 0" $__lastwatchedtexture ")")
|
||||
menuitem (concat "Add to map config" $usedslots) (concat texture 0 $__lastwatchedtexture ; __enableautomapconfig)
|
||||
menuitem "Add to map config and use as next wall texture" (concat "edittexturestack wall (texture 0" $__lastwatchedtexture ") ; __enableautomapconfig")
|
||||
menuitem "Add to map config and use as next floor texture" (concat "edittexturestack floor (texture 0" $__lastwatchedtexture ") ; __enableautomapconfig")
|
||||
menuitem "Add to map config and use as next ceiling texture" (concat "edittexturestack ceiling (texture 0" $__lastwatchedtexture ") ; __enableautomapconfig")
|
||||
] [
|
||||
menuitem "\f4(no free texture slots available)" -1
|
||||
]
|
||||
@@ -572,7 +572,7 @@ menuinit [
|
||||
usedslots = "once more"
|
||||
]
|
||||
if (! (strlen (editmapsoundslot 255))) [
|
||||
menuitem (concat "\f0Add to map config" $usedslots) (concat mapsound $__lastwatchedmapsound -1)
|
||||
menuitem (concat "\f0Add to map config" $usedslots) (concat mapsound $__lastwatchedmapsound -1 ; __enableautomapconfig)
|
||||
] [
|
||||
menuitem "\f4(no free mapsound slots available)" -1
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user