[Skin] - variable Dialog Menu (option to add additional entries)

Discussion in 'Improvement Suggestions' started by Scrounger, November 4, 2013.

  1. Scrounger
    • Premium Supporter

    Scrounger Retired Team Member

    Joined:
    January 21, 2009
    Messages:
    1,032
    Likes Received:
    468
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +514 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi,

    is it perhaps possible to implement variable / dynamic dialogs (e.g. DialogMenu) to add / use loadparameters for serverals plugins?

    Example:
    I would like to implement in the ContextMenu of TvGuideBase additional entries to jump directly to some plugins like onlineVideos, TvWish, Clickfinder ProgramGuide or Webbrowser by using the loadparameters of these plugins.

    At the Moment this is only possible, if you add a single button to this menu. Disadvantage is the control and the layout dont look like the perfect standard of MP.

    At the moment, the menu entries are hardcoded. Perhaps there is a way to generate a menu dynamically over for example a settings xml file?



    Greetings Scrounger
     
    • Great Idea! Great Idea! x 2
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Edalex
    • Premium Supporter

    Edalex Community Plugin Dev

    Joined:
    January 3, 2008
    Messages:
    2,909
    Likes Received:
    713
    Gender:
    Male
    Location:
    Saratov
    Ratings:
    +1,232 / 9
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    Definetely not possible now. Need to create additional interface to accepting new entries from skin in dialogs. On the other hand, you could make hidden menu with needed buttons or even buttons on main screen with conditional visibility
     
    • Like Like x 1
  4. Scrounger
    • Premium Supporter

    Scrounger Retired Team Member

    Joined:
    January 21, 2009
    Messages:
    1,032
    Likes Received:
    468
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +514 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Ok, changing the interface become complex.
    In DialogMenu a listcontrol is used. My idea is to implement a new GUIListconttrol skin tag "Append", for example. In a separate xml file (not DialogMenu.xml) you can define the appending buttons (GuiListItem) with hyperlink and loadparameters. If the tag "Append" contains the path to the separate xml file, the stored "buttons" will append to the listcontrol. If the appended buttons is selected, read the hyperlink and loadparameter from the defined file. If the tag is empty, listcontrol work like it is at the moment.
    I dont know if this work, but i think this could be an easier way to implment such a feature?
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!