3/
Function - An audio alert when sign posts are shown on navigation screen
remove from morco_button.lua
Code:
Please Login or Register to see the links
This replaces the code, below ( which is the 'orig' (original), found in the Data.zip navigatemap.lua
Code:
Please Login or Register to see the links
As you can see i have inserted 'MODEL.sound.playchanneltest("alarmeffect", MODEL.lua.SignPostDing())' This asks for a sound to be played when a sign post is showed. "alarmeffect" makes it a little louder.
'MODEL.SETPERSISTENT.lua.SignPostDing = WSTRING_MODEL(L"!nav_dingding")' provides the statement above, with which sound file to play.
It plays "!nav_dingding", this sound file can be found in data.zip Audio folder.
----------------------------------------------------------------------------------------------------
4/
Function- An audio alert when a traffic event effects route & when the arrival time is effected by a traffic event on route
Similar setup to function 3, in above post
Remove from morco_button.lua
Code:
Please Login or Register to see the links
This replaces original code Found in tmc UX, tmc.lua
Code:
Please Login or Register to see the links
This original code roughly reads -
If, now, the total TMC time delay is 'NOT EQUALL' to the prevous TMC time delay when it was last checked
(asking to perform one of two functions)
If the total TMC time delay is 'LARGER' than the prevous TMC time delay then initiate "traffic", "arrival_delayed"
If this is not the case and the total TMC time delay is 'SMALLER' than before, then initiate "traffic", "arrival_sooner"
these 2 initiations can be found in the tmc UX, plugin.ini
Code:
Please Login or Register to see the links
"Arrival delayed due to change in traffic" OR "Arriving sooner due to change in traffic" is then shown in the notification area of the screen.
As you can see i have inserted 'MODEL.sound.playchanneltest("alarmeffect", MODEL.lua.TrafficStatusAlarm())' in 2 places This asks for a sound to be played when either one of these two conditions are met.
'MODEL.SETPERSISTENT.lua.TrafficStatusAlarm = WSTRING_MODEL(L"!back")' provides the statement above, with which sound file to play.
It plays "!back", this sound file can be found in data.zip Audio folder.
notes
Bookmarks