How to create new DVD styles on your own

Public discussion about our DVR-Products. Exchange knowlegde with other users and us.
Antworten
Benutzeravatar
Karin
Beiträge: 18
Registriert: 19.09.2005, 10:43

How to create new DVD styles on your own

Beitrag von Karin » 18.06.2007, 16:26

The possibilities of the new styles are diversely. To create some styles of your own is not too complex. If you have a look at the content of the subdirectories of the directory "DVD-Styles" located in the programme directory, you will soon discover how it works.

Brief instruction:
  • - Copy and rename a directory
    - Appropriately adjust the attributes "name.ger" and "name.eng" in the Style.xml
    - Change the background image "imgBackground.jpg" (same file name, format jpeg, to make it easier)
    - Change the button graphics "imgButton.png" (here too: same file name, format png)
    - Restart DVD Wizard and select new style


In detail:
The DVD styles consist of the XML file "Style.xml" and the corresponding graphics. The file names mentioned above are set by default at the moment, but might be changed in the XML file.

Here is an example of a style:

Code: Alles auswählen

<?xml version="1.0" encoding="windows-1252"?>
<style name.ger='Abstrakt blau' name.eng='Abstract Blue'>
	<image item='background' file='imgBackground.jpg' />
	<image item='cover' file='imgCover.jpg' />
	<image item='button' file='imgButton.png' />
	<text item='label' font='Arial' color='0x00FFFFFF' />
	<text item='title' font='Arial' color='0x00FFFFFF' />
	<text item='comment' font='Arial' color='0x00FFFFFF' />
	<text item='link' font='Arial' color='0x00FFFFFF' />
</style>
A DVD style describes the specific creative elements of a DVD template. If an element of a template contains a "style.item" attibute, this element will be replaced by the style's data when switching to an other style. Here is the XML file for the template "1 Title + Cover + Text":

Code: Alles auswählen

<?xml version="1.0" encoding="windows-1252"?>
<Menu name="01 Title + Cover + Text" aspect='4:3' background='imgBackground.jpg'>
	<Text id="label" pos='72,45' size='600,48' font='Arial, 45' style.item="label" lock='pos'>
            Enter DVD title
        </Text>

	<Image pos='72,110' size='240,320' file='imgCover.jpg' style.item="cover" 
         stretch="FitMax" transparent="no" shadow="yes" lock='pos, size'/>
	<Text id="vts1" pos='350,110' size='322,320' font='Arial, 30' multiline="yes" style.item="title" lock='pos'>
            Enter description here
        </Text>

	<Button pos='72,471' size='46,48' file='imgButton.png' 
         transparent="yes" style.item="button" lock='pos, size'/>
	<Text pos='140,475' size='340,48' font='Arial, 45' style.item="link" lock='pos'>
            Play...
        </Text>

</Menu>
As you can see, there is an <Image> element, the "style.item" attribute of which is named "cover". There is an <image item> in the Style.xml which is also named "cover". The DVD template's "file" attribute will now be adjusted according to the one in the Style.xml and be copied to the directory "DVD-Work". As long as you don't change a style's file name, hardly anything has to be changed in the Style.xml.
Only the attributes "name.ger" and "name.eng" of the <Style> element have to be changed.

Adaptations of text characteristics work analogously. The <Text> elements will be assigned to the appropriate "style.item" attributes in the template as it was done with the images. It is only possible to change colour and font at the moment. The colour is encoded as follows:
0x00BBGGRR, whereas
BB = Blue in Hex from 0 to FF
GG = Green in Hex from 0 to FF
RR = Red in Hex from 0 to FF

Have fun creating your own DVD styles!
Antworten

Zurück zu „DVR-Products“