[solved] - FanArt transition | Page 3

Discussion in 'Skins and Design' started by ge2301, December 8, 2015.

  1. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,437
    Likes Received:
    1,589
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart
    Ratings:
    +2,390 / 2
    Home Country:
    Germany Germany
    @morpheus_xx
    I almost forgot about this one. Can we use it or is it already in the latest weekly?


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,173
    Likes Received:
    4,788
    Ratings:
    +6,866 / 11
    Home Country:
    Germany Germany
    Show System Specs
    Yes, this is included in the "skinengine way". Shouldn't it be already in use in multiple places?
     
  4. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,437
    Likes Received:
    1,589
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart
    Ratings:
    +2,390 / 2
    Home Country:
    Germany Germany
    I'm referring only to brownards last post in this thread. he proposes another change.
     
  5. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,173
    Likes Received:
    4,788
    Ratings:
    +6,866 / 11
    Home Country:
    Germany Germany
    Show System Specs
    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.
     
  6. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,919
    Likes Received:
    789
    Gender:
    Male
    Ratings:
    +1,327 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I can probably commit it later today, I'll create a new post/JIRA for it.
     
    • Thank You! Thank You! x 2
  7. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,437
    Likes Received:
    1,589
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart
    Ratings:
    +2,390 / 2
    Home Country:
    Germany Germany
    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.
     
  8. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,919
    Likes Received:
    789
    Gender:
    Male
    Ratings:
    +1,327 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    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
    Code (XML):
    1. <Image Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" Stretch="Uniform" Margin="0,0,5,0" Height="560" Width="560">
    2.     <Image.Source>
    3.       <ImageSourceWrapper Delay="0.5" DelayInOut="true" Transition="transitions\dissolve" TransitionDuration="0.5" HorizontalTextureAlignment="Right"
    4.                    Source="{Binding Source={StaticResource FanArtBackgroundModel}, Path=ImageSource, Converter={StaticResource FanArtImageSourceConverter}, ConverterParameter=Poster;0;0;False}"
    5.                    FallbackSource="{Binding Source={StaticResource FanArtBackgroundModel},Path=MediaItem}" />
    6.     </Image.Source>
    7. </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.
     
    • Thank You! Thank You! x 1
  9. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,437
    Likes Received:
    1,589
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart
    Ratings:
    +2,390 / 2
    Home Country:
    Germany Germany
    You're right, this makes more sense. Great to have this feature :)
     
  10. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,919
    Likes Received:
    789
    Gender:
    Male
    Ratings:
    +1,327 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Branch pushed, see post here.
     
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!