EDIT: I should mention - that NSEW and others get most of the credit here. I just brought it into a mod I was working on.
I'll try to capture everything that I did.
1. copy two trip computer ui files from the common/ui and the 800_480/ui directories
2. modify the 800_480/ui/main.ui file and add the imports to the end of their respective sections (the 800_480 one at the end of that chunk and the common at the end of the common chunk).
3. Modify the 800_480/ui/scripts_800_480.ui file to have the following:
4. make sure you copy over all the necessary bmp files. I believe they are:
800_480\BTN_PREV1.bmp#3 & BTN_PREV1.SPR
800_480\BTN_NEXT1.bmp#3 & BTN_NEXT1.SPR
800_480\tripcompu_bg.bmp
800_480\ico_tripcompu_speed.bmp
800_480\ico_tripcompu_time.bmp
800_480\ico_tripcompu_other.bmp
800_480\tripselected.bmp
800_480\tripcompmapicon.bmp
5. modify the navigate_800_480.ui to have the button and/or the button blue bottons:
; Trip Computer icon
and:
;*******trip comp N-S-E-W version with route*******
visiblemodel="navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0
onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>
visiblemodel="navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>
visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>
visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>
visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'
onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>
visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current' onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>
;*****N-S-E-W's trip comp - no route*****
visiblemodel="!navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0
onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>
visiblemodel="!navigation.distance_to_manuver.valid">
visiblemodel="!navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>
visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>
visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>
visiblemodel="!navigation.distance_to_manuver.valid">
visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'
onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>
visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'
onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>
;************ END no route ***********
6. Add the variable in the common/ui/variable_def.ui
7. Add the setting in the 800_480/ui/setting_800_480.ui
.. AT THE END OF THIS LAYER...
;;Trip computer Additions: