MantisBT - Zandronum
View Issue Details
0002109Zandronum[All Projects] Suggestionpublic2015-02-20 14:262015-02-23 17:43
ninja2000 
 
lowminorunable to reproduce
closedno change required 
 
 
0002109: A key to change automap render style.
Is it possible to implement a feature that will change the render of the automap from standard solid color like in DooM to the overlay mode and vice versa (something like in prboom-plus). Just press a key and get automap rendering changed from solid to overlay.
1. Implement
2. Define key
3. ?????
4. Massive downloads from repos
Its annoying for me to to tap tab 2 times to get the overlay.
No tags attached.
Issue History
2015-02-20 14:26ninja2000New Issue
2015-02-20 14:31DuskNote Added: 0011725
2015-02-20 14:32DuskStatusnew => feedback
2015-02-20 14:32DuskAssigned To => Dusk
2015-02-20 17:59LeonardNote Added: 0011727
2015-02-20 17:59LeonardNote Edited: 0011727bug_revision_view_page.php?bugnote_id=11727#r6690
2015-02-20 18:09DuskNote Added: 0011728
2015-02-22 15:45ninja2000Note Added: 0011735
2015-02-22 15:45ninja2000Statusfeedback => assigned
2015-02-22 18:49LeonardNote Added: 0011737
2015-02-23 07:07ninja2000Note Added: 0011745
2015-02-23 10:30DuskNote Added: 0011746
2015-02-23 10:30DuskAssigned ToDusk =>
2015-02-23 10:30DuskStatusassigned => feedback
2015-02-23 15:01ninja2000Note Added: 0011747
2015-02-23 15:01ninja2000Statusfeedback => new
2015-02-23 17:43DuskStatusnew => closed
2015-02-23 17:43DuskResolutionopen => no change required

Notes
(0011725)
Dusk   
2015-02-20 14:31   
You can do this with the console.


alias _overlay_on "am_overlay 2; echo \"Overlay enabled\"; rebind _overlay_off"
alias _overlay_off "am_overlay 0; echo \"Overlay disabled\"; rebind _overlay_on"
bind <key> _overlay_on


Replace <key> with whatever key you want to bind this to.
(0011727)
Leonard   
2015-02-20 17:59   
This should probably be closed.
Options -> Display options -> Automap Options -> Overlay automap: Choose "Overlay + Normal".

(0011728)
Dusk   
2015-02-20 18:09   
Quote

Its annoying for me to to tap tab 2 times to get the overlay.


Nevertheless my console script should do it. I'm just waiting for him to reply whether it suits his needs or not.
(0011735)
ninja2000   
2015-02-22 15:45   

alias _overlay_on "am_overlay 2; echo \"Overlay enabled\"; rebind _overlay_off"
alias _overlay_off "am_overlay 0; echo \"Overlay disabled\"; rebind _overlay_on"
bind <key> _overlay_on

This works partially. I need to turn the automap off to see changes. Is there any way to refresh the map render via an additional line in the command?
(0011737)
Leonard   
2015-02-22 18:49   
How about
alias _overlay_on "am_overlay 2; echo \"Overlay enabled\"; togglemap; wait; togglemap; rebind _overlay_off"
alias _overlay_off "am_overlay 0; echo \"Overlay disabled\"; togglemap; wait; togglemap; rebind _overlay_on"
(0011745)
ninja2000   
2015-02-23 07:07   

alias _overlay_on "am_overlay 2; echo \"Overlay enabled\"; togglemap; wait; togglemap; rebind _overlay_off"
alias _overlay_off "am_overlay 0; echo \"Overlay disabled\"; togglemap; wait; togglemap; rebind _overlay_on"


This trick turns overlay on but the console says "Rebind cannot be used from the console"
(0011746)
Dusk   
2015-02-23 10:30   

alias _overlay_on "am_overlay 2; echo \"Overlay enabled\"; rebind _overlay_off; togglemap; wait; togglemap"
alias _overlay_off "am_overlay 0; echo \"Overlay disabled\"; rebind _overlay_on; togglemap; wait; togglemap"


The rebind needs to come before waiting, not after.
(0011747)
ninja2000   
2015-02-23 15:01   
The script work. Case closed.