A little help ? (1 Viewer)

wizard123

Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #11
    Hi wizard
    add
    using MediaPortal.GUI.Library;
    if u haven't done so
    Hi thanks but i already have that see above post :)
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #12
    I think it may have been missing the brackets from

    public void SetProp

    to
    public void SetProp()

    Unless i'm way off there i'm a c# noob :)
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,953
    1,261
    Saratov
    Home Country
    Russian Federation Russian Federation
    Ah sorry there should be brackets in the name void SetProps() Yes
    After that it should compile but wll not work in MP > 1.2.0 due to compatibility info missing :D
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #14
    Wow can't believe i was right there lol, thank you.
    Do you mind if i post a few questions as i'm going ? like i can set the image in that code you just gave me but can i have the location as a folder full of images and have them change randomly after x amount of time ?

    I added the compatibility stuff in the assembly info is that ok ?
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #17
    Hi again
    can i have the location as a folder full of images and have them change randomly after x amount of time ?
    Yep, but you do not need a plugin at all (I think)
    please read this

    http://wiki.team-mediaportal.com/1_...ns/Skin_Architecture/Skin_Controls/Multiimage

    /mrj
    Multiimage controls are no good because they do not have the ability to add masks or zoomfromtop tags which is why i wondered if i could use a normal image control but set the #picture to be a folder with random selection ? in essence it would have the same effect as a multiimage control but i would be able to use the missing features i need.
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #18
    I've built the plugin and mediaportal loads ok with it but the image is not visible :(
     

    mrj

    Portal Pro
    January 27, 2012
    252
    100
    Hi
    You need to call the SetProp() method somewhere, for example in the OnClicked(...) method
    Then the Picture will be seen when you click on one of the buttons.
    /mrj
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #20
    Thanks @mrj i really appreciate the help. Would you have any ideas on how to make the image that is displayed get chosen at random from a folder and change every say 1minute or so.
     

    Users who are viewing this thread

    Top Bottom