LCDInfo.com

http://www.lcdinfo.com
It is currently Fri Nov 22, 2024 4:29

All times are UTC + 2 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Editing the screen
PostPosted: Sat Oct 25, 2003 15:14 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
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>


Last edited by Henri on Tue Dec 16, 2003 20:05, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 29, 2003 15:04 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Description edited to reflect build 13.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 04, 2004 0:03 
Offline

Joined: Fri Sep 26, 2003 11:32
Posts: 36
Location: Switzerland
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 :?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 26, 2005 9:49 
Offline

Joined: Fri Oct 22, 2004 18:53
Posts: 18
is there a program where i can make my screens?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 28, 2005 1:35 
Offline
User avatar

Joined: Fri Dec 03, 2004 7:03
Posts: 201
Location: Sydney, Australia
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.

_________________
Syridian,
http://syridian.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group