Skip to content

Commit

Permalink
enable automapconfig whenever config slots are added
Browse files Browse the repository at this point in the history
  • Loading branch information
ac-stef committed Jun 16, 2017
1 parent 2448e90 commit f33b9c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config/menus_edit.cfg
Expand Up @@ -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
Expand Down Expand Up @@ -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
]
Expand Down Expand Up @@ -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
]
Expand Down

0 comments on commit f33b9c0

Please sign in to comment.