Jump to content
AVIC411.com

HOW TO: Add Stop Navigate Button To Compas


Recommended Posts

since the data file is already big enough here some code to change the compass button into a navigation cancel button;

 

 

; <SPRITE spr_Compass bmp="compass_bg.bmp" x=730 y=72 z=5>

 

<SPRITE spr_Compass bmp="compass_bg.bmp" x=730 y=72 z=5 visiblemodel="!navigation.has_route">

 

<SPRITE spr_Compass bmp="compass_bg.bmp" x=730 y=72 z=5 onrelease='run sc_btnARM_Delete_OnRelease' visiblemodel="navigation.has_route">

 

 

have fun,

 

bt

Link to post
Share on other sites
  • Replies 38
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
Do you copy and paste

;

to the end of the file "navigatemap_800_480.ui"

If so I tried that and it gave me an error mesage, could not boot up.

If not could you explain.

 

I haven't applied the change yet, so I can't say this will work, but drawing on my limited knowledge of coding in other languages my guess would be:

 

Find the line "" in your existing 'navigatemap_800_480.ui' file. Replace that line with the supplied fix listed above.

 

The ';' at the beginning will "comment out" that first line of code. "Commenting out" means that the program won't use any code with a semicolon at the beginning of the line, the semicolon effectively makes that line invisible and unused. This way, the new code will be used in place of the old.

 

Anyone who thinks/knows otherwise, feel free to blaspheme me and my thoughts. In the meantime, I will test this and report back.

Link to post
Share on other sites
Do you copy and paste

;

to the end of the file "navigatemap_800_480.ui"

If so I tried that and it gave me an error mesage, could not boot up.

If not could you explain.

 

I haven't applied the change yet, so I can't say this will work, but drawing on my limited knowledge of coding in other languages my guess would be:

 

Find the line "" in your existing 'navigatemap_800_480.ui' file. Replace that line with the supplied fix listed above.

 

The ';' at the beginning will "comment out" that first line of code. "Commenting out" means that the program won't use any code with a semicolon at the beginning of the line, the semicolon effectively makes that line invisible and unused. This way, the new code will be used in place of the old.

 

Anyone who thinks/knows otherwise, feel free to blaspheme me and my thoughts. In the meantime, I will test this and report back.

 

 

Was this correct?

Link to post
Share on other sites
Do you copy and paste

;

to the end of the file "navigatemap_800_480.ui"

If so I tried that and it gave me an error mesage, could not boot up.

If not could you explain.

 

I haven't applied the change yet, so I can't say this will work, but drawing on my limited knowledge of coding in other languages my guess would be:

 

Find the line "" in your existing 'navigatemap_800_480.ui' file. Replace that line with the supplied fix listed above.

 

The ';' at the beginning will "comment out" that first line of code. "Commenting out" means that the program won't use any code with a semicolon at the beginning of the line, the semicolon effectively makes that line invisible and unused. This way, the new code will be used in place of the old.

 

Anyone who thinks/knows otherwise, feel free to blaspheme me and my thoughts. In the meantime, I will test this and report back.

 

 

Was this correct?

 

Yes, he's exactly right. Comment out the first line, then add the next two and it works.

Link to post
Share on other sites

Does the affect the function of the compass button at all? I presume this is the directional arrow you are changing. I guess what I'm asking, is does the compass still work, but this just adds touch-button code behind it to cancel the nav voice?

 

Sorry if that question should have been obvious.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...



×
×
  • Create New...