2005-10-13, 05:23 PM
All, I am playing around with developing my own system information plugin. Here is what I have thus far:
The problem I am having is making it flexible in terms of skinning. Right now I am using a CompositeImage along with a DrawRoundedRect to draw the rectangle around the drive information -- this part is in the skin.
However, in the code, I have it set to enumerate the drives and their status using absolute positioning. I am using DrawString and DrawRoundRect (from the original sysinfo plugin) to accomplish this.
The problem is that the skin can't know how many drives there are.
To rectify this, I was thinking of manually parsing the skin.xml file and adding my own nodes prior to calling the SkinHelper constructor. At least then, the dynamically created nodes would be relative to the parent CompositeImage/DrawRoundedRect.
Any other ideas?
The problem I am having is making it flexible in terms of skinning. Right now I am using a CompositeImage along with a DrawRoundedRect to draw the rectangle around the drive information -- this part is in the skin.
However, in the code, I have it set to enumerate the drives and their status using absolute positioning. I am using DrawString and DrawRoundRect (from the original sysinfo plugin) to accomplish this.
The problem is that the skin can't know how many drives there are.
To rectify this, I was thinking of manually parsing the skin.xml file and adding my own nodes prior to calling the SkinHelper constructor. At least then, the dynamically created nodes would be relative to the parent CompositeImage/DrawRoundedRect.
Any other ideas?
GBPVR v1.0.16 | Comskip | SportsScores | Weather | I-XmlTV
Server: Tyan Thunder h1000E | 2 x Opteron 2210 | 2GB PC2-5300 DDR2 ECC
LSI MegaRAID 300-8X SATA RAID
1x 73GB SCSI @ 10K RPM (OS)
3x 500GB SATA @ 7.2K RPM (RAID 5) (4 Partitions: Docs, Still Pics, Home Movies, Music)
2x 160GB IDE @ 7.2K RPM (RAID 0) (Recordings)
Hauppauge HVR-1600
Client: Gigabyte GA-MA69GM-S2H | Athlon x2 5000+ BE | 2GB PC-6400 DDR2
1x 320GB SATA @ 7.2K RPM
Antec NSX2480 Case
MCE Remote
Server: Tyan Thunder h1000E | 2 x Opteron 2210 | 2GB PC2-5300 DDR2 ECC
LSI MegaRAID 300-8X SATA RAID
1x 73GB SCSI @ 10K RPM (OS)
3x 500GB SATA @ 7.2K RPM (RAID 5) (4 Partitions: Docs, Still Pics, Home Movies, Music)
2x 160GB IDE @ 7.2K RPM (RAID 0) (Recordings)
Hauppauge HVR-1600
Client: Gigabyte GA-MA69GM-S2H | Athlon x2 5000+ BE | 2GB PC-6400 DDR2
1x 320GB SATA @ 7.2K RPM
Antec NSX2480 Case
MCE Remote