[solved] FanArt transition (2 Viewers)

ge2301

MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,614
    2,385
    Stuttgart
    Germany Germany
    Country flag
    @morpheus_xx
    I almost forgot about this one. Can we use it or is it already in the latest weekly?
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,389
    6,966
    Germany Germany
    Country flag
    Yes, this is included in the "skinengine way". Shouldn't it be already in use in multiple places?
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,389
    6,966
    Germany Germany
    Country flag
    I'm referring only to brownards last post in this thread. he proposes another change.
    A sorry, this was a misunderstanding.

    The proposed changes are not yet commited, so they are not included. The idea is good, but we should keep the current behavior as default and enable it only in wanted cases.
     

    ge2301

    MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,614
    2,385
    Stuttgart
    Germany Germany
    Country flag
    Could it make sense to allow something like following?
    <Image Source="..." HorizontalAlignment="..." VerticalAlignment="..."
    UniformedHorizontalAlignment="..." UniformedVerticalAlignment="...">

    The two new parameters are optional and are only working with uniformed images.
    By this we could also force the fixed position of images to left side for example.
     

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    1,945
    1,297
    United Kingdom United Kingdom
    Country flag
    I've added Horizontal/VerticalTextureAlignment properties to the base TextureImageSource, I haven't added any properties to the ImageControl as there could potentially be an ImageSource where texture alignment doesn't make sense, this could easily be changed though.

    Implementing it in xaml looks something like
    XML:
    <Image Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" Stretch="Uniform" Margin="0,0,5,0" Height="560" Width="560">
        <Image.Source>
          <ImageSourceWrapper Delay="0.5" DelayInOut="true" Transition="transitions\dissolve" TransitionDuration="0.5" HorizontalTextureAlignment="Right"
                        Source="{Binding Source={StaticResource FanArtBackgroundModel}, Path=ImageSource, Converter={StaticResource FanArtImageSourceConverter}, ConverterParameter=Poster;0;0;False}"
                        FallbackSource="{Binding Source={StaticResource FanArtBackgroundModel},Path=MediaItem}" />
        </Image.Source>
    </Image>
    Note that you need to give the Image control a width and height otherwise it will shrink to fit the texture dimensions and alignment won't apply.
     

    ge2301

    MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,614
    2,385
    Stuttgart
    Germany Germany
    Country flag
    I've added Horizontal/VerticalTextureAlignment properties to the base TextureImageSource, I haven't added any properties to the ImageControl as there could potentially be an ImageSource where texture alignment doesn't make sense, this could easily be changed though.
    You're right, this makes more sense. Great to have this feature :)
     

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    1,945
    1,297
    United Kingdom United Kingdom
    Country flag
    Branch pushed, see post here.
     

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

    OP Similar threads Forum Replies Date
    horned_reaper [solved] When playing music Fanart does not shuffle Fanart Handler 20
    horned_reaper [solved] No Fanart when playing Fanart Handler 115
    horned_reaper [solved] When playing music Fanart does not appear immediately after downloading Fanart Handler 272
    morpheus_xx [WiP] WIP 2.3 Fanart issues? MediaPortal 2 13
    Rob Hexenmeister [solved] Customising Fanart Handler settings Fanart Handler 3
    franat No funciona ni MepoTools ni DvdArt en castellano Ayuda con MediaPortal 2
    J Suggestion on fanart folder organization. Feature Requests 4
    Lehmden [Videos] More filename possibility for MyVideos local fanart. Improvement Suggestions 26
    DHosein MP-TV no longer holding fanart selections My TVSeries 2
    Edwardfc Fanart setup/configuration General 10
    S Immer gleiche Fanart Musik - CD / MP3 2
    Lehmden Additional naming schemes for local fanart Feature Requests 0
    C [solved] RadioTime Plugin 1.5.0.117 and Fanart Handler Fanart Handler 17
    KlausWirn [solved] MePo1 Cover und Fanart in .nfo Datei ablegen Allgemeines Supportforum 8
    fischy667 [Resolved] No fanart for "Who is America?" My TVSeries 15
    azzuro [MP2-753] Fanart for previous item displayed in some cases Archive 3
    rbo Fanart Handler: Musik-Backdrops für Interpreten ohne eigene Backdrops Plugins & Erweiterungen 8
    C Looking at transitioning from SageTV, but have some questions Newcomers Forum 1
    Top Bottom