2008-02-14, 12:51 AM
The last grouping in the baseskin.xml file is called a CommonImage. It is similar in concept to NamedColors or Textstyles, in that we define what image we will use for certain core GBPVR composite image items.
This is an example of some..
This just means elsewhere in skins, we just have to say <DrawCommonImage name="ListBackground"> and gbpvr knows what image to use.
You could use xml code instead of images here if you wish, but that is not what the intent of the CommunitySkin is (ie. Image based skinning.).
An example of xml code images would be what sub uses in blue.
This is code that draws a rounded rectangle with the colors specified and radius specified. Border width is also something that can be modified.
That concludes a rundown of the basekin.xml file. The key points I wanted to stress here was the textstyles and named colors. Most other items are usually the same from theme to theme.
Up next we will tackle the main menu.
This is an example of some..
Code:
<!-- Common images, used for backgrounds on various things -->
<CommonImages>
<CommonImage name="ListBackground">
<DrawImage filename="..\_CoreImages\ListView.png" loc="0,0" size="100,100"/>
</CommonImage>
<!-- details view -->
<CommonImage name="DetailsViewNormalItemBackground">
<DrawImage filename="..\_CoreImages\Detail_Normal.png" loc="0,0" size="100,100"/>
</CommonImage>
<CommonImage name="DetailsViewSelectedItemBackground">
<DrawImage filename="..\_CoreImages\Detail_Selected.png" loc="0,0" size="100,100"/>
</CommonImage>
<CommonImage name="DetailsViewSelectedInactiveItemBackground">
<DrawImage filename="..\_CoreImages\Detail_SelectedInactive.png" loc="0,0" size="100,100"/>
</CommonImage>
This just means elsewhere in skins, we just have to say <DrawCommonImage name="ListBackground"> and gbpvr knows what image to use.
You could use xml code instead of images here if you wish, but that is not what the intent of the CommunitySkin is (ie. Image based skinning.).
An example of xml code images would be what sub uses in blue.
Code:
<CommonImage name="DetailsViewNormalItemBackground">
[B][color=Red]<DrawRoundedRect loc="0.5,0.5" size="99,98" fillColor="ListNormal" borderColor="Transparent" radius="1" borderWidth="0"/>[/color][/B]
</CommonImage>
This is code that draws a rounded rectangle with the colors specified and radius specified. Border width is also something that can be modified.
That concludes a rundown of the basekin.xml file. The key points I wanted to stress here was the textstyles and named colors. Most other items are usually the same from theme to theme.
Up next we will tackle the main menu.
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]
[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]