Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Results 1 to 10 of 71

Hybrid View

  1. #1
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    167
    Rep Power
    755

    Default Removing conflicting features/functions 2 0f 5

    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
    Spoiler: notes
    ~= is not equal to
    == equal to
    > greater than
    >= greater than or equal to
    < less than
    <= less than or equal to
    Last edited by morco; 16th November 2019 at 11:26 AM.

  2.    Advertissements


 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •