| |||||||
| Skins You are working on a new Skin? Post it here! |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Dec 2004 Location: United Kingdom
Posts: 630
Thanks: 0
Thanked 2 Times in 1 Post
| Hi Guys - We've added the ability to import/include files into the skin markup files, the idea being to move all the common markup into smaller and easier to manage files in the hope that we can minimize the amount of work skinners are required to do to offer new skins and to make it easier for the maintainers to do their job. The syntax is pretty straightforward, the following would be a typical example of how this new feature could be used: Code: <window> <id>6</id> <defaultcontrol>2</defaultcontrol> <allowoverlay>yes</allowoverlay> <define>#header.label:134</define> <define>#header.image:videos_logo.png</define> <define>#header.hover:hover_my videos.png</define> <controls> <import>common.window.xml</import> <control> <type>group</type> <description>group element</description> <animation>FlyInFromLeft</animation> <control> <description>View-As button</description> <type>button</type> <id>2</id> <posX>60</posX> <posY>97</posY> <label>100</label> </control> ... ... ... </window> Code: <define>name:value</define> <define>#header.label:No name</define> <define>#header.label:34</define> The following is an example of how an imported file could look: Code: <window> <controls> <control> <description>BG</description> <type>image</type> <id>1</id> <posX>0</posX> <posY>0</posY> <width>720</width> <height>576</height> <texture>background.png</texture> </control> <control> <type>image</type> <id>1</id> <posX>60</posX> <posY>20</posY> <texture>#header.image</texture> </control> <control> <type>label</type> <id>1</id> <posX>250</posX> <posY>70</posY> <label>#header.label</label> <font>font16</font> <align>right</align> <textcolor>ffffffff</textcolor> </control> <control> <description>Number of Files Label</description> <type>label</type> <id>1</id> <posX>260</posX> <posY>530</posY> <label>#itemcount</label> <align>left</align> <textcolor>ffffffff</textcolor> </control> <control> <description>Selected item Label</description> <type>fadelabel</type> <id>1</id> <posX>660</posX> <posY>70</posY> <width>400</width> <label>#selecteditem</label> <font>font14</font> <align>right</align> <textcolor>ffffffff</textcolor> </control> <control> <type>image</type> <id>1</id> <posX>75</posX> <posY>370</posY> <texture>#header.hover</texture> </control> </controls> </window> Cheers, Smirnoff. |
| | |
| | #2 (permalink) |
| Portal Member Join Date: Dec 2004 Location: United Kingdom
Posts: 630
Thanks: 0
Thanked 2 Times in 1 Post
| We have also updated the skinning engine to allow the use of named colours, the color names are based upon the standard HTML palette as specified by the W3C: Click to see color names. The skinning engine still accepts numeric values, particularly useful if you want to specify a non-default alpha value. Examples of how to use are as follows: Code: <textcolor>White</textcolor> <textcolor>#20FFFFFF</textcolor> <textcolor>#330099</textcolor> <textcolor>Gainsboro</textcolor> <textcolor>White:#60</textcolor> <textcolor>White:96</textcolor> Code: <textcolor/> <colorkey/> <colordiffuse/> |
| | |
| | #3 (permalink) |
| Portal Member Join Date: Dec 2004 Location: United Kingdom
Posts: 630
Thanks: 0
Thanked 2 Times in 1 Post
| Layout managers are a really neat and simple way to create some really complex layouts that you would not normally be able to support without having to write line after line of code. Those with a Java background will most likely be familiar with the most common ones, StackLayout, GridLayout and BorderLayout for instance. Well the good news is that we are starting to implement layout managers in MP. A StackLayout and GridLayout have been added to CVS today and as time allows more will be added with the aim of reducing the complexity of the skin markup files, with the ultimate aim of having markup with next to no coordinate requirements and automagic scaling capabilities. more info about the two supported layouts will when time permits but in the meantime feel free to search google for 'stacklayout' and 'gridlayout'. For the time being only group controls will be able to utilize layout managers and to do so you must use the <layout> tag as follows: Code: <control> <type>group</type> <layout>StackLayout(20)</layout> <posX>60</posX> <posY>97</posY> ... ... ... </control> Code: <layout>StackLayout</layout> <layout>StackLayout(10)</layout> <layout>StackLayout(2, Horizontal)</layout> Code: <layout>GridLayout</layout> <layout>GridLayout(4)</layout> <layout>GridLayout(0, 6)</layout> <layout>GridLayout(3, 0, 10, 15)</layout> <layout>GridLayout(3, 0, 10, 15, Vertical)</layout> |
| | |
| | #4 (permalink) | |
| Portal Member Join Date: Apr 2005 Location: Germany Age: 34
Posts: 459
Thanks: 1
Thanked 2 Times in 2 Posts
Country: | Quote:
Just my 2 cents worth of ideas (you told me so :wink: )
__________________ *** Power is nothing without control *** | |
| | |
| | #7 (permalink) |
| Retired Team Member Join Date: Sep 2005 Location: Stockholm
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
| Is there a way to have each cell automatically size according to its content? The result I'm after is to have two labels directly after each other in a horizontal grid. I cannot specify the space between the columns since it will change according to the length of the label. Perhaps I have just missed the obvious but I can't get it to work the way I want. |
| | |
![]() |
| Bookmarks |
| Tags |
| engine, improvements, skinning |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using XMLTV for the new TV Engine for NA EPG. | ASiDiE | Tips and Tricks | 13 | 2008-04-27 01:57 |
| Req Advice on Flicking between v2/v3 TV Engine for testing/using | HappyTalk | Get Support | 10 | 2007-01-11 14:19 |
| skinning engine: thumbnails not selectable with mouse | zombiepig | Fixed 0.2 RC3 Bugs | 3 | 2006-04-10 01:04 |
| Skinning Engine: <selectedColor> tag for thumbnail panels is ignored | zombiepig | 0.2.0.0 Release Candidate 3 Release and CVS Bugs | 0 | 2006-04-03 05:07 |
| An idea to expand skinning engine | Clodo | General Development (no feature request here!) | 0 | 2006-01-09 19:37 |