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
    Pro-Member userninenine's Avatar
    Join Date
    Dec 2017
    Location
    Austria
    Posts
    213
    Rep Power
    19

    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. #2
    Master kwbs's Avatar
    Join Date
    Jul 2017
    Location
    IL
    Posts
    846
    Rep Power
    306

    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. #3
    Master
    Join Date
    Aug 2011
    Location
    uk
    Posts
    166
    Rep Power
    756

    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.

 

 

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
  •