brink094 Posted October 15, 2008 Report Share Posted October 15, 2008 I've found a way to add a button to the map screen that can mute/unmute the navigation voice guidance. Only the voice is muted, the AV sources and even the key beeps are not affected! Luckily for us Pioneer/iGo have already created mute/unmute scripts, we only have to add a button and run those scripts. For this example I'm going to use some images that are already available on the avic, you can create your own icons if you want to. In this example a green button means voice guidance is on and a red button means the voice is muted. These buttons are only displayed on the right side of the map when there is an active route. You can add this code to Data.zip/ui_pioneer/800_480/ui/navigatemap_800_480.ui inside the ui_NavigateMapButtons layer. I've attached a file with only this mod added. ; ** voice guidance is on, display green button ; ** voice guidance is off, display red button As you can see, to mute the voice you can call the 'sc_mute_guidance_immediately' script and to unmute the voice you call 'sc_unmute_guidance'. These scripts are defined in Data.zip/ui_pioneer/common/ui/langvoice.ui This setting is not remembered when you shut down the unit, so the next time you get in your car you have to mute the voice again... Update: I've added some icons to the zipfile. Update 2: Updated the zipfile to work with the 1.9/2.0 firmware, added the updated navigatemap_800_480.ui by mikeinnj. ui_pioneer.zip Quote Link to post Share on other sites
BorisM Posted October 15, 2008 Report Share Posted October 15, 2008 Nice. So it is has_route... I was looking for it. Technically, it would be rather trivial to have it save setting (register a permanent variable with sound.announcer.muted boolean model, but since we already have voice volume setting, I'm not sure if it is particularly needed. Quote Link to post Share on other sites
skicrave Posted October 15, 2008 Report Share Posted October 15, 2008 Awesome find, thanks so much for posting it here! That's going to make a lot of people REALLY happy! Quote Link to post Share on other sites
brink094 Posted October 15, 2008 Author Report Share Posted October 15, 2008 Nice. So it is has_route... I was looking for it. Technically, it would be rather trivial to have it save setting (register a permanent variable with sound.announcer.muted boolean model, but since we already have voice volume setting, I'm not sure if it is particularly needed. Thanks for the registermodel permanent pointer, I will try to add it tomorrow. I think it would be a little bit easier and faster using this mute button than going through the setup menus. Usually I like to drive without voice guidance but sometimes when I'm driving somewhere unknown it is nice to have it on for the last part of the journey.. Now I have a easy unmute button This was one feature I was missing from my old TomTom. Quote Link to post Share on other sites
BorisM Posted October 15, 2008 Report Share Posted October 15, 2008 You're welcome. You could do something like this in one of the variable definition files: This will cause iGO to save variable value when you shut down the system Other options: Then the variable will track system's voice setting and a script will be called when it is changed. or and then you can yuse it jusyt like you do sound.announcer.muted iGO's programmintg is woefully undocumented, but extremely powerful... Quote Link to post Share on other sites
cigga24 Posted October 22, 2008 Report Share Posted October 22, 2008 I downloaded your script and copied your code into my navigate file, the first four lines i think. then went to avic and got a warning say button_volume.bmp could not be found and then it exited and my map and destinations buttons no longer worked. edit: ok i just realized i didnt copy the icons over. BorisM i'm using your most recent navigate ui file, where should i insert this code? Quote Link to post Share on other sites
skicrave Posted October 22, 2008 Report Share Posted October 22, 2008 Insert what code? You had the code correct, you just need to make (or copy) a graphic file over so the system knows what image to use for the button. The image goes in your main UI directory. Quote Link to post Share on other sites
brink094 Posted October 22, 2008 Author Report Share Posted October 22, 2008 The images should go in the ui_pioneer\800_480 directory, they are in the correct location in the zipfile. You can also use the lines from the first post, they use images that are already available on the avic, no extra images required. If you already have a ui_pioneer\800_480\ui\navigatemap_800_480.ui file from another hack, add the lines from the first post to that file. The lines should go inside the ui_NavigateMapButtons layer that starts at line 6. Quote Link to post Share on other sites
lava10t2 Posted October 22, 2008 Report Share Posted October 22, 2008 Question on this, does it act like turning the master volume all the way down or turn off the prompts only. Here's why I ask that, when you just mute the master volume, the unit will still initiate a prompt, even when muted, and it will creat a quick dip in the music when that happens. So if you're city driving with a route up, your music will continually cut out to allow for the muted prompts to initiate. Any of that with this code? Quote Link to post Share on other sites
brink094 Posted October 22, 2008 Author Report Share Posted October 22, 2008 No, only the voice is muted. No beeps or dip in music volume Quote Link to post Share on other sites
BorisM Posted October 22, 2008 Report Share Posted October 22, 2008 edit: ok i just realized i didnt copy the icons over. BorisM i'm using your most recent navigate ui file, where should i insert this code? In this case you'll want to apply the edit to my navigatemap file. (I assume you have it outside of DATA.ZIP). If you apply them to the one inside the archive, they will be overridden by the file outside. Quote Link to post Share on other sites
lava10t2 Posted October 22, 2008 Report Share Posted October 22, 2008 No, only the voice is muted. No beeps or dip in music volume awesome! Quote Link to post Share on other sites
cigga24 Posted October 23, 2008 Report Share Posted October 23, 2008 edit: ok i just realized i didnt copy the icons over. BorisM i'm using your most recent navigate ui file, where should i insert this code? In this case you'll want to apply the edit to my navigatemap file. (I assume you have it outside of DATA.ZIP). If you apply them to the one inside the archive, they will be overridden by the file outside. Ok i fixed it, nice job thank you both. BorisM, the button overlaps your detour button slightly. Is there a way to lower the button? Quote Link to post Share on other sites
brink094 Posted October 23, 2008 Author Report Share Posted October 23, 2008 You can change the y=280 value on both lines to lower the button. Depending on the amount of overlap, you can try adding 10, 20 or 30 pixels. I would try y=310 first. Glad to hear you've got it working Quote Link to post Share on other sites
BorisM Posted October 23, 2008 Report Share Posted October 23, 2008 Ok i fixed it, nice job thank you both. BorisM, the button overlaps your detour button slightly. Is there a way to lower the button? What brink094 said. At this point, you could also hide the detour button -- it doesn't do much of anything yet, and you can set detours from stock interface's itinerary screen... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.