Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 61
  1. #41
    Pro-Member userninenine's Avatar
    Join Date
    Dec 2017
    Location
    Austria
    Posts
    239
    Rep Power
    10

    help Update code

    I need some help in coding

    I want to improve the graphics on cockpit with some buttons.
    Buttons especially for TMC on/off - Mute and OverViewMode

    Functions are working and the new buttons are shown in cockpit, but I cannot disable them via settings menü. Settings for on/off are available but do not do anything. Buttons are always visiable in Cockpit.
    Any hint for me?

    Use PAL version - no skin as fare default skin

    Spoiler: Orignal morco_button.ui

    Code:
    Please Login or Register to see the links

    Spoiler: Orignal morco_button.lua

    Code:
    Please Login or Register to see the links

    Spoiler: Orignal morco_button.css

    Code:
    Please Login or Register to see the links


    Here is my code.

    Spoiler: My morco_button.ui

    Code:
    Please Login or Register to see the links

    Spoiler: My morco_button.lua

    Code:
    Please Login or Register to see the links


    Spoiler: Pictures

    [Only registered and activated users can see links. ][Only registered and activated users can see links. ][Only registered and activated users can see links. ]

  2.    Advertissements


  3. #42
    Pro-Member
    Join Date
    Jul 2017
    Location
    IL
    Posts
    314
    Rep Power
    13

    Default

    Hi @userninenine

    For MUTE button of morco, i'm using the "[Only registered and activated users can see links. ]" of LouBouha. It works very well for me. Have you looked at the code that in this fix? It may assit you.

  4. #43
    Pro-Member userninenine's Avatar
    Join Date
    Dec 2017
    Location
    Austria
    Posts
    239
    Rep Power
    10

    Default

    I need the code for PAL. I've tried to use the code in this ux as template, but do not work for me. Ux for LUNA do not work for me in PAL. Have tried it...
    Last edited by userninenine; 12th July 2020 at 10:31 AM.

  5. #44
    Pro-Member
    Join Date
    Jul 2017
    Location
    IL
    Posts
    314
    Rep Power
    13

    Default

    OK. Sometimes it can give direction, inspiration or an idea to...
    Any progress about removing the white camera background?
    Last edited by kwbs; 12th July 2020 at 10:50 AM.

  6. #45
    Pro-Member userninenine's Avatar
    Join Date
    Dec 2017
    Location
    Austria
    Posts
    239
    Rep Power
    10

    Default

    All fine mate. Thx.
    This code makes me grazy, because I get it running for LUNA but not for my PAL, which I like more...
    If I fixes this I will check your request

  7. #46
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    139
    Rep Power
    273

    Default

    Quote Originally Posted by userninenine View Post
    I need some help in coding

    I want to improve the graphics on cockpit with some buttons.
    Buttons especially for TMC on/off - Mute and OverViewMode

    Functions are working and the new buttons are shown in cockpit, but I cannot disable them via settings menü. Settings for on/off are available but do not do anything. Buttons are always visiable in Cockpit.
    Any hint for me?

    Use PAL version - no skin as fare default skin

    The code can be less complicated for pal,

    here is the code for the Overview mode, You can use the same format for the TMC on/off & mute.
    This will give you a button that will look like the ones in your picture & have on/off control.

    ui
    ------
    Code:
    Please Login or Register to see the links
    lua
    -------
    Code:
    Please Login or Register to see the links
    false or true, what ever you prefer.
    ***************************************

    The mute button code below is for Luna & not required for pal so can be deleted

    Code:
    Please Login or Register to see the links
    change in the ui from
    Code:
    Please Login or Register to see the links
    to
    Code:
    Please Login or Register to see the links
    Last edited by morco; 12th July 2020 at 08:22 PM.

  8. #47
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    139
    Rep Power
    273

    Default

    @ userninenine


    I've been having a little play with this .

    Here is an alternative method that you could use.

    Example below, again, for the automatic overview -

    **ui**

    Code:
    Please Login or Register to see the links

    **lua**

    Code:
    Please Login or Register to see the links
    **css**

    Code:
    Please Login or Register to see the links
    * this can be made into a working UX*
    Last edited by morco; 13th July 2020 at 05:29 PM. Reason: removed some unrequired code

  9. #48
    Pro-Member userninenine's Avatar
    Join Date
    Dec 2017
    Location
    Austria
    Posts
    239
    Rep Power
    10

    Default

    Thx mate, but non of them worked for me. With this modification - i prefer your first solution - PAL crashes all the time. Think I miss something.

    What do I have to change in section <modify ui_Cockpit> - Red color?

    Code:
    Please Login or Register to see the links

  10. #49
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    139
    Rep Power
    273

    Default

    The code you have in red is not needed so can be deleted

  11. #50
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    139
    Rep Power
    273

    Default

    here is my complete 'TEST' UX button that I changed to give the buttons like you want .

    Hope this helps

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



    for adding your tmc on/off button I would do something like this


    **ui**

    add this
    Code:
    Please Login or Register to see the links
    and this

    Code:
    Please Login or Register to see the links
    then **lua**

    add this

    Code:
    Please Login or Register to see the links

    * i have used - %lua.showtmc - for visibility

    * i'm assuming you have these images in your UX - ico_TMCon.svg & ico_TMCoff.svg
    Attached Files Attached Files
    • This post requires you to click the "LIKE this post" button to see Attachments.
    Last edited by morco; 13th July 2020 at 06:22 PM. Reason: added extra info

 

 

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
  •