NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 131 132 133 134 135 … 193 Next »
Skinning Tutorial

 
  • 0 Vote(s) - 0 Average
Skinning Tutorial
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#1
2004-12-02, 10:23 PM
Alright, any of your Skin Developers up for the challange of writing a how to guide? Those that have already developed some fairly sophistacted skins, could collaborate on it, and who knows, we could get some more really cool skins.
darrin75
Offline

Senior Member

Posts: 558
Threads: 103
Joined: Nov 2004
#2
2004-12-03, 01:09 AM
I am all For your ideas as i am a beginner at learn this stuff
nkh
Offline

Senior Member

Posts: 418
Threads: 14
Joined: Jan 2004
#3
2004-12-03, 03:47 AM
I have just looked at the other skins and tried to work out how the system works. I use notepad or AEdiX to edit the xml files and Paint Shop Pro for the images. I use jpeg (low compression) for the backgrounds and png for the task images, remember to set the transparency for the png files in your image program (or else things start to look strange [Image: smile.gif] ).

I'm currently working on this skin, so I'll use that to try to explain what some of the things in the xml files does, it's pretty much the same for all the screens just with some diffirent names.
If you look at this file \main menu\skin.xml you'll see some text styles (<TextStyles>) getting defined at the top, the name should tell you what each of them do [Image: smile.gif] the colour can be either a hex walue or the name of a colour (like in html's font tags, so black can either be "black" or "#000000"), "Transparent" or a gredient of colours, the font, size and style should be easy.
The composite images (<CompositeImages>) defines what pictures, shapes, buttons and text looks like. First one sets the background <CompositeImage name="Background" size="720,480">... and gives the filename, location on the screen and the size of the background picture (though you could also just use the buildin shapes to make GBpvr draw a simple background). The buttons have name after their state (selected or not), so <CompositeImage name="SelectedButtonImage" size="206,45">... set's the size of the selected button and the next line <DrawRoundedRect... draws the button shape (in my theme it's just a red rectangle with rounded corners, play around with the radius setting). <DrawText... draws the text onto the button and it uses one of the text styles we defined earlier, in this case textStyle="SelectedButtonText".
In the special elements (<SpecialElements>) section we set where the objects should be places on the screen and so on. For example: <SpecialElement name="Buttons" loc="410,95" spacing="40" alwayCentered="true" maxVisibleButtons="7" allowTopBottomWrap="false" showNumbers="false"/> places the buttons (upper lefthand corner) at the position (410,95), the space between the buttons at "40", I have set the selected button to be always centered (so the button list just 'rolls' up and down), the list will show a maximum of 7 buttons and it won't show any nubers next to the button names. The rest of the objects should be easy now.

I don't know if this confuses more than it helps, but if you just look at the xml files and try to change the settings one at a time you should find it quite easy [Image: smile.gif]

Also, a little tip, if (when) you make a mistake in an xml file you'll see that GBpvr either doesn't start or it gives an error when you try to click something on the screen. To find the error more easily open the GBPVR.exe.log and look around the last lines, it should give you a hint about where the mistake is.
Nicolai [SIZE="1"]- http://www.nk-h.dk
Current htpc - Asus N4L-VM DH, Core Duo 2GHz, 2GB RAM, Hauppauge PVR-500 mce, Twinhan DVB-C CI, TerraTec Cinergy 1200 DVB-C, nVidia 8800 GTS (using S-video tv-out), decoding dvb-c with ACamd 0.5.0.9, Yanksee and a Viaccess card from YouSee.[/SIZE]
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#4
2004-12-03, 04:33 AM
Okay, I guess I was looking for something similar to the following:

http://xlobby.incolby.com/SkinningXlobbya40.2.htm

But of course for GBPVR. If nothing else, maybe a section on the Wiki covering skinning tips.
fini
Offline

Member

Posts: 143
Threads: 22
Joined: Sep 2004
#5
2004-12-03, 01:18 PM
there is...

fini
nkh
Offline

Senior Member

Posts: 418
Threads: 14
Joined: Jan 2004
#6
2004-12-03, 04:33 PM
[b Wrote:Quote[/b] (KingArgyle @ Dec. 03 2004,05:33)]Okay, I guess I was looking for something similar to the following:

http://xlobby.incolby.com/SkinningXlobbya40.2.htm
Wouldn't that require a skin editor for GBpvr? I don't see anything about editing the xml files by hand, just a lot of descriptions of the terms (though most of them can be used when editing GBpvr skins too). I don't think a skin editor would be usefull for now, that would just mean that there're one more thing to keep updated when Sub updates GBpvr.
Nicolai [SIZE="1"]- http://www.nk-h.dk
Current htpc - Asus N4L-VM DH, Core Duo 2GHz, 2GB RAM, Hauppauge PVR-500 mce, Twinhan DVB-C CI, TerraTec Cinergy 1200 DVB-C, nVidia 8800 GTS (using S-video tv-out), decoding dvb-c with ACamd 0.5.0.9, Yanksee and a Viaccess card from YouSee.[/SIZE]
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#7
2004-12-03, 05:13 PM
the best way to edit a xml file is just using a program like notepad or textpad. you dont need a xml editor (whats the point really? of course i said that starting uni doing java programs in notepad, so im might be missing something)
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#8
2004-12-04, 12:26 AM
One of the utilities that I think would help with skinning is a GOOD GUI skin editor. Something that is drag and drop that then writes out the skin file.

So far XLobby's comes closest, and Meedio is by far the worse in this category. With the Widget library under development, I figured that would be a natural extension to the Skin Editor. Nobody really likes having to mess around with XML directly unless they have too. Most people are visual anyway.
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#9
2004-12-06, 02:30 PM
nkh: I really like the look of your skin. I'm going to load it up tonight and have a closer look.
-CodeMonkey
nkh
Offline

Senior Member

Posts: 418
Threads: 14
Joined: Jan 2004
#10
2004-12-07, 12:37 AM
thanks, I guess that should be the keyword for me to finish it sometime soon [Image: smile.gif]
Nicolai [SIZE="1"]- http://www.nk-h.dk
Current htpc - Asus N4L-VM DH, Core Duo 2GHz, 2GB RAM, Hauppauge PVR-500 mce, Twinhan DVB-C CI, TerraTec Cinergy 1200 DVB-C, nVidia 8800 GTS (using S-video tv-out), decoding dvb-c with ACamd 0.5.0.9, Yanksee and a Viaccess card from YouSee.[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Skinning error fall back page Hairy 3 2,020 2008-07-07, 10:39 AM
Last Post: Hairy
  Some skinning stuff Ted the Penguin 7 2,660 2007-07-31, 04:59 PM
Last Post: Ted the Penguin
  Font shadow for skinning Torque 0 1,210 2006-12-29, 01:04 AM
Last Post: Torque
  Live Guide - skinning details Old Dog 0 1,288 2005-10-15, 01:46 AM
Last Post: Old Dog
  Skinning, modify Screen saver psycik 5 2,140 2005-10-08, 06:03 PM
Last Post: Jeff
  Recordings Skinning Wish mikaelgu 0 1,177 2005-07-31, 08:31 PM
Last Post: mikaelgu
  Skinning wishes mikaelgu 3 1,662 2005-03-04, 09:10 AM
Last Post: mikaelgu
  skinning the info screen reven 2 1,539 2005-02-19, 03:34 PM
Last Post: mikaelgu
  More flexible skinning capabilities goosey 30 8,251 2004-11-08, 06:41 AM
Last Post: goosey
  Skinning Options Corey 1 3,265 2003-11-24, 08:07 AM
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