NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 72 73 74 75 76 … 93 Next »
Developing a skin. Need input.

 
  • 0 Vote(s) - 0 Average
Developing a skin. Need input.
daphatty
Offline

Posting Freak

Posts: 1,032
Threads: 85
Joined: Feb 2005
#1
2005-04-13, 02:52 AM
So I decided to take the plunge and try creating a skin of my own. I must say, I have a newfound respect for you skinners. This $hit is hard work!

The screen shot below represents my WIP skin. First, the resolution has been changed to 1280x960. I've mainly done this to see how GB-PVR would look with a larger image and to gauge what sort of challenges changing the background would bring about. Eventually, I plan on altering this image to fit my needs for a 16x9 interface. Additional changes include location, size, and task enabling.

Truth be told I must give all credit to Reboot. I'm basically altering one of his skins as my learning tool since I know nothing of XML (although I have programmed in C/C++). Reboot's skins are among my favorite so it seemed only logical to follow his work as a guide.

So, on to the issues. I have found one perplexing issue that is bothering me to no end. I cannot understand why the Clock and Next Recording panels have separate size and location settings in the clock/nextrecording.xml and skin.xml files. Changing the font size for those two panels has been a major PITA and I'm not satisfied with the results so far. I want the text quality to be clean and crisp, just like the title and button fonts. The stretched fonts just wont do. I'm using a size 24 Arial font for the button text, yet I am forced to use a stretched out size 12 font for the Clock and Next Recording panels. Using a larger font results in a cutoff, illegible mess. Anyone have any suggestions on this?

[Image: concept1.jpg]
tieke
Offline

Senior Member

Posts: 450
Threads: 72
Joined: Jul 2004
#2
2005-04-13, 08:42 AM
Whereabouts exactly are you changing the settings? I think your problem is basically that these are panels, which have their own skin.xml files in the panels skin directory, all you can do in the main menu skin.xml is to set their position and size.
daphatty
Offline

Posting Freak

Posts: 1,032
Threads: 85
Joined: Feb 2005
#3
2005-04-13, 12:10 PM
tieke Wrote:all you can do in the main menu skin.xml is to set their position and size.

That's exactly my problem. You can adjust the position and size of those panels in both the main skin.xml file and their respective .xml files in the panels folder. This presents a challenge when trying to adjust the size of the font. Instead of the viewable area of the font changing, the font itself stretches. I'd post a screenshot but I'm at work and dont have access to my HTPC.
hansi
Offline

Junior Member

Posts: 49
Threads: 9
Joined: Sep 2004
#4
2005-04-13, 01:49 PM
There is no stretching if you make it the same size in both files:

E.g., setting it to 400x60, arial bold 24, and the time/date strings next to each other:

In ...\panels\clock.xml:

<settings>
<!-- text style -->
<TextStyles>
<TextStyle name="Clock" color="LightGray" typeFace="Arial" size="24" style="bold"/>
</TextStyles>
<!-- Composite Images -->
<CompositeImages>
<!-- Clock -->
<CompositeImage name="Clock" size="400,60">
<DrawRoundedRect loc="5,5" size="400,60" radius="5" borderWidth="1" borderColor="Transparent" fillColor="Black"/>
<DrawText text="@ClockText1" loc="15,15" size="140,60" textStyle="Clock" align="Left"/>
<DrawText text="@ClockText2" loc="155,15" size="230,60" textStyle="Clock" align="Left"/>
</CompositeImage>
</CompositeImages>
<!-- special elements -->
<SpecialElements>
<SpecialElement name="ClockPanel" size="400,60"/>
</SpecialElements>
</settings>

and in ...\main menu\skin.xml:

<SpecialElement name="Panel" panelName="Clock" visible="true" transparency="0.7" loc="1,1" size="400,60"/>

HTH
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#5
2005-04-13, 02:59 PM
Thanks for the credit Smile
Changing the actual clock and next recording panels isn't always necessary.
If you resize their attributes in the main menu, things CAN get messed, as you're finding out with a double size background.
This is where you must resize where they appear in main menu, and then change the size in the panels as well.
This doubles the work, especially if you intend to put a composite image box around them, or a background image behind them.
You may find (if using one of my main menu skins) that the clock and next recording panels, are "on top" of a Transparent box. If you intend to keep it transparent, you can actually remove the lines in the code that have both a transparent border and transparent fill.
The Mountain Lake main menu skin is one of the simplest, as it has no boxes around anything, except the selected button. This probably isn't the best skin to start with, because a lot of the elements have been removed to cut down on code size.
If you start with the stock Blue skin, you can see a lot more of the possiblities.
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  IPTV like stream from Sound Card input - FM Radio Project NumberFive 3 1,569 2022-11-20, 04:28 PM
Last Post: mvallevand
  Developing Android TV client fred250 2 1,917 2020-11-16, 06:33 PM
Last Post: fred250
  Skin help (correct location?) SFX Group 4 3,958 2018-01-24, 07:42 AM
Last Post: pBS
  skin question pBS 2 3,393 2016-06-18, 07:03 PM
Last Post: pBS
  Skin - view further into the future, scale the guide Vitenka 5 3,384 2014-11-26, 07:28 PM
Last Post: Vitenka
  I want to start developing plugins...but how? OrenShapir 6 4,185 2014-11-18, 10:38 PM
Last Post: mvallevand
  Is the input file for pvrx2.exe -import unique to NextPVR? spinnaker 1 1,829 2013-10-08, 02:25 AM
Last Post: sub
  Skin element Details in NowNext Jaggy 2 1,849 2011-09-19, 11:50 PM
Last Post: Jaggy
  Skin Help with Line Drawing Northpole 2 1,991 2011-07-19, 05:14 PM
Last Post: Northpole
  Anyone interested in developing a Skin Plugin? Hairy 13 5,199 2011-07-10, 04:13 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode