A little help ? (1 Viewer)

  • 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 :)
 
  • 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 :)
 
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
 
  • 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 ?
 
  • 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

https://www.team-mediaportal.com/wiki/display/MediaPortal1/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.
 
  • Thread starter
  • Moderator
  • #18
I've built the plugin and mediaportal loads ok with it but the image is not visible :(
 
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
 
  • 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

Back
Top Bottom