Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40
  1. #1
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    132
    Rep Power
    246

    nextgen A Simple UX for Nextgen

    This is a simple UX for Android/WinCe Nextgen that I had posted here some while ago but it must of got lost in the last crash. I have only recently noticed it had gone.

    Features -

    1/ Automatically shows route progress bar when a traffic event is found on route.

    2/ Distance to & number of next available exit on motorway (orange text + exit icon)

    3/ Tunnel length ( blue text)

    4/ Postal code (red text)

    5/ House numbers ( purple text)

    6/ Mute button (on/off)

    7/ Auto zoom button (on/off)

    8/ Long press on zoom button = shortcut to route settings

    9/ Long press on mute button = shortcut to avoid route ahead



    Spoiler: att
    [Only registered and activated users can see links. ]


    [Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ]
    Attached Files Attached Files
    • This post requires you to click the "LIKE this post" button to see Attachments.
    Last edited by morco; 6th March 2019 at 10:17 AM. Reason: added an extra pic, added extra info

  2.    Advertissements


  3. #2
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    132
    Rep Power
    246

    Default

    A new version with a few extra features and update (still only 5kb)

    Update -


    1/ Mute button, now has image - (see pic 1, no.1)

    2/ Auto zoom button (Automatic Overview), now has image - (see pic 1, no.1).

    (+ = off), - = on).


    New features -

    1/ Large speedo on navigation screen - (control, on/off)

    2/ Large overspeed on navigation screen, showing speed limit when speeding- (control on/off)

    3/ TMC relevant event number on navigation screen, (see pic1, no.2), - (control on/off)

    4/ An audio alert when sign posts are shown on navigation screen

    5/ An audio alert when a traffic event effects route

    6/ an audio alert when the arrival time is effected by a traffic event on route

    7/ A purple banner for notifications, (see pic1, no. 3)

    download- This post requires you to click the "LIKE this post" button and hit F5 to read this content.

    Spoiler: pic 1
    [Only registered and activated users can see links. ]


    Spoiler: pic 2
    [Only registered and activated users can see links. ]
    Attached Files Attached Files
    • This post requires you to click the "LIKE this post" button to see Attachments.

  4. #3
    Member
    Join Date
    Feb 2010
    Location
    Sweden
    Posts
    26
    Rep Power
    11

    Default

    Hi
    Works very good.
    Is it possible to change so the speedo is located in the upper left corner in landscape mode?



    =========================================
    Thx i will give it a try. I am busy some days forward, but i will test it
    Last edited by Boki_Srb; 23rd March 2019 at 08:35 PM.

  5. #4
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    132
    Rep Power
    246

    Default

    Hi kalleh,

    It's probably better if you make the position adjustments yourself so you can get the position of the speedo exactly where you want it.

    This is quite simple to do but may take a little experimentation.

    1/ Open the UX and find the 'morco_button_landscape.css'

    2/ open with notepad or similar and find the section shown below.

    Spoiler: code 1
    TEXT.speedo {
    left: -1000%; top: 20%; right: 10%;
    font: defaultbd;
    fontsize: 150;
    color%warning.driveralert.speed_limit < 10 || %navigation.car.current_speed <= %warning.driveralert.speed_limit ? #0030d7 : #e00000 );
    glowtype:1;
    glowsize:2;
    align:"center";
    paddingleft: 0;
    paddingright: 0;
    text=(%navigation.car.current_speed);
    wordwrap: 1;
    visible: (%lua.speedo);
    }


    To change the position to the left or right, edit ' left: -1000% ' , a higher negative number will change it's position further to the left.

    To change the height position, edit ' top: 20% ' , a lower number will raise it. (negative numbers can be used if needed).


    Here is an example, these numbers should position the speedo to the left but below the 'next turn' image.

    left: -1900%; top: 60%; right: 10%;

    Spoiler: Extra info
    The 'right: 10%' can be removed if you wish. This is part of a legacy position setting that I didn't get around to removing.
    Once removed it will have quit a large impact on position but this can be easily compensated by lowering the left percentage number.

    It's also possible to edit the 'align:"center";' (options = left, right), this will have an effect of aligning the speedo digits to one side or the other. Noticeable when the speedo changes from 1 to 2 or 3 digits.


    Last edited by morco; 15th March 2019 at 04:44 PM.

  6. #5
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    132
    Rep Power
    246

    Default

    Limited Update -

    I have created 2 extra limited functions -


    1/
    Creates a scale on the route progress bar, dividing the total route into 10 segments and also shows a calculated display of a one segment size in Miles/kilometres. (control on/off)



    2/
    Now the Route progress bar is automatically displayed when there is 1 or more waypoints on route as well as when there is a traffic event on route.


    These added functions are not for all devices (see below) and have a few niggles like misalignment in simulation mode.

    Unfortunately I have no time now to sort out further, but thought I would share as I find these functions quite useful.




    Due to alignment issues, this added extra function will probably only work correctly on devices with a 1280x720 screen.
    This function uses images that are only present in the xhdpi folder within the UX.

    This post requires you to click the "LIKE this post" button and hit F5 to read this content.

    Update 29/03/19, I have discovered more alignment issues with this update of my UX. In particular when travelling on motorway/ autoroute. I will need to do some more work on it and will update this post when done

    ***************************************************************************************

    Update 6/4/19, this issue has now been fixed. Please see link below.

    This post requires you to click the "LIKE this post" button and hit F5 to read this content.

    note- this feature now does not show in simulation mode and is only visible in navigation mode





    Spoiler: screenshot 1
    [Only registered and activated users can see links. ]


    Spoiler: screenshot 2
    [Only registered and activated users can see links. ]
    Attached Files Attached Files
    • This post requires you to click the "LIKE this post" button to see Attachments.
    Last edited by morco; 6th April 2019 at 02:00 PM. Reason: fixed issue, updated info & added new link

  7. #6
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    132
    Rep Power
    246

    Default Removing conflicting features/functions 1 0f 5

    This is the first of a number of posts to help people remove unwanted functions from my UX in post #2.
    I will also try to include some explanatory info that might help people troubleshoot conflicts between my UX and other UX's, skins etc.

    These first 2 functions I have already shown how to remove in another thread, but here it is again with more info.

    1/

    Function - Automatic pop up of route progress bar when there is a waypoint and/or a traffic event on route.


    remove the following from the 'morco_button.ui'

    Code:
    Please Login or Register to see the links
    this code modifies/replaces code in the Data.zip

    navigatemap.ui

    Code:
    Please Login or Register to see the links
    Mine reads :-

    Only implement the route progress bar if the progress bar is switched on in the settings 'OR' there's a traffic event on route 'OR' there are more than 2 waypoints on route.

    ( Nextgen counts your starting point & finish point as waypoints)


    original reads :-

    Only implement the route progress bar if the progress bar is switched on in the settings 'AND' a route has been loaded 'AND' (can't remember this one) 'AND' is 'NOT' in pedestrian mode 'And' there are 2 or more waypoints on route.

    note -

    Spoiler: Note
    && means AND

    || means OR

    ! means NOT

    --------------------------------------------------------------------------------------------------------------------------------------------


    2/

    Function - Change notification bar to purple in colour

    remove from

    morco_button.css

    Code:
    Please Login or Register to see the links
    this overrides code in the

    notifications UX
    notifications.css

    Code:
    Please Login or Register to see the links
    Image 'panel_grad' is really a colour

    found here in the

    data.zip
    color.css

    Code:
    Please Login or Register to see the links
    #ff292b2c is an Alpha RGB colour

    notes on ARGB


    Spoiler: Note
    ARGB representation(#AARRGGBB)

    AA - Alpha component [0..255] of the color
    RR - Red component [0..255] of the color
    GG - Green component [0..255] of the color
    BB - Blue component [0..255] of the color


    Transparency percentages
    Following are some example transparency percentages and their hex values
    100% - FF
    95% - F2
    90% - E6
    85% - D9
    80% - CC
    75% - BF
    70% - B3
    65% - A6
    60% - 99
    55% - 8C
    50% - 80
    45% - 73
    40% - 66
    35% - 59
    30% - 4D
    25% - 40
    20% - 33
    15% - 26
    10% - 1A
    5% - 0D
    0% - 00
    Last edited by morco; 16th November 2019 at 10:25 AM.

  8. #7
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    132
    Rep Power
    246

    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 10:26 AM.

  9. #8
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    132
    Rep Power
    246

    Default Removing conflicting features/functions 3 0f 5

    5/

    Function - morco UX control -

    creating a button in the Main Menu and creating a 'window', that the button opens when pressed.

    The 'window' contains the 'On/Off' function controls of my UX.


    remove from morco_button.ui

    Code:
    Please Login or Register to see the links
    This inserts a button in to the main menu, below the main settings button.
    It modifies the menu.ui found in the Data.zip

    Code:
    Please Login or Register to see the links
    The first part of creating the 'window' is done here

    remove from morco_button.lua

    Code:
    Please Login or Register to see the links
    The second part is here.

    remove from morco_button.ui

    Code:
    Please Login or Register to see the links
    The ~~~~~~~ lines represent the individual on/off switches that fills the window.

    Spoiler: Side note
    Remaining in the morco_button.lua are 8 occurances of MODEL.SETPERSISTENT.lua.******** = BOOL_MODEL(false)

    These statments control whether a function is active or inactive when the UX is first loaded.
    For these statments, 'false' = Off, 'true' = On.

    Last edited by morco; 16th November 2019 at 10:29 AM.

  10. #9
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    132
    Rep Power
    246

    Default Removing conflicting features/functions 4 0f 5

    6/

    Function - placing buttons on main navigation screen


    It is necessary to the modify the side list , this is the 'framework' needed to insert buttons


    Remove from morco_button.ui

    Code:
    Please Login or Register to see the links
    The modification is made to the navigatemap.ui, here, in the Data.zip

    Code:
    Please Login or Register to see the links
    the '<insert into="TABLE">
    ' code instructs the buttons to insert exactly here with these other buttons

    Code:
    Please Login or Register to see the links
    ----------------------------------------------------------------------------------------------------

    7/

    function - Automatic Overview On/Off button on screen


    remove from morco_button.ui
    Code:
    Please Login or Register to see the links
    This is the 'Automatic Overview On/Off button' insertion and code for its function - 'ONRELEASE={invert(%lua.OverViewModeOn)}'.


    Spoiler: note
    1/
    'ONLONGCLICK=sc_RouteSettings' - is a shortcut to the routesettings window, on long press of button

    2/

    ~~~~~~~~~~~~~ is the '<TEXT CLASS="postcode" >' and the seven other entries that are atached to this button but are not part of its function. (Will be explained in a later post)


    remove from morco_button.css

    Code:
    Please Login or Register to see the links
    This code instructs what image to display on the button

    it reads-

    Is the Automatic overview on ?, if yes then display the "ico_zoomout_graph.svg" image if not then display the "ico_zoomin_graph.svg"

    These images are found in 'the skin UX', res, the_dark/the_bright, nodpi

    Spoiler: note
    Automatic overview off- view stays close to road, displays 'ico_zoomin_graph.svg' ( + inside magnifying glass)


    -------------------------------------------------------------------------------------------------------------------

    8/
    Function - Volume mute button



    Similar to above

    remove from morco_button.ui

    Code:
    Please Login or Register to see the links
    Spoiler: note
    'ONLONGCLICK=btn_AvoidRouteAhead_Onrelease' - is a long press shortcut to the avoid route ahead 'window'


    remove from morco_button.css

    Code:
    Please Login or Register to see the links
    Spoiler: note
    'visible%lua.muteb)'- This button is only visible if it has been selected 'ON', see morco_button.ui - <row text="Mute Button" type="ChkOnOff" isselected="lua.muteb" >


    remove from morco_button.ui

    Code:
    Please Login or Register to see the links
    remove from morco_button.lua

    Code:
    Please Login or Register to see the links
    function of this line was explained post #8 (side note at bottom)

    Spoiler: note
    ico_muteStatus.svg and ico_sound.svg images can be found in the Data.zip nodpi image folder

    Last edited by morco; 16th November 2019 at 10:29 AM.

  11. #10
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    132
    Rep Power
    246

    Default Removing conflicting features/functions 5 0f 5

    9/

    Function - TMC Event Number

    There are 8 functions that appear in text on screen but I will only show how to remove this one as removal of the others is exactly the same.

    remove from morco_button.lua
    Code:
    Please Login or Register to see the links
    See post #8, side note

    remove from morco_button.ui
    Code:
    Please Login or Register to see the links
    this is the On/Off switch for the 'TMC Event Number' that you see in the control 'window'


    remove from morco_button.ui
    Code:
    Please Login or Register to see the links
    This attaches the 'TMC Event Number' info to the automatic overview on/off button on screen


    remove from both morco_button_portrait.css and morco_button_landscape.css

    (landscape shown below)
    Code:
    Please Login or Register to see the links
    Code:
    Please Login or Register to see the links
    pushes the displayed text away from the 'automatic overview on/off button' and aligns it next to the TMC button on screen.

    Code:
    Please Login or Register to see the links
    hex colour of text

    Code:
    Please Login or Register to see the links
    actual text shown on screen (TMC event number)

    Code:
    Please Login or Register to see the links
    This reads -

    Only show the TMC event number if it is turned on in the morco settings 'window' 'AND' the number of traffic events are more than zero 'AND' that Nexgen is 'NOT' playing a simulated route.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    THE END

    That took a lot longer than I had anticipated, I hope it will be of use/interest for some of you.

    A custom version of my UX, that may be of interest to some can be found here (post #25).
    It has a few other functions.

    [Only registered and activated users can see links. ]

    Last edited by morco; 16th November 2019 at 10:30 AM.

 

 

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
  •