Blue Vision (5 Viewers)

ge2301

Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,736
    3,501
    Stuttgart
    Home Country
    Germany Germany
    I'll play around with it (probably this or next evening) and let you know if/how it works.
    Thanks a lot Osre :notworthy: You are a great help (y)
    When you have a look on it, would be great to check also following. May you have a solution or find at least find the root cause.
    • After my last change visually everything is fine. But when starting MP2, entering or leaving a view I hear a strange sound. For me it seems to be the selection sound, but several times in a row and overlapping. I was thinking that for some reasons a sound for every main menu item apears (5 x), but no idea why, I didn't change any related code. It's not so important, but the sound is little bit annoying :sick: -> EDIT: I found the problem and solved it
    • Edit (2) of my previous post
    • When switching for example the view mode, the description text is also "view mode". Can this be prevented by limiting the events to main menu items only?
    Unbenannt.jpg
     
    Last edited:

    MaxMan23

    MP Donator
  • Premium Supporter
  • September 8, 2007
    380
    48
    Home Country
    Germany Germany
    Hi ge2301,
    is there a way to show in the mini epg (TV, when you are in fullscreen and press ok) to display what is comeing next (like mp1)?


    MaxMan23
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,736
    3,501
    Stuttgart
    Home Country
    Germany Germany
    Hi ge2301,
    is there a way to show in the mini epg (TV, when you are in fullscreen and press ok) to display what is comeing next (like mp1)?
    MaxMan23

    Hi MaxMan23

    I didn't touch the TV part yet. The style is taken over from ApolloOne and made by Morpheus_xx :)
    Anyway I think your question is not skin specific, but related to TVE3.5 in general. I fear only a dev can answer which features are planned / possible in the coming TVE3.5 work.
     

    osre

    Retired Team Member
  • Premium Supporter
  • December 14, 2014
    775
    387
    Home Country
    Germany Germany
    I made a working version to change menu items on group item selection change:
    The HomeMenuModel needs to be modified as follows:
    Code:
    ...
    // additional using
    using MediaPortal.UI.SkinEngine.MpfElements;
    ...
    // modified CreateMenuGroupItems: remove command and add AdditionalProperty with key.
    protectedvoid CreateMenuGroupItems()
    {
    _mainMenuGroupList.Clear();
    if (_menuSettings !=null)
    {
    int idx =0;
    foreach (string group in _menuSettings.MainMenuGroupNames)
    {
    string groupName = group;
    var groupItem =newListItem(Consts.KEY_NAME, groupName)
    {
    Selected = idx == _menuSettings.DefaultIndex
    };
    groupItem.AdditionalProperties.Add("NameKey", groupName);
    _mainMenuGroupList.Add(groupItem);
    idx ++;
    }
    }
    _mainMenuGroupList.FireChange();
    }
    ...
    // new selection changed handler, which sets the group according to the key we stored in the group item above
    publicvoid OnGroupItemSelectionChanged(object sender, SelectionChangedEventArgs e)
    {
    var item = e.FirstAddedItem asListItem;
    if (item !=null)
    {
    SetGroup((string)item.AdditionalProperties["NameKey"]);
    }
    }
    And the XAML (master:bare.xaml) looks like this:
    Code:
    ...
    <!-- Group tabs: remove commnd bridtge and add SelectionChanged event handler -->
    <ListView x:Name="GroupList" Style="{ThemeResource HomeGroupListViewStyle}" Grid.Column="1"
    VerticalAlignment="Stretch"
    IsEnabled="{Binding Source={StaticResource MenuModel},Path=!IsMenuOpen}"
    ItemsSource="{Binding Source={StaticResource MenuModel},Path=MainMenuGroupList,Mode=OneTime}"
    SelectionChanged="{CommandStencil Source={StaticResource MenuModel},Path=OnGroupItemSelectionChanged}">
    </ListView>
    ...
    Attached are both files, but please make sure you have no changes on your own.
    If you like my changes I can also push them to GitHub.
     

    Attachments

    • MP2.zip
      5.9 KB

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,736
    3,501
    Stuttgart
    Home Country
    Germany Germany
    Attached are both files, but please make sure you have no changes on your own.
    If you like my changes I can also push them to GitHub.

    I can not build the client when changing both files. Is there also a change on the setting file?
    Unbenannt.jpg

    Sure, you can push your changes, when it's working.
    I'll also add you as one of the authors of the skin. This is the minimum to honor your contribution :)
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,736
    3,501
    Stuttgart
    Home Country
    Germany Germany
    Ah ok, you made the changes to the previous version of BlueVision, when is was not yet an independent plugin.
    I found ApolloOne references in you homemenumodel.cs, thats why it was not compliling :)
    Meanwhile some changes as new guids and WProperty classes were implemented and the BlueVision plugin is working independent from ApolloOne.

    Can you adapt your code based on the latest branch:
    https://github.com/MediaPortal/MediaPortal-2/tree/FEAT_BlueVision²_v2
    https://github.com/MediaPortal/MediaPortal-2/tree/FEAT_BlueVision²_v2
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,736
    3,501
    Stuttgart
    Home Country
    Germany Germany
    Great, could you send me or post the compiled plugin after implementation? :) I'm currently in Austria with only business laptop and can not build by myself. I'd love to try your changes anyway!
     

    Users who are viewing this thread

    Top Bottom