NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 60 61 62 63 64 … 93 Next »
Plugin/skinning question

 
  • 0 Vote(s) - 0 Average
Plugin/skinning question
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#1
2006-01-27, 11:54 PM
Does anyone know if something like this in a skin would work...

<DrawImage filename="@buttonPath\Button.png" loc="0,0" size="240,35"/>

when @buttonPath is a passed argument from the plugin?

-David
Learning new tricks!
Visit Plain Jane's Collection
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#2
2006-01-27, 11:58 PM
No, that wouldnt work.
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#3
2006-01-28, 12:04 AM
Wish I had a plan B.
Learning new tricks!
Visit Plain Jane's Collection
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#4
2006-01-28, 12:14 AM
You can pass in an image

<DrawImage filename="@image" loc="0,0" size="240,35"/>

where @image could have been loaded from any file you like.
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#5
2006-01-28, 12:55 AM
The plugin knows the path but not the filename, the skin knows the filename but not the path...
Learning new tricks!
Visit Plain Jane's Collection
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#6
2006-01-28, 01:19 AM
Sub, as a follow up question, is their a list of built in GBPVR skinning variables? Ie. ones that the core recognizes?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#7
2006-01-28, 01:26 AM
The only ones are @date @time and @datetime, but you need to be careful not use them on a image that cached, otherwise they'll never update.
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#8
2006-01-29, 04:14 AM
sub Wrote:You can pass in an image

<DrawImage filename="@image" loc="0,0" size="240,35"/>

where @image could have been loaded from any file you like.

The file path in the skin.xml must be relative to the xml's directory. When the file is in the parent directory, this works:
<DrawImage filename="..\MainButtonNormal.png" loc="0,0" size="240,35"/>

However, when the same string is passed as an argument,
args["@NormButtnImg"] = "..\\MainButtonNormal.png";

this does not work:
<DrawImage filename="@NormButtnImg" loc="0,0" size="240,35"/>

I have verified the args["@NormButtnImg"] by printing it to the log file:
1/28/2006 10:54:27 PM.748 VERBOSE [2] Appearance: ..\MainButtonNormal.png

I have also copied the image file to the xml directory and dispensed with the "..\\" in the args and that works.

Of course I need the combination that isn't working.

Help!
Learning new tricks!
Visit Plain Jane's Collection
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#9
2006-01-29, 04:29 AM
Quote:However, when the same string is passed as an argument,
args["@NormButtnImg"] = "..\\MainButtonNormal.png";

this does not work:
<DrawImage filename="@NormButtnImg" loc="0,0" size="240,35"/>
Thats because it is expecting an image object, not a path to an image file.
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#10
2006-01-29, 01:04 PM
sub Wrote:Thats because it is expecting an image object, not a path to an image file.

Oh.

Thanks sub.
Learning new tricks!
Visit Plain Jane's Collection
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,903 2022-10-17, 12:44 AM
Last Post: sgilani
  Web API only_new Question Gazavant 6 2,694 2021-04-04, 06:54 PM
Last Post: sub
  New Systems Plugin kirschey 10 3,401 2020-11-14, 08:01 PM
Last Post: sub
  Another Artwork question scJohn 15 8,203 2019-09-10, 05:33 PM
Last Post: nonob
  WEB API GuidService/Listing question(s) scJohn 6 4,307 2017-08-09, 02:18 PM
Last Post: scJohn
  skin question pBS 2 3,350 2016-06-18, 07:03 PM
Last Post: pBS
  VIdeo playback from plugin mvallevand 5 3,494 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,922 2014-11-14, 02:05 AM
Last Post: Benoire
  Another SQL question bgowland 15 7,278 2014-05-21, 08:09 AM
Last Post: bgowland
  API docs to help with plugin development? McBainUK 3 2,791 2013-06-08, 06:14 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode