LCDInfo.com
http://forum.lcdinfo.com/

Editing the screen
http://forum.lcdinfo.com/viewtopic.php?f=10&t=386
Page 1 of 1

Author:  Henri [ Sat Oct 25, 2003 15:14 ]
Post subject:  Editing the screen

In the screens directory resides a file named screens.xml. You can put there the screens you want to see in LCDInfo.

Example of screens.xml:
Code:
<screens>
   <screenfile>128x64\bug.xml</screenfile>
   <screenfile>128x64\winamp.xml</screenfile>
   <screenfile>128x64\system.xml</screenfile>
</screens>



Explanation for the screen file itself is below:

First thing you can put in the file is the screen name:
<name>Winamp2</name>

Then you can put there some action which will change to another screen.
This will change to next screen after 5 seconds:
Code:
   <action>
      <id>Core.NextScreen</id>
      <delay>5000</delay>
   </action>


This will change to a screen named "System" after 2 seconds.
Code:
   <action>
      <id>Core.ChangeScreen</id>
      <parameter>System</parameter>
      <delay>2000</delay>
   </action>


You can also omit the delay parameter but then the action will be executed immediately.


Items that can be currently placed on the screen and their options are

text
x and y: position in character coordinates
scrolltype: none, left
textpos: left, right, center
fieldsize: size of the field reserved for the text
textdata: text itself
refresh: how often item is refreshed (ms)

plugintext
x and y: position in character coordinates
scrolltype: none, left
textpos: left, right, center
fieldsize: size of the field reserved for the text
varid: identification string of the variable
refresh: how often item is refreshed (ms)

image
x and y: position in pixel coordinates
imagebitmap: bitmap filename
refresh: how often item is refreshed (ms)

pluginimage
x and y: position in pixel coordinates
imageid: identification string of the image
refresh: how often item is refreshed (ms)

animation
x and y: position in pixel coordinates
framebitmap: filename of a frame bitmap
refresh: how often item is refreshed (ms)


Example:
Code:
<screen>
   <name>Winamp2</name>

   <action>
      <id>Core.ChangeScreen</id>
      <parameter>System</parameter>
      <delay>5000</delay>
   </action>

   <item type="text" x="0" y="5">
      <scrolltype>none</scrolltype>
      <textpos>left</textpos>
      <fieldsize>5</fieldsize>
      <textdata>Total</textdata>
      <refresh>500</refresh>
   </item>

   <item type="plugintext" x="14" y="7">
      <scrolltype>none</scrolltype>
      <textpos>left</textpos>
      <fieldsize>5</fieldsize>
      <varid>fraps_fps</varid>
      <refresh>500</refresh>
   </item>


   <item type="image" x="0" y="0">
      <imagebitmap>images\bg_nfo_128x64.bmp</imagebitmap>
      <refresh>500</refresh>
   </item>

   <item type="image" x="47" y="24">
      <imagebitmap>images\winamptext48x10.bmp</imagebitmap>
      <refresh>500</refresh>
   </item>

   <item type="image" x="119" y="10">
      <imagebitmap>images\batt8x50.bmp</imagebitmap>
      <refresh>500</refresh>
   </item>

   <item type="pluginimage" x="50" y="8">
      <imageid>image_test</imageid>
      <refresh>100</refresh>
   </item>

   <item type="animation" x="95" y="0">
      <framebitmap>Bug\Wait_1.bmp</framebitmap>
      <framebitmap>Bug\Wait_2.bmp</framebitmap>
      <framebitmap>Bug\Wait_3.bmp</framebitmap>
      <framebitmap>Bug\Wait_4.bmp</framebitmap>
      <framebitmap>Bug\Wait_5.bmp</framebitmap>
      <framebitmap>Bug\Wait_6.bmp</framebitmap>
      <framebitmap>Bug\Wait_7.bmp</framebitmap>
      <refresh>200</refresh>
   </item>


</screen>

Author:  Henri [ Sat Nov 29, 2003 15:04 ]
Post subject: 

Description edited to reflect build 13.

Author:  SIZ [ Wed Feb 04, 2004 0:03 ]
Post subject: 

How I spend a lot of time to find code plugin trough the forum, I finally found that all codes are simply available in the file LOG.TXT :mrgreen:
Perhaps it coulds helps uncoders who try to configure LCDinfo like me :?

Author:  brantje [ Sat Feb 26, 2005 9:49 ]
Post subject: 

is there a program where i can make my screens?

Author:  Syridian [ Mon Feb 28, 2005 1:35 ]
Post subject: 

There is...

Here
http://forum.lcdinfo.com/viewtopic.php?t=600

However I do actually recommend learning how to write your own screen files. It is very simple, and saves alot of frustration later if you actually understand how they work.

Page 1 of 1 All times are UTC + 2 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/