NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) v
« Previous 1 … 28 29 30 31 32 … 125 Next »
What makes a plugin's buttons drawn according to theme?

 
  • 0 Vote(s) - 0 Average
What makes a plugin's buttons drawn according to theme?
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#1
2007-03-19, 06:28 AM
I have XRecord installed, but its buttons aren't drawn like most other screens. They are drawn according to data in its skin.xml. Is there some commands for an xml that, combined with something like the CommonUIElements.dll, make the buttons get drawn the same as GB-PVR's buttons?
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#2
2007-03-19, 09:22 AM
xrecord kind of does things it's own way, and hasn't really followed the rest of the skinning advancements that most of the other plugins have done. AFAIK
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#3
2007-03-19, 10:32 AM
Edit those buttons in the skin.xml to match the method in the baseskin.xml that you are attempting to use/create.

If the composite image names are the same as used in baseskin.xml, then you can comment them out and the plugin will use the baseskin.xml definitions.

<!--starts the commenting out, --> closes off the commenting out.
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#4
2007-03-19, 07:12 PM
So for any plugin, if there is a baseskin.xml it will be used? xrecord doesn't install a baseskin.xml.
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#5
2007-03-20, 12:47 AM
Not quite.

The baseskin.xml file is located in the skin's "root" directory. It acts as a master file that other plugin skins can "fall back" upon to find items it needs that are not found in the plugin's skin.xml file. This makes it handy to define things in one central place to help maintain consistancy.

For example, a common composite image used for selected buttons is:
Code:
<CompositeImage name="SelectedButtonImage" size="150,38">
     <DrawImage filename=".\WhateverFolder\WhateverButtonSelected.png" loc="4,3" size="140,35"/>
     <DrawText text="@buttonText" loc="15,9" size="135,25" textStyle="ButtonText" align="Left"/>            
</CompositeImage>

This is usually included in the baseskin.xml of whatever skin you are using.

If, in a plugin, you see the same <CompositeImage name="SelectedButtonImage" ....,

You can "comment" them out and the plugin will use what is defined in the baseskin.xml file.

You can define textstyles in the baseskin.xml file , and not need to define them in the plugin's skin also.
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#6
2007-03-20, 12:53 AM
This is somewhat of an outdated tutorial I wrote on making themes for the Advisor skin.

http://gbpvr.com/pmwiki/pmwiki.php/Devel...torial.pdf
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  BBC Iplayer Downloader Plugin - Beta + Support smiler 420 156,492 2012-01-20, 12:15 PM
Last Post: martint123
  Un-installation of the Weather plugin rkircher 1 13,947 2011-05-20, 08:40 PM
Last Post: scb147
  software recorder, any plugin like it for npvr? chesterusob 2 14,747 2011-04-11, 07:28 AM
Last Post: chesterusob
  Caller ID Plugin elbryyan 3 14,946 2011-02-23, 01:17 AM
Last Post: smajor
  Newest IMon display-hardware finally gets Plugin-mode back mila06 1 5,078 2011-01-01, 05:37 PM
Last Post: kindt nick
  Freazing up trying to watch live TV or access System plugin dspdrew 2 3,521 2010-11-03, 07:52 AM
Last Post: johnsonx42
  Music plugin support thread MixMan 103 40,132 2010-08-31, 09:46 PM
Last Post: povarotti
  New Videos Library Plugin jasonbs10 202 65,517 2010-08-22, 01:38 PM
Last Post: 7ore
  videos library plugin crashes pvrx2 on fanart... cs4 no crash and no fan art why??. tvshowman 2 4,080 2010-04-01, 09:59 PM
Last Post: tvshowman
  Program Plugin not launching MS Games jw100 0 2,718 2010-04-01, 05:53 PM
Last Post: jw100

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

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

Linear Mode
Threaded Mode