AtmoLight 2.1.0.0 for MediaPortal2 [2015-01-21] (1 Viewer)

morpheus_xx

Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,387
    6,966
    Germany Germany
    Country flag
    After starting this version the first time with mediaportal 2, it will create a new settings file. You can find it under C:\ProgramData\Team MediaPortal\MP2-Client\Config\{USER_NAME}\. At the moment you have to change the config manually
    If you need support with developing the configuration for the settings, let me know. MP2 provide already nearly everything that is required for this task.
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Germany Germany
    Country flag
    After starting this version the first time with mediaportal 2, it will create a new settings file. You can find it under C:\ProgramData\Team MediaPortal\MP2-Client\Config\{USER_NAME}\. At the moment you have to change the config manually
    If you need support with developing the configuration for the settings, let me know. MP2 provide already nearly everything that is required for this task.
    Yeah, config was one of the things i wanted to tackle next. I will look through some code of other plugins, maybe i can figure it out. Otherwise i will let you know. Thanks. :)
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Germany Germany
    Country flag
    I think you already are at the beta stage of this plugin.
    Well, its called Alpha because with Alpha 5 i ask you all to delete the current settings file, as i did some changes there ;).

    Code:
    Version 2.0.0.0 Alpha 5
    - Fixed bug where AtmoWin would not be stopped on MP2 exit
    - Added color button support
        * Default: Red=ContextMenu (not implemented yet), Green=Toggle LEDs, Yellow=Change AtmoWin Profile
    - Changed some types in the settings. Please delete current settings file before using this version!
    https://ambilight-4-mediaportal.goo...ease/AtmoLight 2/AtmoLight_2.0.0.0_Alpha5.rar


    @morpheus_xx i had a look at ov and weather plugin for the config stuff, but couldnt figure it out. So some help is highly apreciated! Maybe you can explain the idea on how to add plugin configs? Thanks!
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,387
    6,966
    Germany Germany
    Country flag
    Maybe take a look at the VideoPlayer plugin for easier examples. In principle you can either:
    1. Use inbuilt base classes for simple selection (yes/no, text, number, list selection, ...)
    2. Provide an own model+screen to create more complex configuration screens
    You define configuration sections using the plugin.xml file: https://github.com/MediaPortal/Medi...rce/UI/Players/VideoPlayer/plugin.xml#L37-L43. There are sections (ConfigSection) and settings (ConfigSetting).

    1) A simple "yes / no" selection you can find here:
    https://github.com/MediaPortal/Medi...e/UI/Players/VideoPlayer/plugin.xml#L141-L147. It refers to the classname
    MediaPortal.UI.Players.Video.Settings.Configuration.AudioPreferMultiChannel, which is defined here: https://github.com/MediaPortal/Medi...figuration/AudioPreferMultiChannel.cs#L29-L43.

    2) A more detailed configuration is used in other plugins like Trakt.tv:
    We need to put the descriptions more detailed into wiki... Does anyone of our @DocumentationGroup would like to help with this part?
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Germany Germany
    Country flag
    Maybe take a look at the VideoPlayer plugin for easier examples. In principle you can either:
    1. Use inbuilt base classes for simple selection (yes/no, text, number, list selection, ...)
    2. Provide an own model+screen to create more complex configuration screens
    You define configuration sections using the plugin.xml file: https://github.com/MediaPortal/Medi...rce/UI/Players/VideoPlayer/plugin.xml#L37-L43. There are sections (ConfigSection) and settings (ConfigSetting).

    1) A simple "yes / no" selection you can find here:
    https://github.com/MediaPortal/Medi...e/UI/Players/VideoPlayer/plugin.xml#L141-L147. It refers to the classname
    MediaPortal.UI.Players.Video.Settings.Configuration.AudioPreferMultiChannel, which is defined here: https://github.com/MediaPortal/Medi...figuration/AudioPreferMultiChannel.cs#L29-L43.

    2) A more detailed configuration is used in other plugins like Trakt.tv:
    We need to put the descriptions more detailed into wiki... Does anyone of our @DocumentationGroup would like to help with this part?
    Thank you!
    I think i got it. The first option should be more than enough. :)
    I will try my best later and let you know.
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Germany Germany
    Country flag

    Attachments

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,387
    6,966
    Germany Germany
    Country flag
    Cool, this was quick :)
    Is there any way to force the order of the items? Now they are ordered ascading, but i would like to give it my own order.
    To be honest, I don't know. I would have to check code. Does the order of registration matter?
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Germany Germany
    Country flag
    Cool, this was quick :)
    Is there any way to force the order of the items? Now they are ordered ascading, but i would like to give it my own order.
    To be honest, I don't know. I would have to check code. Does the order of registration matter?
    No, i thought it would, so i added the registration like i wanted the items to show up, but it ended up being ordered ascading.

    Edit:
    well dumb me, so it looks like the config entries do get sorted like i want, but the config "folders" dont... So "general settings", "remote buttons", "advanced settings" and "Content effects" are the only ones not getting sorted like i want them to.
     
    Last edited:

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Germany Germany
    Country flag
    Ok,
    so to get this plugin to the same status quo as the MP1 plugin, one thing is still missing. In MP1 i have a context menu that i can open by pressing a color button. Its purpose is to quickly change settings, or enable/disable the leds during playback or just in menu. So for example change the current effect, without having to navigate to the configuration and so on.

    Here is a screenshot of the MP1 one.


    I have looked through some source code of mp2 and other plugins but didnt find anything like that. Also i have a slight feeling that this would only be possible with skin files?! And thats something i really have no clue what so ever.

    So, is something like this possible in MP2 atm? And if yes, could someone point me in the right direction? :)

    Thanks!
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,387
    6,966
    Germany Germany
    Country flag
    It's possible, ofc. As example take a look at SystemStateMenu plugin: https://github.com/MediaPortal/Medi.../Incubator/SystemStateMenu/plugin.xml#L30-L51

    You need to:
    I think it's nearly the same as you need.
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    Top Bottom