scheduleLevel de test : demo/HTML5/testphil1
nouvelle procédure de publication validée sur lv5
Dans le schedule tu vas trouver :
<ItemA>
<name>HTML5Rolling¤c:\tvtools\Designs\Samsung\temp\rolling_android_rolling.xml¤1882271159¤1762755737</name>
<Id>5880</Id>
<cycle>1</cycle>
<inPoint>0</inPoint>
<outPoint>0</outPoint>
<duration>0</duration>
<totalDuration>0</totalDuration>
<Flag>0</Flag>
</ItemA>
Il faut virer c:\tvtools\ (compatibilité android-Windows)
Tu retrouves ton fichier dans scheduleLevel/Designs/Samsung/temp
Il y a 2 CRC ensuite, tu n’es pas obligé de t’en servir, c’est pour mon usage interne
Le premier est le CRC du fichier rolling_android_rolling.xml
Structure du fichier :
<?xml version="1.0" encoding="UTF-8"?>
<HTML5Rolling>
<PARAMS>
<resx>1920</resx>
<resy>1080</resy>
<dx>0</dx>
<dy>983</dy>
<tx>1920</tx>
<ty>94</ty>
<space>412</space>
<speed>0.00</speed>
<textStrokeColor>16777215</textStrokeColor>
<textFillColor>65280</textFillColor>
<opacite>42</opacite>
<text_dx>191</text_dx>
<text_dy>34</text_dy>
<text_tx>161</text_tx>
<text_ty>40</text_ty>
<img_dx>13</img_dx>
<img_dy>14</img_dy>
<img_tx>163</img_tx>
<img_ty>92</img_ty>
</PARAMS>
<Records>
<Record>
<CTXT>PFRWVFBhci8+PFRWVEZvbnROYW1lPUFyaWFsLz48VFZURm9udFNpemU9MjIvPjxUVlRGb250Q29sb3I9Q29sb3IgW0E9MjU1LCBSPTI1NSwgRz0yNTUsIEI9MjU1XS8+Tm91dmVhdSBkw6ljw6hzIGTigJl1biBtaWdyYW50IMOgIENhbGFpczxUVlRQYXIvPg==</CTXT>
<picture>c:\tvtools\misc\temp\recordsets\rolling\dcfile25.jpg</picture>
</Record>
<Record>
<CTXT>PFRWVFBhci8+PFRWVEZvbnROYW1lPUFyaWFsLz48VFZURm9udFNpemU9MjIvPjxUVlRGb250Q29sb3I9Q29sb3IgW0E9MjU1LCBSPTI1NSwgRz0yNTUsIEI9MjU1XS8+Q2FuY2VyIGR1IHNlaW4gOiBsZSBkw6lwaXN0YWdlIHBvdXIgbGVzIGZlbW1lcyBwcsOpc2VudGFudCB1biDCq8KgcmlzcXVlIMOpbGV2w6kgwrsgc2VyYSByZW1ib3Vyc8OpIMOgIDEwMCAlPFRWVFBhci8+</CTXT>
<picture>c:\tvtools\misc\temp\recordsets\rolling\dcfile26.jpg</picture>
</Record>
<Record>
<CTXT>PFRWVFBhci8+PFRWVEZvbnROYW1lPUFyaWFsLz48VFZURm9udFNpemU9MjIvPjxUVlRGb250Q29sb3I9Q29sb3IgW0E9MjU1LCBSPTI1NSwgRz0yNTUsIEI9MjU1XS8+TGEgTm91dmVsbGUtWsOpbGFuZGUgdmV1dCBjcsOpZXIgdW4gaW1tZW5zZSBzYW5jdHVhaXJlIG1hcmluPFRWVFBhci8+</CTXT>
<picture>c:\tvtools\misc\temp\recordsets\rolling\dcfile27.jpg</picture>
</Record>
<Record>
<CTXT>PFRWVFBhci8+PFRWVEZvbnROYW1lPUFyaWFsLz48VFZURm9udFNpemU9MjIvPjxUVlRGb250Q29sb3I9Q29sb3IgW0E9MjU1LCBSPTI1NSwgRz0yNTUsIEI9MjU1XS8+TW9ydCBkZSBDYXRoZXJpbmUgRS4gQ291bHNvbiwgbGEgZGFtZSDDoCBsYSBiw7tjaGUgZGUgwqvCoFR3aW4gUGVha3PCoMK7PFRWVFBhci8+</CTXT>
<picture>c:\tvtools\misc\temp\recordsets\rolling\dcfile28.jpg</picture>
</Record>
<Record>
<CTXT>PFRWVFBhci8+PFRWVEZvbnROYW1lPUFyaWFsLz48VFZURm9udFNpemU9MjIvPjxUVlRGb250Q29sb3I9Q29sb3IgW0E9MjU1LCBSPTI1NSwgRz0yNTUsIEI9MjU1XS8+TGEgQ2hpbmUgdmV1dCBkZXZlbmlyIGxlIGxlYWRlciBkZXMgc21hcnRwaG9uZXMgZW4gQWZyaXF1ZTxUVlRQYXIvPg==</CTXT>
<picture>c:\tvtools\misc\temp\recordsets\rolling\dcfile22.jpg</picture>
</Record>
</Records>
</HTML5Rolling>
Tag PARAMS :
Resx, resy : résolution dans laquelle le design TVTools a été fabriqué
Par exemple si ton écran est en 1280*720 et que le design a été fait en 1920*1080, il faudra que tu calcules les ratios
Dx,dy : coordonnées haut-droite de la boite de rolling sur ton écran
Tx,ty : taille de la boite de rolling
Space : point 3 sur le dessin : largeur de vide entre deux enregistrements
Speed : 0.00 vitesse par défaut, après tu peux avoir
0.50 vitesse normale/2
0.25 vitesse normale/4
1.00 vitesse normale
2.00 vitesse normale *2
3.00 vitesse normale *3
Etc..
textStrokeColor : RGB value en décimal de la couleur principale du texte
textFillColor : RGB value en décimal de la couleur du fond
opacite : opacité du fond (de 0 à 255)
Img_dx,img_dy : coordonnées haut gauche de l’image
Img_tx,img_ty : taille de l’image
text_dx,text_dy : coordonnées haut gauche de la boite de texte
text_tx : ne sert à rien, car tu dois adapter la taille horizontale à la taille de ton texte
text_ty : taille verticale de la boite de texte
Tag Records : contient les enregistrements
Tag picture : c:\tvtools\misc\temp\recordsets\rolling\dcfile25.jpg
Tu enlèves le c:\tvtools
Tu as ton image dans ScheduleLevel/misc/temp/recordsets/rolling/dcfile25.jpg
(tu peux aussi ne pas avoir de tag picture, s’il n’y a que du texte)
Tag CTXT : text en utf-8 encodé en base64 avec des tags souligné/italique…
Pour décoder tu peux utiliser :
Soit tu ignores les tags, et tu ne prends que le texte, qui est en UTF-8
Le format que l’on a défini avec Patrick est tout simple :
Par exemple dans le designer :
Donne :
<TVTPar/><TVTFontName=Tahoma/><TVTFontSize=25/><TVTFontColor=Color [A=255, R=56, G=56, B=56]/>Il <TVTFontUnderline=True/>était<TVTFontUnderline=False/><TVTPar/>une <TVTFontBold=True/>fois<TVTFontBold=False/><TVTPar/>une <TVTFontBold=True/><TVTFontItalic=True/>marchande<TVTFontBold=False/><TVTFontItalic=False/> de foie;
on va avoir des problèmes de polices de caractères, oublie pour le moment
on pourrait juste supporter gras/italique/souligné/couleur